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 CS0170

Use of possibly unassigned field 'field'

A field in a structure was used without being initialized. The field must first be initialized.

The following sample generates CS0170:

public struct error {
   public int i;
}

public class CMyClass {
   public static void Main() {
      error e;
      // uncomment the next line to resolve this CS0170
      // e.i = 0;
      System.Console.WriteLine( e.i );   // CS0170
   }
}