RFID.RFIDInterface.PacketData.GetSafePacketType C# (CSharp) Méthode

GetSafePacketType() public static méthode

public static GetSafePacketType ( UInt16 pkt_type ) : PacketType
pkt_type System.UInt16
Résultat PacketType
        public static PacketType GetSafePacketType(UInt16 pkt_type)
        {
            return Enum.IsDefined(typeof(PacketType), pkt_type) ? (PacketType)pkt_type :PacketType.U_N_D_F_I_N_E_D;
        }