Błąd kompilatora CS0037

Nie można przekonwertować wartości null na "typ", ponieważ jest to typ wartości innej niż null

Kompilator nie może przypisać null do typu wartości; null można przypisać go tylko do typu odwołania lub do typu wartości dopuszczanej wartości null. struktura jest typem wartości.

Poniższy przykład generuje CS0037:

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