public static void recordme(Object o, CST_MSG in_msg, CST_MSG out_msg) { StackTrace st = new StackTrace(); StackFrame sf = st.GetFrame(1); Type t = st.GetType(); Console.WriteLine(t); MethodInfo mi = (MethodInfo)sf.GetMethod(); recordme(o, in_msg, out_msg, mi, myPartyName, false, false); }