Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    AssetId Struct

    Namespace: Stride.Core.Assets
    Assembly: Stride.Core.Serialization.dll

    [DataContract("AssetId")]
    [DataSerializer(typeof(AssetId.Serializer))]
    public struct AssetId : IComparable<AssetId>, IEquatable<AssetId>
    Name Description
    Constructors
    AssetId(Guid)
    AssetId(String)
    Fields
    Empty
    Methods
    CompareTo(AssetId)
    Equals(AssetId)
    Equals(Object)
    GetHashCode()
    New()
    Parse(String)
    ToString()
    TryParse(String, out AssetId)
    Operators
    Equality(AssetId, AssetId)

    Implements the ==.

    Explicit(AssetId to Guid)
    Explicit(Guid to AssetId)
    Inequality(AssetId, AssetId)

    Implements the !=.

    | Improve this Doc View Source

    Constructors


    AssetId(Guid)

    public AssetId(Guid guid)
    Parameters
    Type Name Description
    System.Guid guid

    AssetId(String)

    public AssetId(string guid)
    Parameters
    Type Name Description
    System.String guid
    | Improve this Doc View Source

    Fields


    Empty

    public static readonly AssetId Empty
    Field Value
    Type Description
    AssetId
    | Improve this Doc View Source

    Methods


    CompareTo(AssetId)

    public int CompareTo(AssetId other)
    Parameters
    Type Name Description
    AssetId other
    Returns
    Type Description
    System.Int32

    Equals(AssetId)

    public bool Equals(AssetId other)
    Parameters
    Type Name Description
    AssetId 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()

    New()

    public static AssetId New()
    Returns
    Type Description
    AssetId

    Parse(String)

    public static AssetId Parse(string input)
    Parameters
    Type Name Description
    System.String input
    Returns
    Type Description
    AssetId

    ToString()

    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.ValueType.ToString()

    TryParse(String, out AssetId)

    public static bool TryParse(string input, out AssetId result)
    Parameters
    Type Name Description
    System.String input
    AssetId result
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Operators


    Equality(AssetId, AssetId)

    Implements the ==.

    public static bool operator ==(AssetId left, AssetId right)
    Parameters
    Type Name Description
    AssetId left

    The left.

    AssetId right

    The right.

    Returns
    Type Description
    System.Boolean

    The result of the operator.


    Explicit(AssetId to Guid)

    public static explicit operator Guid(AssetId id)
    Parameters
    Type Name Description
    AssetId id
    Returns
    Type Description
    System.Guid

    Explicit(Guid to AssetId)

    public static explicit operator AssetId(Guid guid)
    Parameters
    Type Name Description
    System.Guid guid
    Returns
    Type Description
    AssetId

    Inequality(AssetId, AssetId)

    Implements the !=.

    public static bool operator !=(AssetId left, AssetId right)
    Parameters
    Type Name Description
    AssetId left

    The left.

    AssetId right

    The right.

    Returns
    Type Description
    System.Boolean

    The result of the operator.


    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