自动生成代理类

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

posted @ 2017-05-06 19:03  天藐水瓶  阅读(202)  评论(0编辑  收藏  举报