Use of possibly unassigned local variable 'var'
An attempt was made to manipulate a reference that was not assigned to an object.
The following sample generates CS0165:
class MyClass { public static void Main() { string str; // CS0165 // try the following line instead // string str = new string("Testing"); System.Console.WriteLine("Length is :" + str.Length); } }