You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
356 B
C#
16 lines
356 B
C#
using System.Reflection;
|
|
|
|
namespace EntrustSettle.Common.Extensions;
|
|
|
|
public static class MethodInfoExtensions
|
|
{
|
|
public static string GetFullName(this MethodInfo method)
|
|
{
|
|
if (method.DeclaringType == null)
|
|
{
|
|
return $@"{method.Name}";
|
|
}
|
|
|
|
return $"{method.DeclaringType.FullName}.{method.Name}";
|
|
}
|
|
} |