Пример #1
0
        private PrimitiveTypeValue ReadPrimitiveTypeValue(OperandType type)
        {
            switch (type)
            {
            case OperandType.Byte: return(new PrimitiveTypeValue(ModuleReader.ReadByte(), type));

            case OperandType.UInt16: return(new PrimitiveTypeValue(ModuleReader.ReadUInt16(), type));

            case OperandType.UInt32: return(new PrimitiveTypeValue(ModuleReader.ReadUInt32(), type));

            default: throw new ArgumentException(nameof(type));
            }
        }