Answer Question
How i can create a function with 2 or more type of optional parameters?
I have written a function for a single type of optional parameters function. It works well.
private static void Test(int j, params string[] s)
{
//statements
}
This function is using an optional parameter 's' an array of string so it is fine with the type of string parameters.
But i need one more, another type of optional argument say int.
when i am trying-
private static void Test(int j, params string[] s, params int[] intArg)
{
//statements
}
it does not work.
Is there any other way to have multiple type of optional arguments.
Waiting for your responce.........
TEXT
Uploading file and scanning for virus...
Please Wait