protected void AddPropertyValues(string key, object value, char delimiter) { var values = PropertyConverter.Flatten(value, delimiter); foreach (var elem in values) { AddPropertyDirect(key, elem); } }
private void DoSetProperty(string key, object value) { if (DelimiterParsingDisabled) { m_Properties[key] = value; } else if (value is string && ((string)value).IndexOf(ListDelimiter) < 0) { m_Properties[key] = value; } else { var values = PropertyConverter.Flatten(value, ListDelimiter); m_Properties[key] = values.Count == 1 ? values.Cast <object>().First() : values; } }