Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    PropertyCollection Class

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

    A collection of properties.

    System.Object → System.Collections.Concurrent.ConcurrentDictionary<PropertyKey, System.Object> → PropertyCollection
    Derived from PropertyCollection:

    [DataContract("PropertyCollection")]
    public sealed class PropertyCollection : ConcurrentDictionary<PropertyKey, object>, IDictionary<PropertyKey, object>, ICollection<KeyValuePair<PropertyKey, object>>, IDictionary, ICollection, IReadOnlyDictionary<PropertyKey, object>, IReadOnlyCollection<KeyValuePair<PropertyKey, object>>, IEnumerable<KeyValuePair<PropertyKey, object>>, IEnumerable
    Name Description
    Constructors
    PropertyCollection()

    Initializes a new instance of the PropertyCollection class.

    PropertyCollection(IEnumerable<KeyValuePair<PropertyKey, Object>>)

    Initializes a new instance of the PropertyCollection class.

    Methods
    CopyTo(IDictionary<PropertyKey, Object>, Boolean)

    Copies this properties to a output dictionary.

    Get(PropertyKey)

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

    Get<T>(PropertyKey<T>)

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

    Set(PropertyKey, Object)

    Sets a value for the specified key.

    Set<T>(PropertyKey<T>, T)

    Sets a value for the specified key.

    TryGet<T>(PropertyKey<T>, out T)

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

    | Improve this Doc View Source

    Constructors


    PropertyCollection()

    Initializes a new instance of the PropertyCollection class.

    public PropertyCollection()

    PropertyCollection(IEnumerable<KeyValuePair<PropertyKey, Object>>)

    Initializes a new instance of the PropertyCollection class.

    public PropertyCollection(IEnumerable<KeyValuePair<PropertyKey, object>> dictionary)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<PropertyKey, System.Object>> dictionary

    The dictionary.

    | Improve this Doc View Source

    Methods


    CopyTo(IDictionary<PropertyKey, Object>, Boolean)

    Copies this properties to a output dictionary.

    public void CopyTo(IDictionary<PropertyKey, object> properties, bool overrideValues)
    Parameters
    Type Name Description
    System.Collections.Generic.IDictionary<PropertyKey, System.Object> properties

    The dictionary to receive a copy of the properties of this instance.

    System.Boolean overrideValues

    if set to true [override values].

    Exceptions
    Type Condition
    System.ArgumentNullException

    properties


    Get(PropertyKey)

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

    public object Get(PropertyKey key)
    Parameters
    Type Name Description
    PropertyKey key

    The key.

    Returns
    Type Description
    System.Object

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


    Get<T>(PropertyKey<T>)

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

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

    The key.

    Returns
    Type Description
    T

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

    Type Parameters
    Name Description
    T

    Type of the value


    Set(PropertyKey, Object)

    Sets a value for the specified key.

    public void Set(PropertyKey key, object value)
    Parameters
    Type Name Description
    PropertyKey key

    The key.

    System.Object value

    The value.


    Set<T>(PropertyKey<T>, T)

    Sets a value for the specified key.

    public void Set<T>(PropertyKey<T> key, T value)
    Parameters
    Type Name Description
    PropertyKey<T> key

    The key.

    T value

    The value.

    Type Parameters
    Name Description
    T

    Type of the value.


    TryGet<T>(PropertyKey<T>, out T)

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

    public bool TryGet<T>(PropertyKey<T> key, out T value)
    Parameters
    Type Name Description
    PropertyKey<T> key

    The key.

    T value

    The value.

    Returns
    Type Description
    System.Boolean

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

    Type Parameters
    Name Description
    T

    Type of the value


    Inherited Members

    System.Collections.Concurrent.ConcurrentDictionary<Stride.Core.PropertyKey, System.Object>.TryAdd(Stride.Core.PropertyKey, System.Object)
    System.Collections.Concurrent.ConcurrentDictionary<Stride.Core.PropertyKey, System.Object>.ContainsKey(Stride.Core.PropertyKey)
    System.Collections.Concurrent.ConcurrentDictionary<Stride.Core.PropertyKey, System.Object>.TryRemove(Stride.Core.PropertyKey, System.Object)
    System.Collections.Concurrent.ConcurrentDictionary<Stride.Core.PropertyKey, System.Object>.TryGetValue(Stride.Core.PropertyKey, System.Object)
    System.Collections.Concurrent.ConcurrentDictionary<Stride.Core.PropertyKey, System.Object>.TryUpdate(Stride.Core.PropertyKey, System.Object, System.Object)
    System.Collections.Concurrent.ConcurrentDictionary<Stride.Core.PropertyKey, System.Object>.Clear()
    System.Collections.Concurrent.ConcurrentDictionary<Stride.Core.PropertyKey, System.Object>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<Stride.Core.PropertyKey, System.Object>>.CopyTo(System.Collections.Generic.KeyValuePair<Stride.Core.PropertyKey, System.Object>[], System.Int32)
    System.Collections.Concurrent.ConcurrentDictionary<Stride.Core.PropertyKey, System.Object>.ToArray()
    System.Collections.Concurrent.ConcurrentDictionary<Stride.Core.PropertyKey, System.Object>.GetEnumerator()
    System.Collections.Concurrent.ConcurrentDictionary<Stride.Core.PropertyKey, System.Object>.GetOrAdd(Stride.Core.PropertyKey, System.Func<Stride.Core.PropertyKey, System.Object>)
    System.Collections.Concurrent.ConcurrentDictionary<Stride.Core.PropertyKey, System.Object>.GetOrAdd(Stride.Core.PropertyKey, System.Object)
    System.Collections.Concurrent.ConcurrentDictionary<Stride.Core.PropertyKey, System.Object>.GetOrAdd<TArg>(Stride.Core.PropertyKey, System.Func<Stride.Core.PropertyKey, TArg, System.Object>, TArg)
    System.Collections.Concurrent.ConcurrentDictionary<Stride.Core.PropertyKey, System.Object>.AddOrUpdate<TArg>(Stride.Core.PropertyKey, System.Func<Stride.Core.PropertyKey, TArg, System.Object>, System.Func<Stride.Core.PropertyKey, System.Object, TArg, System.Object>, TArg)
    System.Collections.Concurrent.ConcurrentDictionary<Stride.Core.PropertyKey, System.Object>.AddOrUpdate(Stride.Core.PropertyKey, System.Func<Stride.Core.PropertyKey, System.Object>, System.Func<Stride.Core.PropertyKey, System.Object, System.Object>)
    System.Collections.Concurrent.ConcurrentDictionary<Stride.Core.PropertyKey, System.Object>.AddOrUpdate(Stride.Core.PropertyKey, System.Object, System.Func<Stride.Core.PropertyKey, System.Object, System.Object>)
    System.Collections.Concurrent.ConcurrentDictionary<Stride.Core.PropertyKey, System.Object>.System.Collections.Generic.IDictionary<Stride.Core.PropertyKey, System.Object>.Add(Stride.Core.PropertyKey, System.Object)
    System.Collections.Concurrent.ConcurrentDictionary<Stride.Core.PropertyKey, System.Object>.System.Collections.Generic.IDictionary<Stride.Core.PropertyKey, System.Object>.Remove(Stride.Core.PropertyKey)
    System.Collections.Concurrent.ConcurrentDictionary<Stride.Core.PropertyKey, System.Object>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<Stride.Core.PropertyKey, System.Object>>.Add(System.Collections.Generic.KeyValuePair<Stride.Core.PropertyKey, System.Object>)
    System.Collections.Concurrent.ConcurrentDictionary<Stride.Core.PropertyKey, System.Object>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<Stride.Core.PropertyKey, System.Object>>.Contains(System.Collections.Generic.KeyValuePair<Stride.Core.PropertyKey, System.Object>)
    System.Collections.Concurrent.ConcurrentDictionary<Stride.Core.PropertyKey, System.Object>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<Stride.Core.PropertyKey, System.Object>>.Remove(System.Collections.Generic.KeyValuePair<Stride.Core.PropertyKey, System.Object>)
    System.Collections.Concurrent.ConcurrentDictionary<Stride.Core.PropertyKey, System.Object>.System.Collections.IEnumerable.GetEnumerator()
    System.Collections.Concurrent.ConcurrentDictionary<Stride.Core.PropertyKey, System.Object>.System.Collections.IDictionary.Add(System.Object, System.Object)
    System.Collections.Concurrent.ConcurrentDictionary<Stride.Core.PropertyKey, System.Object>.System.Collections.IDictionary.Contains(System.Object)
    System.Collections.Concurrent.ConcurrentDictionary<Stride.Core.PropertyKey, System.Object>.System.Collections.IDictionary.GetEnumerator()
    System.Collections.Concurrent.ConcurrentDictionary<Stride.Core.PropertyKey, System.Object>.System.Collections.IDictionary.Remove(System.Object)
    System.Collections.Concurrent.ConcurrentDictionary<Stride.Core.PropertyKey, System.Object>.System.Collections.IDictionary.get_Item(System.Object)
    System.Collections.Concurrent.ConcurrentDictionary<Stride.Core.PropertyKey, System.Object>.System.Collections.IDictionary.set_Item(System.Object, System.Object)
    System.Collections.Concurrent.ConcurrentDictionary<Stride.Core.PropertyKey, System.Object>.System.Collections.ICollection.CopyTo(System.Array, System.Int32)
    System.Collections.Concurrent.ConcurrentDictionary<Stride.Core.PropertyKey, System.Object>.Item[Stride.Core.PropertyKey]
    System.Collections.Concurrent.ConcurrentDictionary<Stride.Core.PropertyKey, System.Object>.Count
    System.Collections.Concurrent.ConcurrentDictionary<Stride.Core.PropertyKey, System.Object>.IsEmpty
    System.Collections.Concurrent.ConcurrentDictionary<Stride.Core.PropertyKey, System.Object>.Keys
    System.Collections.Concurrent.ConcurrentDictionary<Stride.Core.PropertyKey, System.Object>.System.Collections.Generic.IReadOnlyDictionary<Stride.Core.PropertyKey, System.Object>.Keys
    System.Collections.Concurrent.ConcurrentDictionary<Stride.Core.PropertyKey, System.Object>.Values
    System.Collections.Concurrent.ConcurrentDictionary<Stride.Core.PropertyKey, System.Object>.System.Collections.Generic.IReadOnlyDictionary<Stride.Core.PropertyKey, System.Object>.Values
    System.Collections.Concurrent.ConcurrentDictionary<Stride.Core.PropertyKey, System.Object>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<Stride.Core.PropertyKey, System.Object>>.IsReadOnly
    System.Collections.Concurrent.ConcurrentDictionary<Stride.Core.PropertyKey, System.Object>.System.Collections.IDictionary.IsFixedSize
    System.Collections.Concurrent.ConcurrentDictionary<Stride.Core.PropertyKey, System.Object>.System.Collections.IDictionary.IsReadOnly
    System.Collections.Concurrent.ConcurrentDictionary<Stride.Core.PropertyKey, System.Object>.System.Collections.IDictionary.Keys
    System.Collections.Concurrent.ConcurrentDictionary<Stride.Core.PropertyKey, System.Object>.System.Collections.IDictionary.Values
    System.Collections.Concurrent.ConcurrentDictionary<Stride.Core.PropertyKey, System.Object>.System.Collections.IDictionary.Item[System.Object]
    System.Collections.Concurrent.ConcurrentDictionary<Stride.Core.PropertyKey, System.Object>.System.Collections.ICollection.IsSynchronized
    System.Collections.Concurrent.ConcurrentDictionary<Stride.Core.PropertyKey, System.Object>.System.Collections.ICollection.SyncRoot

    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