接口文件
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
namespace Hncore.Infrastructure.Extension
|
||||
{
|
||||
/// <summary>
|
||||
/// 程序集扩展类
|
||||
/// </summary>
|
||||
public static class AssemblyExtension
|
||||
{
|
||||
/// <summary>
|
||||
///得到程序集友好名字
|
||||
/// </summary>
|
||||
/// <param name="para"></param>
|
||||
/// <returns></returns>
|
||||
public static string GetFriendName(this Assembly asm)
|
||||
{
|
||||
return asm.ManifestModule?.Name?.TrimEnd(".dll".ToCharArray());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user