Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    KeyWithId<TKey> Struct

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

    A generic structure that implements the IKeyWithId interface for keys that are not deleted.

    public struct KeyWithId<TKey> : IKeyWithId
    Type Parameters
    Name Description
    TKey

    The type of the key.

    Name Description
    Constructors
    KeyWithId(ItemId, TKey)

    Initializes a new instance of the KeyWithId<TKey> structure.

    Fields
    Id

    The ItemId associated to the key.

    Key

    The key of the dictionary.

    Explicit Interface Implementations
    IKeyWithId.Id

    The ItemId associated to the key.

    IKeyWithId.IsDeleted

    Indicates whether this key is considered to be deleted in the dictionary, and kept around for reconcilation purpose.

    IKeyWithId.Key

    The key of the dictionary.

    IKeyWithId.KeyType

    The type of the key.

    | Improve this Doc View Source

    Constructors


    KeyWithId(ItemId, TKey)

    Initializes a new instance of the KeyWithId<TKey> structure.

    public KeyWithId(ItemId id, TKey key)
    Parameters
    Type Name Description
    ItemId id

    The ItemId associated to the key.

    TKey key

    The key of the dictionary.

    | Improve this Doc View Source

    Fields


    Id

    The ItemId associated to the key.

    public readonly ItemId Id
    Field Value
    Type Description
    ItemId

    Key

    The key of the dictionary.

    public readonly TKey Key
    Field Value
    Type Description
    TKey
    | Improve this Doc View Source

    Explicit Interface Implementations


    IKeyWithId.Id

    The ItemId associated to the key.

    readonly ItemId IKeyWithId.Id { get; }
    Returns
    Type Description
    ItemId

    IKeyWithId.IsDeleted

    Indicates whether this key is considered to be deleted in the dictionary, and kept around for reconcilation purpose.

    readonly bool IKeyWithId.IsDeleted { get; }
    Returns
    Type Description
    System.Boolean

    IKeyWithId.Key

    The key of the dictionary.

    readonly object IKeyWithId.Key { get; }
    Returns
    Type Description
    System.Object

    IKeyWithId.KeyType

    The type of the key.

    readonly Type IKeyWithId.KeyType { get; }
    Returns
    Type Description
    System.Type

    Inherited Members

    System.ValueType.Equals(System.Object)
    System.ValueType.GetHashCode()
    System.ValueType.ToString()

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

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