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
type
YamlAssetPath.ElementTypeThe type of element.
value
objectThe 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
other
YamlAssetPath.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
obj
objectThe object to compare with the current instance.
Returns
- bool
true if
obj
and 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
left
YamlAssetPath.Elementright
YamlAssetPath.Element
Returns
operator !=(Element, Element)
public static bool operator !=(YamlAssetPath.Element left, YamlAssetPath.Element right)
Parameters
left
YamlAssetPath.Elementright
YamlAssetPath.Element