I am using a 3rd party API and new to programming so I need some guidance.
There is a class InStreamInfo
which has properties
Comments
Dimention
Names
InStreamAdditionalInfo[]
InStreamAdditionalInfo[]
class has properties defined as
ID
AddInfoDescription
I am creating a class object of InStreamInfo
as
InStreamInfo _info=new InStreamInfo ();
_info.Comments="Test Comment";
_info.Dimention= "200x300";
_info.Names="Test Names 1";
While InStreamAdditionalInfo[]
is defined as
InStreamAdditionalInfo[] _infoAdd= new InStreamAdditionalInfo[1];
_infoAdd[0].ID=12345;
But here I am getting an error
Object reference not set to an instance of an object.