Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    YamlAssetPath.Element Struct

    Namespace: Stride.Core.Assets.Yaml
    Assembly: 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)
    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    Methods


    AsItemId()

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

    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()

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation