예제 #1
0
        protected void AddPropertyValues(string key, object value, char delimiter)
        {
            var values = PropertyConverter.Flatten(value, delimiter);

            foreach (var elem in values)
            {
                AddPropertyDirect(key, elem);
            }
        }
예제 #2
0
 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;
     }
 }