Ejemplo n.º 1
0
 public OperandInlineTokProcessor(StringBuilder builder, OpInfo info) : base(builder, info)
 {
 }
Ejemplo n.º 2
0
 public OperandShortInlineVarProcessor(StringBuilder builder, OpInfo info) : base(builder, info)
 {
 }
Ejemplo n.º 3
0
 protected OperandProcessor(StringBuilder builder, OpInfo info)
 {
     Builder = builder;
     Info    = info;
 }
Ejemplo n.º 4
0
        private static OperandProcessor GetOpProcessor(OperandType opType, StringBuilder builder, OpInfo info)
        {
            switch (opType)
            {
            case OperandType.InlineMethod:
                return(new OperandInlineMethodProcessor(builder, info));

            case OperandType.InlineString:
                return(new OperandInlineStringProcessor(builder, info));

            case OperandType.InlineNone:
                return(new OperandInlineNoneProcessor(builder, info));

            case OperandType.ShortInlineBrTarget:
                return(new OperandShortInlineBrTargetProcessor(builder, info));

            case OperandType.InlineI:
                return(new OperandInlineIProcessor(builder, info));

            case OperandType.InlineI8:
                return(new OperandInlineI8Processor(builder, info));

            case OperandType.ShortInlineR:
                return(new OperandShortInlineRProcessor(builder, info));

            case OperandType.InlineR:
                return(new OperandInlineRProcessor(builder, info));

            case OperandType.InlineType:
                return(new OperandInlineTypeProcessor(builder, info));

            case OperandType.ShortInlineVar:
                return(new OperandShortInlineVarProcessor(builder, info));

            case OperandType.InlineField:
                return(new OperandInlineFieldProcessor(builder, info));

            case OperandType.InlineBrTarget:
                return(new OperandInlineBrTargetProcessor(builder, info));

            case OperandType.InlineSig:
                return(new OperandInlineSigProcessor(builder, info));

            case OperandType.InlineSwitch:
                return(new OperandInlineSwitchProcessor(builder, info));

            case OperandType.InlineTok:
                return(new OperandInlineTokProcessor(builder, info));

            case OperandType.InlineVar:
                return(new OperandInlineVarProcessor(builder, info));

            case OperandType.ShortInlineI:
                return(new OperandShortInlineIProcessor(builder, info));
            }
            throw new SystemException("Unknown Operand type.");
        }
Ejemplo n.º 5
0
 public OpCodeProcessor(StringBuilder builder, OpInfo info, bool addIlBytes)
 {
     _builder    = builder;
     _info       = info;
     _addIlBytes = addIlBytes;
 }
Ejemplo n.º 6
0
 public SimpleMethodProcessor(OpInfo info, bool addIlBytes)
 {
     Builder    = new StringBuilder();
     Info       = info;
     AddIlBytes = addIlBytes;
 }