Sunday, 15 May 2011

Get following command line arguments (elements in an array) in C# -



Get following command line arguments (elements in an array) in C# -

how arguments after first 3 string[] in c#?

e.g. [1, 2, 3, 4, 5] want [4, 5]

making sure have using system.linq, can utilize this:

stringarray.skip(3);

this returns ienumerable, can traverse. if need array, can just:

stringarray.skip(3).toarray();

c#

No comments:

Post a Comment