獲知哪一個函數調用了本函數及它的類名函數
StackTrace st = new StackTrace(); StackFrame callerFrame = st.GetFrame(2); string callerInfo = callerFrame.GetMethod().DeclaringType.Name + "." + callerFrame.GetMethod().Name + "()";string