I got a class who looks like this.
public class PostUndKey
{
public string Key { get; set; }
public List<int> Id { get; set; }
public List<string> von_datum { get; set; }
public List<string> bis_datum { get; set; }
}
In my Code i use something like this.
PostUndKey x = new PostUndKey();
var z = 42;
x.Id.Add(z);
And i always get the Null Reference Exception. Can someone explain this to me pls i dont get it.
Thanks