/// <inheritdoc />
 public SubCommand62Attribute(SubCommand62OperationCode opCode)
     : base((int)opCode)
 {
     if (!Enum.IsDefined(typeof(SubCommand62OperationCode), opCode))
     {
         throw new InvalidEnumArgumentException(nameof(opCode), (int)opCode, typeof(SubCommand60OperationCode));
     }
 }
Пример #2
0
 //Serializer ctor
 protected BaseSubCommand62(SubCommand62OperationCode commandOperationCode)
 {
     //This is in a serialization hotpath so we don't verify the enum with
     //and throw because it depends on slow reflection.
     CommandOperationCode = commandOperationCode;
 }