Edytuj

Udostępnij za pośrednictwem


GrainType Struct

Definition

Represents the type of a grain.

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

Constructors

GrainType(Byte[])

Initializes a new instance of the GrainType struct.

GrainType(IdSpan)

Initializes a new instance of the GrainType 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(GrainType)

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 GrainType instance.

Equals(GrainType)

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()

Generates a uniform, stable hash code for this grain type.

ToString()

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

UnsafeGetArray(GrainType)

Returns the array underlying a grain type instance.

Operators

Equality(GrainType, GrainType)

Compares the provided operands for equality.

Explicit(GrainType to IdSpan)

Converts a GrainType to a IdSpan.

Explicit(IdSpan to GrainType)

Converts a IdSpan to a GrainType.

Inequality(GrainType, GrainType)

Compares the provided operands for inequality.

Explicit Interface Implementations

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

Extension Methods

IsClient(GrainType)

Returns true if the type is a client, false if not.

IsGrainService(GrainType)

Returns true if the type is a grain service, false if not.

IsLegacyGrain(GrainType)

Returns true if the type is a legacy grain, false if not.

IsSystemTarget(GrainType)

Returns true if the type is a system target, false if not.

Applies to