मुझे अपने C # (WPF) एप्लिकेशन पर क्रैश रिपोर्टिंग फ्रेमवर्क लागू करने की आवश्यकता है, इसलिए मुझे पूर्ण कॉल स्टैक की आवश्यकता है, आप लोग ऐसा करने के लिए क्या सुझाव देंगे।
उत्तर:
जवाब के लिए 3 № 1 StackTrace st = new StackTrace(true);
for(int i =0; i< st.FrameCount; i++ )
{
// Note that high up the call stack, there is only
// one stack frame.
StackFrame sf = st.GetFrame(i);
Console.WriteLine();
Console.WriteLine("High up the call stack, Method: {0}",
sf.GetMethod());
Console.WriteLine("High up the call stack, Line Number: {0}",
sf.GetFileLineNumber());
}