Table of Contents

Struct AssetId

Namespace
Stride.Core.Assets
Assembly
Stride.Core.Serialization.dll
[DataContract("AssetId")]
[DataSerializer(typeof(AssetId.Serializer))]
public struct AssetId : IComparable<AssetId>, IEquatable<AssetId>
Implements

Constructors

AssetId(Guid)

public AssetId(Guid guid)

Parameters

guid Guid

AssetId(string)

public AssetId(string guid)

Parameters

guid string

Fields

Empty

public static readonly AssetId Empty

Field Value

AssetId

Methods

CompareTo(AssetId)

Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.

public int CompareTo(AssetId other)

Parameters

other AssetId

An object to compare with this instance.

Returns

int

A value that indicates the relative order of the objects being compared. The return value has these meanings:

Value Meaning
Less than zero This instance precedes other in the sort order.
Zero This instance occurs in the same position in the sort order as other.
Greater than zero This instance follows other in the sort order.

Equals(AssetId)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(AssetId other)

Parameters

other AssetId

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.

New()

public static AssetId New()

Returns

AssetId

Parse(string)

public static AssetId Parse(string input)

Parameters

input string

Returns

AssetId

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.

TryParse(string, out AssetId)

public static bool TryParse(string input, out AssetId result)

Parameters

input string
result AssetId

Returns

bool

Operators

operator ==(AssetId, AssetId)

Implements the ==.

public static bool operator ==(AssetId left, AssetId right)

Parameters

left AssetId

The left.

right AssetId

The right.

Returns

bool

The result of the operator.

explicit operator Guid(AssetId)

public static explicit operator Guid(AssetId id)

Parameters

id AssetId

Returns

Guid

explicit operator AssetId(Guid)

public static explicit operator AssetId(Guid guid)

Parameters

guid Guid

Returns

AssetId

operator !=(AssetId, AssetId)

Implements the !=.

public static bool operator !=(AssetId left, AssetId right)

Parameters

left AssetId

The left.

right AssetId

The right.

Returns

bool

The result of the operator.