4 using System.Collections.Concurrent;
5 using System.Collections.Generic;
6 using SiliconStudio.Core;
8 namespace SiliconStudio.Assets
13 [DataContract(
"PropertyCollection")]
40 TryGetValue(key, out value);
53 return value == null ?
default(T) : (T)value;
85 if (properties == null)
throw new ArgumentNullException(
"properties");
86 foreach (var propKeyValue
in this)
88 if (!overrideValues && properties.ContainsKey(propKeyValue.Key))
92 properties[propKeyValue.Key] = propKeyValue.Value;
PropertyCollection(IEnumerable< KeyValuePair< PropertyKey, object >> dictionary)
Initializes a new instance of the PropertyCollection class.
PropertyCollection()
Initializes a new instance of the PropertyCollection class.
object Get(PropertyKey key)
Gets a value for the specified key, null if not found.
void Set(PropertyKey key, object value)
Sets a value for the specified key.
A class that represents a typed tag propety.
A collection of properties.
void CopyTo(IDictionary< PropertyKey, object > properties, bool overrideValues)
Copies this properties to a output dictionary.
A class that represents a tag propety.