[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 14:51:00 EDT 2008


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

User skolima at gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=425512#c2





--- Comment #2 from Leszek Ciesielski <skolima at gmail.com>  2008-09-11 12:50:59 MDT ---
Actually

 FieldInfo remoteStackTraceString =
  typeof(Exception).GetField("_remoteStackTraceString",
  BindingFlags.Instance | BindingFlags.NonPublic); // MS.Net

 if (remoteStackTraceString == null)
  remoteStackTraceString = typeof(Exception).GetField("remote_stack_trace",
   BindingFlags.Instance | BindingFlags.NonPublic); // Mono

is probably a better workaround in case Mono someday changes this. I was
however interested whether there is a chance of renaming the actual field in
Exceptions.cs


-- 
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