dengjunjie
2025-04-26 18d2f40bbf40469b033de6f07ca8a8e3bc191132
项目代码/WMS/WIDESEA_WMSServer/WIDESEA_Core/Helper/MethodInfoExtensions.cs
对比新文件
@@ -0,0 +1,22 @@
锘縰sing System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
namespace WIDESEA_Core.Helper
{
    public static class MethodInfoExtensions
    {
        public static string GetFullName(this MethodInfo method)
        {
            if (method.DeclaringType == null)
            {
                return $@"{method.Name}";
            }
            return $"{method.DeclaringType.FullName}.{method.Name}";
        }
    }
}