Пример #1
0
        public override void VisitInlineMethodInstruction(InlineMethodInstruction inlineMethodInstruction)
        {
            MethodBase method = inlineMethodInstruction.Method;

            collector.Process(inlineMethodInstruction, method);
            ilGenerator.Emit(inlineMethodInstruction.OpCode, (MethodInfo)method);
        }
Пример #2
0
        public override void VisitInlineMethodInstruction(InlineMethodInstruction inlineMethodInstruction)
        {
            string method;

            try {
                method = inlineMethodInstruction.Method + "/" + inlineMethodInstruction.Method.DeclaringType;
            } catch (Exception ex) {
                method = "!" + ex.Message + "!";
            }
            collector.Process(inlineMethodInstruction, method);
        }
Пример #3
0
 public override void VisitInlineMethodInstruction(InlineMethodInstruction inlineMethodInstruction)
 {
     string operandString;
       try
       {
     operandString = (string) (object) inlineMethodInstruction.Method + (object) "/" + (string) (object) inlineMethodInstruction.Method.DeclaringType;
       }
       catch (Exception ex)
       {
     operandString = "!" + ex.Message + "!";
       }
       this.collector.Process((ILInstruction) inlineMethodInstruction, operandString);
 }
        public override void VisitInlineMethodInstruction(InlineMethodInstruction inlineMethodInstruction)
        {
            string operandString;

            try
            {
                operandString = (string)(object)inlineMethodInstruction.Method + (object)"/" + (string)(object)inlineMethodInstruction.Method.DeclaringType;
            }
            catch (Exception ex)
            {
                operandString = "!" + ex.Message + "!";
            }
            this.collector.Process((ILInstruction)inlineMethodInstruction, operandString);
        }
        public override void VisitInlineMethodInstruction(InlineMethodInstruction inlineMethodInstruction)
        {
            MethodInfo method = inlineMethodInstruction.Method as MethodInfo;
            if (method != null)
            {
                ilGenerator.Emit(inlineMethodInstruction.OpCode, method);
                return;
            }

            ConstructorInfo constructor = inlineMethodInstruction.Method as ConstructorInfo;
            if (constructor == null)
            {
                throw new NotSupportedException();
            }

            ilGenerator.Emit(inlineMethodInstruction.OpCode, constructor);
        }
Пример #6
0
 public virtual void VisitInlineMethodInstruction(InlineMethodInstruction inlineMethodInstruction)
 {
 }
Пример #7
0
 public override void VisitInlineMethodInstruction(InlineMethodInstruction inlineMethodInstruction)
 {
     collector.Process(inlineMethodInstruction, formatProvider.Int32ToHex(inlineMethodInstruction.Token));
 }
 public virtual void VisitInlineMethodInstruction(InlineMethodInstruction inlineMethodInstruction) { }
 public override void VisitInlineMethodInstruction(InlineMethodInstruction inlineMethodInstruction)
 {
     collector.Process(inlineMethodInstruction, formatProvider.Int32ToHex(inlineMethodInstruction.Token));
 }
 public override void VisitInlineMethodInstruction(InlineMethodInstruction inlineMethodInstruction)
 {
     string method;
     try
     {
         method = inlineMethodInstruction.Method.ToIL();
     }
     catch (Exception ex)
     {
         method = "!" + ex.Message + "!";
     }
     collector.Process(inlineMethodInstruction, method);
 }