Hello,
i have a custom class:
public class jetInfo
{
public string JetName{ get; set;}
}
i need to create an array of it so i tried:
private jetInfo[] JetData = new jetInfo[3];
but when i’m trying to use it like this:
JetData[0].JetName= "Arrow";
i’m getting error in runtime:
NullReferenceException: Object reference not set to an instance of an object
what am i doing wrong?
thanks!