Table of Contents

Struct YamlAssetPath.Element

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

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.ElementType

The type of element.

value object

The value of the element.

Fields

Type

The type of the element.

public readonly YamlAssetPath.ElementType Type

Field Value

YamlAssetPath.ElementType

Value

The value of the element, corresonding to its Type.

public readonly object Value

Field Value

object

Methods

AsItemId()

Returns the ItemId of this element, considering this element is a ItemId.

public ItemId AsItemId()

Returns

ItemId

The ItemId of the item.

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.Element

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object obj)

Parameters

obj object

The 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.Element
right YamlAssetPath.Element

Returns

bool

operator !=(Element, Element)

public static bool operator !=(YamlAssetPath.Element left, YamlAssetPath.Element right)

Parameters

left YamlAssetPath.Element
right YamlAssetPath.Element

Returns

bool