W
Wndr
Hi Guys.
I need to declare an array of PortType in MainType.
Does any one has idea on how to do that?
Any help apreciated.
public struct PortType
{
public string Description;
public int Port;
}
public struct MainType
{
public string Name;
//this part has a problem, I want to declare it inside of this
type, but when I want to use it, there is no ref to Ports from Main.
public static PortType[] Ports = new PortType[999];
}
public static MainType[] Main = new MainType[100];
So is there any way to use like this:
Main.Ports[x].Description="text";
I need to declare an array of PortType in MainType.
Does any one has idea on how to do that?
Any help apreciated.
public struct PortType
{
public string Description;
public int Port;
}
public struct MainType
{
public string Name;
//this part has a problem, I want to declare it inside of this
type, but when I want to use it, there is no ref to Ports from Main.
public static PortType[] Ports = new PortType[999];
}
public static MainType[] Main = new MainType[100];
So is there any way to use like this:
Main.Ports[x].Description="text";