forum

home / developersection / forums / how to pass arrays using ref and out parameter

How to pass arrays using ref and out parameter

Anupam Mishra 1663 09-Feb-2016
Hi Everyone,
I am working on arrays and i need to pass arrays using ref and out parameter in a function.my function are given below:
static void FillArray(ref int[] arr)
{
.......
}
Please can anyone give me a solution in both cases(ref and out parameter).

c# c#  asp.net 
Updated on 09-Feb-2016
Can you answer this question?

Answer

1 Answers

Liked By