Edytuj

Udostępnij za pośrednictwem


IdSpan Struct

Definition

Primitive type for identities, representing a sequence of bytes.

[Orleans.GenerateSerializer]
[Orleans.Immutable]
[System.Serializable]
public readonly struct IdSpan : IComparable<Orleans.Runtime.IdSpan>, IEquatable<Orleans.Runtime.IdSpan>, ISpanFormattable, System.Runtime.Serialization.ISerializable
[<Orleans.GenerateSerializer>]
[<Orleans.Immutable>]
[<System.Serializable>]
type IdSpan = struct
    interface ISerializable
    interface ISpanFormattable
    interface IFormattable
Public Structure IdSpan
Implements IComparable(Of IdSpan), IEquatable(Of IdSpan), ISerializable, ISpanFormattable
Inheritance
IdSpan
Attributes
Implements

Constructors

IdSpan(Byte[])

Initializes a new instance of the IdSpan struct.

Properties

IsDefault

Gets a value indicating whether this instance is the default value.

Value

Gets the underlying value.

Methods

AsSpan()

Returns a span representation of this instance.

CompareTo(IdSpan)

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.

Create(String)

Creates a new IdSpan instance from the provided value.

Equals(IdSpan)

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

Equals(Object)

Indicates whether this instance and a specified object are equal.

GetHashCode()

Returns the hash code for this instance.

GetObjectData(SerializationInfo, StreamingContext)
Obsolete.

Populates a SerializationInfo with the data needed to serialize the target object.

GetUniformHashCode()

Returns a uniform, stable hash code for an IdSpan.

ToString()

Returns a string representation of this instance, decoding the value as UTF8.

TryFormat(Span<Char>, Int32)
UnsafeCreate(Byte[], Int32)

Creates an instance, specifying both the hash code and the value.

UnsafeGetArray(IdSpan)

Gets the underlying array from this instance.

Operators

Equality(IdSpan, IdSpan)

Compares the provided operands for equality.

Inequality(IdSpan, IdSpan)

Compares the provided operands for inequality.

Explicit Interface Implementations

IFormattable.ToString(String, IFormatProvider)
ISpanFormattable.TryFormat(Span<Char>, Int32, ReadOnlySpan<Char>, IFormatProvider)

Applies to