Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
SiliconStudio.Assets.PropertyCollection Class Reference

A collection of properties. More...

Inheritance diagram for SiliconStudio.Assets.PropertyCollection:
ConcurrentDictionary< PropertyKey, object >

Public Member Functions

 PropertyCollection ()
 Initializes a new instance of the PropertyCollection class. More...
 
 PropertyCollection (IEnumerable< KeyValuePair< PropertyKey, object >> dictionary)
 Initializes a new instance of the PropertyCollection class. More...
 
object Get (PropertyKey key)
 Gets a value for the specified key, null if not found. More...
 
Get< T > (PropertyKey< T > key)
 Gets a value for the specified key, null if not found. More...
 
void Set (PropertyKey key, object value)
 Sets a value for the specified key. More...
 
void Set< T > (PropertyKey< T > key, T value)
 Sets a value for the specified key. More...
 
void CopyTo (IDictionary< PropertyKey, object > properties, bool overrideValues)
 Copies this properties to a output dictionary. More...
 

Detailed Description

A collection of properties.

Definition at line 14 of file PropertyCollection.cs.

Constructor & Destructor Documentation

SiliconStudio.Assets.PropertyCollection.PropertyCollection ( )

Initializes a new instance of the PropertyCollection class.

Definition at line 19 of file PropertyCollection.cs.

SiliconStudio.Assets.PropertyCollection.PropertyCollection ( IEnumerable< KeyValuePair< PropertyKey, object >>  dictionary)

Initializes a new instance of the PropertyCollection class.

Parameters
dictionaryThe dictionary.

Definition at line 27 of file PropertyCollection.cs.

Member Function Documentation

void SiliconStudio.Assets.PropertyCollection.CopyTo ( IDictionary< PropertyKey, object >  properties,
bool  overrideValues 
)

Copies this properties to a output dictionary.

Parameters
propertiesThe dictionary to receive a copy of the properties of this instance.
overrideValuesif set to true [override values].
Exceptions
System.ArgumentNullExceptionproperties

Definition at line 83 of file PropertyCollection.cs.

object SiliconStudio.Assets.PropertyCollection.Get ( PropertyKey  key)

Gets a value for the specified key, null if not found.

Parameters
keyThe key.
Returns
A value for the specified key, null if not found.

Definition at line 37 of file PropertyCollection.cs.

Gets a value for the specified key, null if not found.

Template Parameters
TType of the value
Parameters
keyThe key.
Returns
a value for the specified key, null if not found.

Definition at line 50 of file PropertyCollection.cs.

void SiliconStudio.Assets.PropertyCollection.Set ( PropertyKey  key,
object  value 
)

Sets a value for the specified key.

Parameters
keyThe key.
valueThe value.

Definition at line 61 of file PropertyCollection.cs.

void SiliconStudio.Assets.PropertyCollection.Set< T > ( PropertyKey< T >  key,
value 
)

Sets a value for the specified key.

Template Parameters
TType of the value.
Parameters
keyThe key.
valueThe value.

Definition at line 72 of file PropertyCollection.cs.


The documentation for this class was generated from the following file: