System.Diagnostics.StackFrame frame = new System.Diagnostics.StackFrame(1);
System.Reflection.MethodBase method = frame.GetMethod();
string namspace = method.DeclaringType.Namespace;
string clasName = method.ReflectedType.Name;
string meth = method.Name;
string FullName = method.DeclaringType.FullName;
Console.WriteLine(namspace);
Console.WriteLine(clasName);
Console.WriteLine(meth);
Console.WriteLine(FullName);