C# 获得Properties下的定义的资源

var  str1 = Properties.Resources.ResourceManager.GetObject("String1", null);
   string url = System.Configuration.ConfigurationManager.AppSettings["url"]; //获得配置文件下的值

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <appSettings>
    <add key="url" value="http://123465/132.gz"/>
  </appSettings>
</configuration>
原文地址:https://www.cnblogs.com/enych/p/9921595.html