Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    YamlAssetPathComparer Class

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

    Equality comparer for YamlAssetPath hwne used as a key in a hashing collection (e.g. System.Collections.Generic.Dictionary<TKey, TValue>.

    System.Object → System.Collections.Generic.EqualityComparer<YamlAssetPath> → YamlAssetPathComparer
    Derived from YamlAssetPathComparer:

    public class YamlAssetPathComparer : EqualityComparer<YamlAssetPath>, IEqualityComparer, IEqualityComparer<YamlAssetPath>
    Remarks

    To stay valid the compared YamlAssetPath must not change while used as keys in the hashing collection.

    Name Description
    Properties
    Default
    Methods
    Equals(YamlAssetPath, YamlAssetPath)
    GetHashCode(YamlAssetPath)
    | Improve this Doc View Source

    Properties


    Default

    public static YamlAssetPathComparer Default { get; }
    Property Value
    Type Description
    YamlAssetPathComparer
    | Improve this Doc View Source

    Methods


    Equals(YamlAssetPath, YamlAssetPath)

    public override bool Equals(YamlAssetPath x, YamlAssetPath y)
    Parameters
    Type Name Description
    YamlAssetPath x
    YamlAssetPath y
    Returns
    Type Description
    System.Boolean
    Overrides
    System.Collections.Generic.EqualityComparer<Stride.Core.Assets.Yaml.YamlAssetPath>.Equals(Stride.Core.Assets.Yaml.YamlAssetPath, Stride.Core.Assets.Yaml.YamlAssetPath)

    GetHashCode(YamlAssetPath)

    public override int GetHashCode(YamlAssetPath obj)
    Parameters
    Type Name Description
    YamlAssetPath obj
    Returns
    Type Description
    System.Int32
    Overrides
    System.Collections.Generic.EqualityComparer<Stride.Core.Assets.Yaml.YamlAssetPath>.GetHashCode(Stride.Core.Assets.Yaml.YamlAssetPath)

    Inherited Members

    System.Collections.Generic.EqualityComparer<Stride.Core.Assets.Yaml.YamlAssetPath>.System.Collections.IEqualityComparer.GetHashCode(System.Object)
    System.Collections.Generic.EqualityComparer<Stride.Core.Assets.Yaml.YamlAssetPath>.System.Collections.IEqualityComparer.Equals(System.Object, System.Object)

    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