Say I have the following declarations:
struct SomeStructure
{
string Message;
int StartValue;
int EndValue;
}
SomeStructure _SomeStructure;
I will never have more than one SomeStructure variable declared so I was wondering if there's a way to combine the two together in a single statement, something like:
struct SomeStructure
{
string Message;
int StartValue;
int EndValue;
} _SomeStructure;
I need to make it explicit that no other variables using the struct are to be declared.
Message,StartValueandEndValueis a one-shot object ? (=used once in one place)(string Message, int StartValue, int EndValue) _SomeStructure;