うにてぃブログ

主にUnityとC#に関する記事を書いていきます

2020-11-29から1日間の記事一覧

【C#】string.Format内部で { や } を利用する

const string format = "\"{0}\": {\n"; string.Format(format, sample); としたときに Format の指定が間違っているエラーが出て変換できなかった FormatException: Input string was not in a correct format. \", \', \n, \\ などエスケープできるのは知…