I need to initialize this list and it should be static, but I can't. Any help, please :(
private static List<MyObj> teste;
public static List<MyObj> Teste;
{
get {return Teste;}
set
{
teste.Add(new MyObj{ Value = 1, Quant = 1 });
teste.Add(new MyObj{ Value = 2, Quant = 1 });
teste.Add(new MyObj{ Value = 99, Quant = 1 });
teste.Add(new MyObj{ Value = 33, Quant = 1 });
}
}