/// <summary>
 /// Adds a new value to the list description.
 /// </summary>
 ///
 /// <param name="value">The value which should be added.</param>
 public MultiTypeListBuilder Add(MultiTypeValue value)
 {
     m_list.Add(value);
     return(this);
 }
예제 #2
0
 /// <summary>
 /// Adds a new value to the dictionary description.
 /// </summary>
 ///
 /// <param name="key">The key this value should be stored under.</param>
 /// <param name="value">The value which should be added.</param>
 public MultiTypeDictionaryBuilder Add(string key, MultiTypeValue value)
 {
     ReleaseAssert.IsFalse(m_dictionary.ContainsKey(key), "Dictionary already contains the key '" + key + "'");
     m_dictionary.Add(key, value);
     return(this);
 }