Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

params string[]

Actually, the params is just a syntactic sugar handled by the C# compiler, so that

this:

void Method(params string[] args) { /**/ }
Method("one", "two", "three");
becomes this:

void Method(params string[] args) { /**/ }
Method(new string[] { "one", "two", "three" })
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #params
ADD COMMENT
Topic
Name
5+5 =