Struct YamlAssetPath.Element
A structure representing an element of a YamlAssetPath.
public 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.ElementTypeThe type of element.
valueobjectThe value of the element.
Fields
Type
The type of the element.
public readonly YamlAssetPath.ElementType Type
Field Value
Value
The value of the element, corresonding to its Type.
public readonly object Value
Field Value
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.ElementAn 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
objobjectThe 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.ElementrightYamlAssetPath.Element
Returns
operator !=(Element, Element)
public static bool operator !=(YamlAssetPath.Element left, YamlAssetPath.Element right)
Parameters
leftYamlAssetPath.ElementrightYamlAssetPath.Element