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); }
public override void VisitInlineTokInstruction(InlineTokInstruction inlineTokInstruction) { collector.Process(inlineTokInstruction, formatProvider.Int32ToHex(inlineTokInstruction.Token)); }
public virtual void VisitInlineTokInstruction(InlineTokInstruction inlineTokInstruction) { }
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); }