Struct RayId
[MessagePackObject(false)]
public struct RayId : IEquatable<RayId>
- Implements
Fields
MaxStringLength
public const int MaxStringLength = 32
Field Value
MaxValue
public static readonly RayId MaxValue
Field Value
NullString
public static readonly string NullString
Field Value
Properties
Nonce1
[Key(0)]
public ulong Nonce1 { readonly get; set; }
Property Value
Nonce2
[Key(1)]
public ulong Nonce2 { readonly get; set; }
Property Value
Methods
BuildString()
public string BuildString()
Returns
Equals(RayId)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(RayId other)
Parameters
other
RayIdAn object to compare with this object.
Returns
Equals(ref RayId)
public bool Equals(ref RayId other)
Parameters
other
RayId
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.
Generate()
public static RayId Generate()
Returns
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.
IsValid()
public bool IsValid()
Returns
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.
TryParse(ReadOnlySpan<char>, out RayId)
public static bool TryParse(ReadOnlySpan<char> span, out RayId rayId)
Parameters
span
ReadOnlySpan<char>rayId
RayId
Returns
TryParse(ref ReadOnlySpan<char>, out RayId)
public static bool TryParse(ref ReadOnlySpan<char> span, out RayId rayId)
Parameters
span
ReadOnlySpan<char>rayId
RayId
Returns
TryParseOrDefault(ReadOnlySpan<char>)
public static RayId TryParseOrDefault(ReadOnlySpan<char> span)
Parameters
span
ReadOnlySpan<char>
Returns
Operators
operator ==(RayId, RayId)
public static bool operator ==(RayId left, RayId right)
Parameters
Returns
operator !=(RayId, RayId)
public static bool operator !=(RayId left, RayId right)