public override void VisitInlineTokInstruction(InlineTokInstruction inlineTokInstruction)
        {
            string member;

            try
            {
                var prefix = "";
                var token  = "";
                switch (inlineTokInstruction.Member.MemberType)
                {
                case MemberTypes.Method:
                case MemberTypes.Constructor:
                    prefix = "method ";
                    token  = ((MethodBase)inlineTokInstruction.Member).ToIL();
                    break;

                case MemberTypes.Field:
                    prefix = "field ";
                    token  = ((FieldInfo)inlineTokInstruction.Member).ToIL();
                    break;

                default:
                    token = ((Type)inlineTokInstruction.Member).ToIL();
                    break;
                }

                member = prefix + token;
            }
            catch (Exception ex)
            {
                member = "!" + ex.Message + "!";
            }
            collector.Process(inlineTokInstruction, member);
        }
Esempio n. 2
0
        public override void VisitInlineTokInstruction(InlineTokInstruction inlineTokInstruction)
        {
            MemberInfo member = inlineTokInstruction.Member;

            collector.Process(inlineTokInstruction, member);
            //ilGenerator.Emit(inlineTokInstruction.OpCode, member);
            System.Diagnostics.Debugger.Break();
        }
Esempio n. 3
0
        public override void VisitInlineTokInstruction(InlineTokInstruction inlineTokInstruction)
        {
            string member;

            try {
                member = inlineTokInstruction.Member + "/" + inlineTokInstruction.Member.DeclaringType;
            } catch (Exception ex) {
                member = "!" + ex.Message + "!";
            }
            collector.Process(inlineTokInstruction, member);
        }
        public override void VisitInlineTokInstruction(InlineTokInstruction inlineTokInstruction)
        {
            string operandString;

            try
            {
                operandString = (string)(object)inlineTokInstruction.Member + (object)"/" + (string)(object)inlineTokInstruction.Member.DeclaringType;
            }
            catch (Exception ex)
            {
                operandString = "!" + ex.Message + "!";
            }
            this.collector.Process((ILInstruction)inlineTokInstruction, operandString);
        }
 public override void VisitInlineTokInstruction(InlineTokInstruction inlineTokInstruction)
 {
     string operandString;
       try
       {
     operandString = (string) (object) inlineTokInstruction.Member + (object) "/" + (string) (object) inlineTokInstruction.Member.DeclaringType;
       }
       catch (Exception ex)
       {
     operandString = "!" + ex.Message + "!";
       }
       this.collector.Process((ILInstruction) inlineTokInstruction, operandString);
 }
Esempio n. 6
0
 public virtual void VisitInlineTokInstruction(InlineTokInstruction inlineTokInstruction)
 {
 }
Esempio n. 7
0
 public override void VisitInlineTokInstruction(InlineTokInstruction inlineTokInstruction)
 {
     collector.Process(inlineTokInstruction, formatProvider.Int32ToHex(inlineTokInstruction.Token));
 }
 public override void VisitInlineTokInstruction(InlineTokInstruction inlineTokInstruction)
 {
     throw new NotSupportedException();
 }
 public virtual void VisitInlineTokInstruction(InlineTokInstruction inlineTokInstruction) { }
 public override void VisitInlineTokInstruction(InlineTokInstruction inlineTokInstruction)
 {
     collector.Process(inlineTokInstruction, formatProvider.Int32ToHex(inlineTokInstruction.Token));
 }
        public override void VisitInlineTokInstruction(InlineTokInstruction inlineTokInstruction)
        {
            string member;
            try
            {
                var prefix = "";
                var token = "";
                switch (inlineTokInstruction.Member.MemberType)
                {
                    case MemberTypes.Method:
                    case MemberTypes.Constructor:
                        prefix = "method ";
                        token = ((MethodBase)inlineTokInstruction.Member).ToIL();
                        break;
                    case MemberTypes.Field:
                        prefix = "field ";
                        token = ((FieldInfo)inlineTokInstruction.Member).ToIL();
                        break;
                    default:
                        token = ((Type)inlineTokInstruction.Member).ToIL();
                        break;
                }

                member = prefix + token;
            }
            catch (Exception ex)
            {
                member = "!" + ex.Message + "!";
            }
            collector.Process(inlineTokInstruction, member);
        }