Пример #1
0
 /// <summary>
 /// 获取T类型定义程序集所在目录
 /// </summary>
 /// <typeparam name="T">类型</typeparam>
 /// <returns>程序集所在目录</returns>
 public static string GetAssemblyDirectory <T>()
 {
     return(ObjectEx.GetAssemblyDirectory(typeof(T)));
 }
Пример #2
0
 /// <summary>
 /// 获取对象类型定义程序集所在目录
 /// </summary>
 /// <param name="obj">对象</param>
 /// <returns>程序集所在目录</returns>
 public static string GetAssemblyDirectory(object obj)
 {
     return(ObjectEx.GetAssemblyDirectory(obj.GetType()));
 }