YamlAssetPathComparer Class
Namespace: Stride.Core.Assets.YamlAssembly: 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>.
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) |
Properties
Default
public static YamlAssetPathComparer Default { get; }
Property Value
Type | Description |
---|---|
YamlAssetPathComparer |
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)