コード例 #1
0
        public override void VisitInlineTokInstruction(InlineTokInstruction inlineTokInstruction)
        {
            string member;

            try
            {
                string prefix = "";
                string 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 = ((TypeInfo)inlineTokInstruction.Member).ToIL();
                    break;
                }

                member = prefix + token;
            }
            catch (Exception ex)
            {
                member = "!" + ex.Message + "!";
            }
            collector.Process(inlineTokInstruction, member);
        }
コード例 #2
0
 public override void VisitInlineTokInstruction(InlineTokInstruction inlineTokInstruction)
 {
     collector.Process(inlineTokInstruction, formatProvider.Int32ToHex(inlineTokInstruction.Token));
 }
コード例 #3
0
 public virtual void VisitInlineTokInstruction(InlineTokInstruction inlineTokInstruction)
 {
 }
コード例 #4
0
 public override void VisitInlineTokInstruction(InlineTokInstruction inlineTokInstruction)
 {
     collector.Process(inlineTokInstruction, formatProvider.Int32ToHex(inlineTokInstruction.Token));
 }
コード例 #5
0
        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 = ((TypeInfo)inlineTokInstruction.Member).ToIL();
                        break;
                }

                member = prefix + token;
            }
            catch (Exception ex)
            {
                member = "!" + ex.Message + "!";
            }
            collector.Process(inlineTokInstruction, member);
        }
コード例 #6
0
 public virtual void VisitInlineTokInstruction(InlineTokInstruction inlineTokInstruction) { }