public static string GetDllPath()
{
return System.Reflection.Assembly.GetExecutingAssembly().CodeBase;
}
或:
public string GetDllPath()
{
return System.Reflection.Assembly.GetExecutingAssembly().CodeBase;
}
public static string GetDllPath()
{
return System.Reflection.MethodInfo.GetCurrentMethod().ReflectedType.Module.FullyQualifiedName;
}