while am trying with ref keyword by replacing out key word there is no error in the below code.while am trying to use out instead of ref there occur an error like"Unassigned OUT Parameter" What does this error mean ?
static void Main()
{
string test = "34";
addOneToRefParam(out test);
Console.WriteLine("test is : " + test);
}
public static void addOneToRefParam(out string i)
{
int k =Convert.ToInt32(i) + 1;
i = Convert.ToString(k);
Console.WriteLine("i is : " + i);
}