How to using params keyword with [Optional]?
i want to use both keywords params and Optional but it raise error
public void m( int x,[Optional] int c,params string [] arr)
{
Console.WriteLine("x= {0}", x);
foreach (string item in arr)
{
Console.WriteLine("name ={0}\n",item);
}
public static void Main(){
Program x = new Program();
x.m(10,"mido","sfs","sgsd"); // here error why?
}