In a main routine of a c sharp program, you have a string array like this:
public static int Main(string[] arguments)
Well, let's suppose I am mimicing this sort of function. Would this be the proper use of a string array?
string[] arguments;
arguments[0] = "C:\\Users\\All Users\\Apple\\Some File.msi";
arguments[1] = "C:\\Users\\All Users\\Apple\\Another FIle.msi";
I get a compile error
Compiler Error CS0165 right on the first line.
I guess this is not how to assign strings in C#. But I thought it was.
public static int Main(string[] arguments)
Well, let's suppose I am mimicing this sort of function. Would this be the proper use of a string array?
string[] arguments;
arguments[0] = "C:\\Users\\All Users\\Apple\\Some File.msi";
arguments[1] = "C:\\Users\\All Users\\Apple\\Another FIle.msi";
I get a compile error
Compiler Error CS0165 right on the first line.
I guess this is not how to assign strings in C#. But I thought it was.
Edited by xarzu, 14 January 2009 - 05:16 AM.







Sign In
Create Account

Back to top










