I would like to ask how can I make below structured data globally available to all classes:
class clsData1
{
int Num1;
int Num2;
string Str1;
}
class clsData2
{
int Num3;
int Num4;
string Str2;
}
class Main
{
clsData1 clsData1A;
clsData2 clsData2A;
}
I guess solution is with singleton, but example would be helpful.
Aditionally I would like that this data structure works as global over all classes.