Or,
class ReceiveConfig
{
void myMethod()
{
GetConfig getConfig = new GetConfig();
var x = getConfig.ManagementPort;
}
}
Is this what you want?
If this did not solve your problem then please leave a comment and I will assist you by improving my solution until your problem gets solved.
Cheers,
AH