ToStringFormat
StringFormat Extension Style
Source
public static string ToStringFormat(this string stringFormat, params string[] stringParams)
{
return string.Format(stringFormat, stringParams);
}
Example
Console.WriteLine("{0} {1}".ToStringFormat("Parameter 1", "Parameter 2"));
Console.WriteLine("\nPress [Enter] key to exit.");
while (Console.ReadKey(true).Key != ConsoleKey.Enter) { }