PropertyContainerClass Class
Namespace: Stride.Core
Assembly: Stride.Core.dll
System.Object →
PropertyContainerClass
Derived from PropertyContainerClass:
[DataContract]
[DataSerializer(typeof(DictionaryAllSerializer<PropertyContainerClass, PropertyKey, object>))]
public class PropertyContainerClass : IDictionary<PropertyKey, object>, ICollection<KeyValuePair<PropertyKey, object>>, IReadOnlyDictionary<PropertyKey, object>, IReadOnlyCollection<KeyValuePair<PropertyKey, object>>, IEnumerable<KeyValuePair<PropertyKey, object>>, IEnumerable
Name |
Description |
Constructors
|
|
PropertyContainerClass() |
|
|
PropertyContainerClass(Object) |
|
Properties
|
|
Count |
|
|
IsReadOnly |
|
|
Item[PropertyKey] |
|
|
Keys |
|
|
Owner |
|
|
Values |
|
Methods
|
|
Add<T>(PropertyKey<T>, T) |
|
|
Clear() |
|
|
ContainsKey(PropertyKey) |
|
|
CopyTo(ref PropertyContainer) |
|
|
CopyTo(PropertyContainerClass) |
|
|
Get(PropertyKey) |
|
|
Get<T>(PropertyKey<T>) |
|
|
GetSafe<T>(PropertyKey<T>) |
|
|
Remove(PropertyKey) |
|
|
Set<T>(PropertyKey<T>, T) |
|
|
SetObject(PropertyKey, Object) |
|
|
TryGetValue(PropertyKey, out Object) |
|
|
TryGetValue<T>(PropertyKey<T>, out T) |
|
Events
|
|
PropertyUpdated |
|
Explicit Interface Implementations
|
|
ICollection<KeyValuePair<PropertyKey, Object>>.Add(KeyValuePair<PropertyKey, Object>) |
|
|
ICollection<KeyValuePair<PropertyKey, Object>>.Contains(KeyValuePair<PropertyKey, Object>) |
|
|
ICollection<KeyValuePair<PropertyKey, Object>>.CopyTo(KeyValuePair<PropertyKey, Object>[], Int32) |
|
|
ICollection<KeyValuePair<PropertyKey, Object>>.Remove(KeyValuePair<PropertyKey, Object>) |
|
|
IDictionary<PropertyKey, Object>.Add(PropertyKey, Object) |
|
|
IEnumerable<KeyValuePair<PropertyKey, Object>>.GetEnumerator() |
|
|
IReadOnlyDictionary<PropertyKey, Object>.Keys |
|
|
IReadOnlyDictionary<PropertyKey, Object>.Values |
|
|
IEnumerable.GetEnumerator() |
|
|
Improve this Doc
View Source
Constructors
PropertyContainerClass()
public PropertyContainerClass()
PropertyContainerClass(Object)
public PropertyContainerClass(object owner)
Parameters
Type |
Name |
Description |
System.Object |
owner |
|
|
Improve this Doc
View Source
Properties
Count
public int Count { get; }
Property Value
Type |
Description |
System.Int32 |
|
IsReadOnly
public bool IsReadOnly { get; }
Property Value
Type |
Description |
System.Boolean |
|
Item[PropertyKey]
public object this[PropertyKey key] { get; set; }
Parameters
Property Value
Type |
Description |
System.Object |
|
Keys
public ICollection<PropertyKey> Keys { get; }
Property Value
Type |
Description |
System.Collections.Generic.ICollection<PropertyKey> |
|
Owner
public object Owner { get; }
Property Value
Type |
Description |
System.Object |
|
Values
public ICollection<object> Values { get; }
Property Value
Type |
Description |
System.Collections.Generic.ICollection<System.Object> |
|
|
Improve this Doc
View Source
Methods
Add<T>(PropertyKey<T>, T)
public void Add<T>(PropertyKey<T> key, T value)
Parameters
Type Parameters
Clear()
ContainsKey(PropertyKey)
public bool ContainsKey(PropertyKey key)
Parameters
Returns
Type |
Description |
System.Boolean |
|
CopyTo(ref PropertyContainer)
public void CopyTo(ref PropertyContainer destination)
Parameters
CopyTo(PropertyContainerClass)
public void CopyTo(PropertyContainerClass destination)
Parameters
Get(PropertyKey)
public object Get(PropertyKey propertyKey)
Parameters
Returns
Type |
Description |
System.Object |
|
Get<T>(PropertyKey<T>)
public T Get<T>(PropertyKey<T> propertyKey)
Parameters
Returns
Type Parameters
GetSafe<T>(PropertyKey<T>)
public T GetSafe<T>(PropertyKey<T> propertyKey)
Parameters
Returns
Type Parameters
Remove(PropertyKey)
public bool Remove(PropertyKey propertyKey)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Set<T>(PropertyKey<T>, T)
public void Set<T>(PropertyKey<T> propertyKey, T tagValue)
Parameters
Type |
Name |
Description |
PropertyKey<T> |
propertyKey |
|
T |
tagValue |
|
Type Parameters
SetObject(PropertyKey, Object)
public void SetObject(PropertyKey propertyKey, object tagValue)
Parameters
Type |
Name |
Description |
PropertyKey |
propertyKey |
|
System.Object |
tagValue |
|
TryGetValue(PropertyKey, out Object)
public bool TryGetValue(PropertyKey propertyKey, out object value)
Parameters
Type |
Name |
Description |
PropertyKey |
propertyKey |
|
System.Object |
value |
|
Returns
Type |
Description |
System.Boolean |
|
TryGetValue<T>(PropertyKey<T>, out T)
public bool TryGetValue<T>(PropertyKey<T> propertyKey, out T value)
Parameters
Type |
Name |
Description |
PropertyKey<T> |
propertyKey |
|
T |
value |
|
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
|
Improve this Doc
View Source
Events
PropertyUpdated
public event PropertyContainer.PropertyUpdatedDelegate PropertyUpdated
Event Type
|
Improve this Doc
View Source
Explicit Interface Implementations
ICollection<KeyValuePair<PropertyKey, Object>>.Add(KeyValuePair<PropertyKey, Object>)
void ICollection<KeyValuePair<PropertyKey, object>>.Add(KeyValuePair<PropertyKey, object> item)
Parameters
Type |
Name |
Description |
System.Collections.Generic.KeyValuePair<PropertyKey, System.Object> |
item |
|
ICollection<KeyValuePair<PropertyKey, Object>>.Contains(KeyValuePair<PropertyKey, Object>)
bool ICollection<KeyValuePair<PropertyKey, object>>.Contains(KeyValuePair<PropertyKey, object> item)
Parameters
Type |
Name |
Description |
System.Collections.Generic.KeyValuePair<PropertyKey, System.Object> |
item |
|
Returns
Type |
Description |
System.Boolean |
|
ICollection<KeyValuePair<PropertyKey, Object>>.CopyTo(KeyValuePair<PropertyKey, Object>[], Int32)
void ICollection<KeyValuePair<PropertyKey, object>>.CopyTo(KeyValuePair<PropertyKey, object>[] array, int arrayIndex)
Parameters
Type |
Name |
Description |
System.Collections.Generic.KeyValuePair<PropertyKey, System.Object>[] |
array |
|
System.Int32 |
arrayIndex |
|
ICollection<KeyValuePair<PropertyKey, Object>>.Remove(KeyValuePair<PropertyKey, Object>)
bool ICollection<KeyValuePair<PropertyKey, object>>.Remove(KeyValuePair<PropertyKey, object> item)
Parameters
Type |
Name |
Description |
System.Collections.Generic.KeyValuePair<PropertyKey, System.Object> |
item |
|
Returns
Type |
Description |
System.Boolean |
|
IDictionary<PropertyKey, Object>.Add(PropertyKey, Object)
void IDictionary<PropertyKey, object>.Add(PropertyKey key, object value)
Parameters
Type |
Name |
Description |
PropertyKey |
key |
|
System.Object |
value |
|
IEnumerable<KeyValuePair<PropertyKey, Object>>.GetEnumerator()
IEnumerator<KeyValuePair<PropertyKey, object>> IEnumerable<KeyValuePair<PropertyKey, object>>.GetEnumerator()
Returns
Type |
Description |
System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<PropertyKey, System.Object>> |
|
IReadOnlyDictionary<PropertyKey, Object>.Keys
IEnumerable<PropertyKey> IReadOnlyDictionary<PropertyKey, object>.Keys { get; }
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<PropertyKey> |
|
IReadOnlyDictionary<PropertyKey, Object>.Values
IEnumerable<object> IReadOnlyDictionary<PropertyKey, object>.Values { get; }
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<System.Object> |
|
IEnumerable.GetEnumerator()
IEnumerator IEnumerable.GetEnumerator()
Returns
Type |
Description |
System.Collections.IEnumerator |
|
Extension Methods