[Mono-bugs] [Bug 425512] System. Exception field name remote_stack_trace is _remoteStackTraceString on MS . Net

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Sep 11 11:26:11 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=425512

User robertj at gmx.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=425512#c1


Robert Jordan <robertj at gmx.net> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
                 CC|                                                |robertj at gmx.net




--- Comment #1 from Robert Jordan <robertj at gmx.net>  2008-09-11 09:26:10 MDT ---
In this hacky case, a runtime check would be more adequate:

    string fieldName = Type.GetType ("Mono.Runtime") != null
       ? "remote_stack_trace" : "_remoteStackTraceString";

    FieldInfo remoteStackTraceString = typeof(Exception).GetField(fieldName,
    BindingFlags.Instance | BindingFlags.NonPublic );


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list