RFID.RFIDInterface.PacketData.PacketBase.GetCommandName C# (CSharp) Method

GetCommandName() public static method

public static GetCommandName ( uint value ) : string
value uint
return string
            public static string GetCommandName(uint value)
            {
                if (Enum.IsDefined(typeof(commandtype), (int)value))
                {
                    commandtype c = (commandtype)value;
                    switch (c)
                    {
                    case commandtype.ISO_18000_6C_Inventory:
                        return "Inventory";

                    case commandtype.ISO_18000_6C_Read:
                        return "Read";

                    case commandtype.ISO_18000_6C_Write:
                        return "Write";

                    case commandtype.ISO_18000_6C_Lock:
                        return "Lock";

                    case commandtype.ISO_18000_6C_Kill:
                        return "Kill";

                    case commandtype.ISO_18000_6C_BlockWrite:
                        return "Block Write";

                    case commandtype.Test_Transmit_Random_Data:
                        return "Test Pulse";

                    //Add LargeRead command
                    case commandtype.ISO_18000_6C_LargeRead:
                        return "LargeRead";

                    default:
                        return "Unknown";
                    }
                }
                return "Unknown";
            }