NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Compiler Error CS0165

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);
   }
}