首页 > 代码库 > 自动生成代理类

自动生成代理类

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

自动生成代理类