Archive for April 14th, 2008
c# joining an array of strings.
by brian on Apr.14, 2008, under .NET, c#, coding
Here the easy way to get comma’s between each of the items in an array in a string.
string[] string_array=new string[]{"1","2","3","4"};
String.Join(",",string_array)
The output is:
1,2,3,4
c# Command Line Arguments
by brian on Apr.14, 2008, under .NET, Uncategorized, c#, coding
Here’s how you access the command line arguments:
string[] argv = Environment.GetCommandLineArgs();
