namespace ParamsCheck
{
class Program
{
public void Method(params int [] arr)
{
arr[1]=Convert.ToInt32( Console.ReadLine());
}
static void Main(string[] args)
{
Program obj = new Program();
//int[] arr = new int[1];
int []arr= {1 };
obj.Method();
Console.Read();
}
}
}

I am getting this error.
Jaish MathewsPosted Jul 26, 2018, 12:54 AM
Jaish MathewsPosted Jul 26, 2018, 1:40 AM
Hemalatha SunnapuPosted Jul 26, 2018, 1:19 AM
Hemalatha SunnapuPosted Jul 26, 2018, 12:43 AM
Jaish MathewsPosted Jul 26, 2018, 12:39 AM