Esempio n. 1
0
 /// <summary>
 /// 初始化一个<see cref="ParameterParserBase"/>类型的实例
 /// </summary>
 /// <param name="parser">参数解析器</param>
 protected ParameterParserBase(IParameterParser parser) : this(parser.GetDictionary())
 {
 }
 /// <summary>
 /// 获取字典
 /// </summary>
 /// <returns></returns>
 public IDictionary <string, string> GetDictionary()
 {
     return(_parser.GetDictionary().ToDictionary(t => t.Key, t => t.Value.SafeString()));
 }