Beispiel #1
0
 public override void VisitInlineIInstruction(InlineIInstruction inlineIInstruction)
 {
     base.VisitInlineIInstruction(inlineIInstruction);
     if (inlineIInstruction.OpCode == OpCodes.Ldarg && inlineIInstruction.Int32 == 0)
     {
         Target.Emit(OpCodes.Ldfld, _target);
     }
 }
Beispiel #2
0
        public override void VisitInlineIInstruction(InlineIInstruction inlineIInstruction)
        {
            if (inlineIInstruction.OpCode != OpCodes.Ldc_I4)
            {
                throw new NotSupportedException();
            }

            instructions.Add(new LoadIntegerInstructionWithReflectionEmit(inlineIInstruction.OpCode, inlineIInstruction.Int32));
        }
Beispiel #3
0
 public override void VisitInlineIInstruction(InlineIInstruction inlineIInstruction)
 {
     if (inlineIInstruction.OpCode == OpCodes.Ldarg && inlineIInstruction.Int32 == 1)
     {
         Target.Emit(OpCodes.Ldloc, _psource);
     }
     else
     {
         base.VisitInlineIInstruction(inlineIInstruction);
     }
 }
Beispiel #4
0
 public override void VisitInlineIInstruction(InlineIInstruction inlineIInstruction)
 {
     base.VisitInlineIInstruction(inlineIInstruction);
 }
 /// <summary>
 /// Visits the inline i instruction.
 /// </summary>
 /// <param name="inlineIInstruction">The inline i instruction.</param>
 public override void VisitInlineIInstruction(InlineIInstruction inlineIInstruction)
 {
 }
 public virtual void VisitInlineIInstruction(InlineIInstruction inlineIInstruction)
 {
 }
 public virtual void VisitInlineIInstruction(InlineIInstruction inlineIInstruction)
 {
 }
 public override void VisitInlineIInstruction(InlineIInstruction inlineIInstruction)
 {
     Process(inlineIInstruction, inlineIInstruction.Int32);
     ilGenerator.Emit(inlineIInstruction.OpCode, inlineIInstruction.Int32);
 }