YamlAssetPath.Element Struct
Namespace: Stride.Core.Assets.YamlAssembly: Stride.Core.Assets.dll
A structure representing an element of a YamlAssetPath.
public struct Element : IEquatable<YamlAssetPath.Element>
| Name | Description | |
|---|---|---|
| Constructors | ||
| Element(YamlAssetPath.ElementType, Object) | Initializes a new instance of the YamlAssetPath.Element structure. |
|
| Fields | ||
| Type | The type of the element. |
|
| Value | The value of the element, corresonding to its Type. |
|
| Methods | ||
| AsItemId() | Returns the ItemId of this element, considering this element is a ItemId. |
|
| AsMember() | Fetches the name of the member, considering this element is a Member. |
|
| Equals(YamlAssetPath.Element) | ||
| Equals(Object) | ||
| GetHashCode() | ||
| Operators | ||
| Equality(YamlAssetPath.Element, YamlAssetPath.Element) | ||
| Inequality(YamlAssetPath.Element, YamlAssetPath.Element) | ||
Constructors
Element(YamlAssetPath.ElementType, Object)
Initializes a new instance of the YamlAssetPath.Element structure.
public Element(YamlAssetPath.ElementType type, object value)
Parameters
| Type | Name | Description |
|---|---|---|
| YamlAssetPath.ElementType | type | The type of element. |
| System.Object | value | The value of the element. |
Fields
Type
The type of the element.
public readonly YamlAssetPath.ElementType Type
Field Value
| Type | Description |
|---|---|
| YamlAssetPath.ElementType |
Value
The value of the element, corresonding to its Type.
public readonly object Value
Field Value
| Type | Description |
|---|---|
| System.Object |
Methods
AsItemId()
public ItemId AsItemId()
Returns
| Type | Description |
|---|---|
| ItemId | The ItemId of the item. |
AsMember()
Fetches the name of the member, considering this element is a Member.
public string AsMember()
Returns
| Type | Description |
|---|---|
| System.String | The name of the member. |
Equals(YamlAssetPath.Element)
public bool Equals(YamlAssetPath.Element other)
Parameters
| Type | Name | Description |
|---|---|---|
| YamlAssetPath.Element | other |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Equals(Object)
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | obj |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Overrides
System.ValueType.Equals(System.Object)
GetHashCode()
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| System.Int32 |
Overrides
System.ValueType.GetHashCode()
|
Improve this Doc
View Source
Operators
Equality(YamlAssetPath.Element, YamlAssetPath.Element)
public static bool operator ==(YamlAssetPath.Element left, YamlAssetPath.Element right)
Parameters
| Type | Name | Description |
|---|---|---|
| YamlAssetPath.Element | left | |
| YamlAssetPath.Element | right |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Inequality(YamlAssetPath.Element, YamlAssetPath.Element)
public static bool operator !=(YamlAssetPath.Element left, YamlAssetPath.Element right)
Parameters
| Type | Name | Description |
|---|---|---|
| YamlAssetPath.Element | left | |
| YamlAssetPath.Element | right |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Inherited Members
System.ValueType.ToString()