Tag: Params

Params in C#

The Params keyword in C# lets the developers to specify parameter for the method that can take variable no. of arguments . For example In the above sourcecode , the method Data accepts the parameter integer array . since the parameter is marked as params , you could call the function Data with the comma seperated value like below