Struct AssetId
[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
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
AssetIdAn 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
AssetIdAn object to compare with this object.
Returns
Equals(object)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object obj)
Parameters
obj
objectThe 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
Parse(string)
public static AssetId Parse(string input)
Parameters
input
string
Returns
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
Returns
Operators
operator ==(AssetId, AssetId)
Implements the ==.
public static bool operator ==(AssetId left, AssetId right)
Parameters
Returns
- bool
The result of the operator.
explicit operator Guid(AssetId)
public static explicit operator Guid(AssetId id)
Parameters
id
AssetId
Returns
explicit operator AssetId(Guid)
public static explicit operator AssetId(Guid guid)
Parameters
guid
Guid
Returns
operator !=(AssetId, AssetId)
Implements the !=.
public static bool operator !=(AssetId left, AssetId right)
Parameters
Returns
- bool
The result of the operator.