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 Warning (level 3) CS0649

Field 'field' is never assigned to, and will always have its default value 'value'

The compiler detected an uninitialized, private or internal field declaration that is never assigned a value.

The following sample generates CS0649:

using System.Collections;
class MyClass {
   Hashtable table;  // CS0649
   // You may have intended to initialize the variable to null
   // Hashtable table = null;

   // or, you may have meant to create an object here
   // Hashtable table = new Hashtable();  

   public void Func(object o, string p) {
      // or here
      // table = new Hashtable();
      table[p] = o;
      
   }
   
   public static void Main() {
   }
}