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); } } } }
public void Append(string name, string value) { AppendProperty(ParameterChecker.IsNull(name), ParameterChecker.IsNull(value) + Environment.NewLine); }
public void Append(object value) { _sb.Append(ParameterChecker.IsNullEmpty(value)); }
public void AppendProperty(string name, object value) { _sb.Append(ParameterChecker.IsNull(name) + "=" + ParameterChecker.IsNull(value) + Environment.NewLine); }