aviso do compilador (nível 4) CS0649

Mensagem de erro

Campo 'campo' nunca é atribuído e sempre terá seu valor padrão 'valor'

O compilador detectou uma declaração de campo particular ou internal não inicializado nunca é atribuída um valor.

O exemplo a seguir gera CS0649:

// CS0649.cs
// compile with: /W:4
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()
   {
   }
}