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 CS0037

Cannot convert null to 'type' because it is a value type

The compiler cannot assign null to a value type; null can only be assigned to a reference type. struct is a value type.

The following sample generates CS0037:

public struct s {
}
class a {
   public static void Main() {
      int i = null;   // CS0037
      s ss = null;   // CS0037
   }
}