I have a problem since I just learned about accessors, I want to learn how to let it work with arrays, this is my script
public Vak[] vakken = new Vak [5];
the class I use to create the accessors is the next one:
public class Vak
{
public string name {get; set;}
public string docent {get; set;}
public int uren {get; set;}
}
and in my button click event this is how I want to set it by this command and I don't know why it's givving me the null reference error.
vakken[0].name = "Joe";
Thanks for any help!