C# Error
CS0726 – ‘{0}’ is not a valid format specifier
Reason for the Error & Solution
‘format specifier’ is not a valid format specifier
This error occurs in the debugger. When you type a variable name into one of the debugger windows, you can follow it with a comma, and then a format specifier. Examples are: myInt, h
or myString,nq
. This error arises when the compiler does not recognize the .