static void Main(string[] args)
{
Console.WriteLine("Hello World!");
var pb = new ParsBase
{
hostInfo = new List<ParsBase.HostInfo> {
new ParsBase.HostInfo {
ip = "1", mac = "a", ports = new List<ParsBase.HostInfo.PortInfo> {
new ParsBase.HostInfo.PortInfo { isFiltered = true, isOpen = true, nameport = "aaa", num = 1 }
}
},
new ParsBase.HostInfo {
ip = "2", mac = "b", ports = new List<ParsBase.HostInfo.PortInfo> {
new ParsBase.HostInfo.PortInfo { isFiltered = false, isOpen = false, nameport = "bbb", num = 2 }
}
}
}
};
}
public class ParsBase
{
public List<HostInfo> hostInfo;
public struct HostInfo
{
public string ip, mac;
public List<PortInfo> ports;
public struct PortInfo
{
public string nameport;
public int num;
public bool isOpen;
public bool isFiltered;
}
}
}