Context :
I read command line arguments using args object and print via formatted strings. Here is the sample code,
Is there a easy way to use the formatted strings and arrays instead of typing so much. Example i tried {0-9) to combine the formatted string but that didnt work and threw an exception - 'Input String was not in a correct format'
I manily want my code to be compact as well type less :)
I read command line arguments using args object and print via formatted strings. Here is the sample code,
Code:
Console.WriteLine("I need to learn C# {0,9}", args[0], args[1], args[2], args[3], args[4], args[5], args[6], args[7], args[8], args[9]);
I manily want my code to be compact as well type less :)
Comment