BTool.DeviceFormUtils.GetGapAddrTypeStr C# (CSharp) Méthode

GetGapAddrTypeStr() public méthode

public GetGapAddrTypeStr ( byte addrType ) : string
addrType byte
Résultat string
        public string GetGapAddrTypeStr(byte addrType)
        {
            string addr_type;
            switch (addrType)
            {
                case 0:
                    addr_type = "Public";
                    break;
                case 1:
                    addr_type = "Static";
                    break;
                case 2:
                    addr_type = "PrivateNonResolve";
                    break;
                case 3:
                    addr_type = "PrivateResolve";
                    break;
                default:
                    addr_type = "Unknown Addr Type";
                    break;
            }
            return addr_type;
        }