Loading files
84e85176bThis file is pinned to the selected release. Download the original to open it in your design tool.
using System.Linq;
namespace System.Reflection;
public static class MethodInfoExtensions
{
/// <summary>
/// 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.
/// </summary>
public static string GetFullName(this MethodInfo method) =>
method.ReturnType.FullName + " " +
method.ReflectedType.FullName + "::" +
method.Name +
"(" + string.Join(",", method.GetParameters().Select(parameter => parameter.ParameterType.FullName)) + ")";
}