Reputation: 7605
I got similar questions of this, but not get satisfied answer.
I have a function
func(int a,int b)
{
//code....
}
This function accepts two parameters (a and b). I want to pass different number of parameters in this same function. I know there is a concept of overloading but I don't know how many numbers of parameters I'll pass. I am working in C#(asp.net).
Upvotes: 0
Views: 652