Reflection Example

 
Return Namespace/Class/MethodName as a string

return string.Format(“{0}.{1}.{2}()”, MethodBase.GetCurrentMethod().ReflectedType.Namespace, MethodBase.GetCurrentMethod().ReflectedType.Name, MethodBase.GetCurrentMethod().Name);

 
Working through this article on the Factory Pattern
 

Leave a comment