获得逻辑类的dll名称|如:SlowX.Core
2017-10-14 23:33:10 访问(1711) 赞(0) 踩(0)
/// <summary>
/// 获得逻辑类的dll名称|如:SlowX.Core
/// </summary>
/// <returns></returns>
public virtual string DLLNameGet()
{
Assembly ass = this.GetType().Assembly;
if (ass == null)
return "";
string str = ass.FullName;
int idx = str.IndexOf(",");
if (idx == -1)
return str;
return str.Substring(0, idx);
}
上一条:
下一条:
相关评论
发表评论