using System.Linq; namespace System.Reflection { public static class MethodInfoExtensions { /// /// Gets the full name of the method, including the full namespace of the parent type(s) as well as their return /// type and the types of their (type) arguments. /// public static string GetFullName(this MethodInfo method) { return method.ReturnType.FullName + " " + method.ReflectedType.FullName + "::" + method.Name + "(" + string.Join(",", method.GetParameters().Select(parameter => parameter.ParameterType.FullName)) + ")"; } } }