// This code example demonstrates the String.Format() method. // Formatting for this example uses the "en-US" culture. using System; class Sample ...{ enum Color ...{Yellow =1, Blue, Green}; static DateTime thisDate = DateTime.Now;
publicstaticvoid Main() ...{ // Store the output of the String.Format method in a string. string s ="";