Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    PropertyContainerClass Class

    Namespace: Stride.Core
    Assembly: Stride.Core.dll

    Class wrapper around PropertyContainer.

    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
    Type Name Description
    PropertyKey key
    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 Name Description
    PropertyKey<T> key
    T value
    Type Parameters
    Name Description
    T

    Clear()

    public void Clear()

    ContainsKey(PropertyKey)

    public bool ContainsKey(PropertyKey key)
    Parameters
    Type Name Description
    PropertyKey key
    Returns
    Type Description
    System.Boolean

    CopyTo(ref PropertyContainer)

    public void CopyTo(ref PropertyContainer destination)
    Parameters
    Type Name Description
    PropertyContainer destination

    CopyTo(PropertyContainerClass)

    public void CopyTo(PropertyContainerClass destination)
    Parameters
    Type Name Description
    PropertyContainerClass destination

    Get(PropertyKey)

    public object Get(PropertyKey propertyKey)
    Parameters
    Type Name Description
    PropertyKey propertyKey
    Returns
    Type Description
    System.Object

    Get<T>(PropertyKey<T>)

    public T Get<T>(PropertyKey<T> propertyKey)
    Parameters
    Type Name Description
    PropertyKey<T> propertyKey
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    GetSafe<T>(PropertyKey<T>)

    public T GetSafe<T>(PropertyKey<T> propertyKey)
    Parameters
    Type Name Description
    PropertyKey<T> propertyKey
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    Remove(PropertyKey)

    public bool Remove(PropertyKey propertyKey)
    Parameters
    Type Name Description
    PropertyKey propertyKey
    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
    Name Description
    T

    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
    Name Description
    T
    | Improve this Doc View Source

    Events


    PropertyUpdated

    public event PropertyContainer.PropertyUpdatedDelegate PropertyUpdated
    Event Type
    Type Description
    PropertyContainer.PropertyUpdatedDelegate
    | 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

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    ArrayExtensions.ComputeHash<T>(ICollection<T>, IEqualityComparer<T>)
    EnumerableExtensions.IsNullOrEmpty(IEnumerable)
    EnumerableExtensions.ForEach<T>(IEnumerable, Action<T>)
    EnumerableExtensions.ForEach<T>(IEnumerable<T>, Action<T>)
    EnumerableExtensions.IndexOf<T>(IEnumerable<T>, Func<T, Boolean>)
    EnumerableExtensions.LastIndexOf<T>(IEnumerable<T>, Func<T, Boolean>)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation