1. 程式人生 > >自動生成代理類

自動生成代理類

ase static sta public question desc cto cape proxy

WebApiProxy-Generate-CSharp
public static string AssemblyDirectory
{
get
{
string codeBase = Assembly.GetExecutingAssembly().CodeBase;
UriBuilder uri = new UriBuilder(codeBase);
string path = Uri.UnescapeDataString(uri.Path);
return Path.GetDirectoryName(path);
}
}

http://stackoverflow.com/questions/4367723/get-enum-from-description-attribute

自動生成代理類