I have the following Debug.WriteLine
:
Debug.WriteLine("Metadata Version: {0}", version); // update: version is a string
The output is:
2.0: Metadata Version: {0}
Why is the string formatted this way?
I didn't see anything in MSDN documentation that identifies reasoning behind this format. I have to do the following to get a correctly formatted output:
Debug.WriteLine(string.Format("Metadata Version: {0}", version));
See Question&Answers more detail:os