quarta-feira, 7 de outubro de 2009

CodeKeep Snippet : Reflection within a method call. (C#)

CodeKeep Snippet : Reflection within a method call. (C#)

Title: Reflection within a method call. Language: C#
Description: Calling assembly, current method name, current method's class. Views: 326
Author: digitalWraith .net Date Added: 5/9/2007
Copy Code
1string callingAssemblyName = System.Reflection.Assembly.GetCallingAssembly().FullName;
2string methodName = System.Reflection.MethodBase.GetCurrentMethod().Name;
3string className = System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.ToString();
4
5

Nenhum comentário: