I have one class where in I am defining 2 variables.
public class attachment_type
{
string filename;
int cnt;
}
In the 2nd class, I want to assign string value to filename. In already existing code they have made array of class type.
public class mainApp
{
attachment_type[] at = new attachment_type[dt.rows.count];
at[0].filename = "test File"
}
I am not able to do the above. Error comes at line at[0].filename = "test File";
Object reference not set to an instance of object.