N
N
nikita__good2021-11-09 22:48:28
C++ / C#
nikita__good, 2021-11-09 22:48:28

How to write a C# class?

public static class ParsBase
    {
        List<HostInfo> hostInfo = new List<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;
            }

        }
    }

Can't see it in other functions.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Smilley, 2021-11-09
@nikita__good

Public List<HostInfo> hostInfo?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question