Struct YamlAssetPath.Element
A structure representing an element of a YamlAssetPath.
public readonly struct YamlAssetPath.Element : IEquatable<YamlAssetPath.Element>- Implements
- Inherited Members
Constructors
Element(ElementType, object)
Initializes a new instance of the YamlAssetPath.Element structure.
public Element(YamlAssetPath.ElementType type, object value)Parameters
- typeYamlAssetPath.ElementType
- The type of element. 
- valueobject
- The value of the element. 
Fields
Type
The type of the element.
public readonly YamlAssetPath.ElementType TypeField Value
Value
The value of the element, corresonding to its Type.
public readonly object ValueField Value
- object
Methods
AsItemId()
public ItemId AsItemId()Returns
AsMember()
Fetches the name of the member, considering this element is a Member.
public string AsMember()Returns
- string
- The name of the member. 
Equals(Element)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(YamlAssetPath.Element other)Parameters
- otherYamlAssetPath.Element
- An object to compare with this object. 
Returns
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object? obj)Parameters
- objobject
- The object to compare with the current instance. 
Returns
- bool
- true if - objand this instance are the same type and represent the same value; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()Returns
- int
- A 32-bit signed integer that is the hash code for this instance. 
Operators
operator ==(Element, Element)
public static bool operator ==(YamlAssetPath.Element left, YamlAssetPath.Element right)Parameters
- leftYamlAssetPath.Element
- rightYamlAssetPath.Element
Returns
operator !=(Element, Element)
public static bool operator !=(YamlAssetPath.Element left, YamlAssetPath.Element right)Parameters
- leftYamlAssetPath.Element
- rightYamlAssetPath.Element