public static GetSafePacketType ( |
||
pkt_type | ||
return | 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;
}