Example #1
0
 public void AppendProperty <E>(string name, IEnumerable <E> values)
 {
     if (null == values)
     {
         _sb.Append(ParameterChecker.IsNull(name) + "=" + Environment.NewLine);
         _sb.Append(ParameterChecker.IsNull(values));
     }
     else
     {
         if (values is string ||
             values is String)
         {
             _sb.Append(ParameterChecker.IsNull(name) + "=" + ParameterChecker.IsNull(values));
         }
         else
         {
             _sb.Append(ParameterChecker.IsNull(name) + "=" + Environment.NewLine);
             foreach (E obj in values)
             {
                 _sb.Append(ParameterChecker.IsNull(obj) + Environment.NewLine);
             }
         }
     }
 }
Example #2
0
 public void Append(string name, string value)
 {
     AppendProperty(ParameterChecker.IsNull(name), ParameterChecker.IsNull(value) + Environment.NewLine);
 }
Example #3
0
 public void AppendProperty(string name, string value)
 {
     _sb.Append(ParameterChecker.IsNull(name) + "=" + ParameterChecker.IsNull(value) + ", ");
 }