static CallSiteCache() { try { _stackFrameFast = CreateInternalStackFrameInfoMethod(); } catch (Exception exc) { Debug.WriteLine("Could not create fast stack info method, things are going to get slooooow. Exception: " + exc); // If we end up here it's bad, the .NET framework authors has changed the private implementation that // we rely on (which is entirely within their rights to do). if (Debugger.IsAttached) Debugger.Break(); } }
static CallSiteCache() { try { _stackFrameFast = CreateInternalStackFrameInfoMethod(); } catch (Exception exc) { Debug.WriteLine("Could not create fast stack info method, things are going to get slooooow. Exception: " + exc); // If we end up here it's bad, the .NET framework authors has changed the private implementation that // we rely on (which is entirely within their rights to do). if (Debugger.IsAttached) { Debugger.Break(); } } }