Show / Hide Table of Contents

Struct ClusterMemberId

Represents unique identifier of cluster member.

Implements
IEquatable<ClusterMemberId>
ISerializable
Inherited Members
Object.Equals(Object, Object)
Object.GetType()
Object.ReferenceEquals(Object, Object)
Namespace: DotNext.Net.Cluster
Assembly: DotNext.Net.Cluster.dll
Syntax
[Serializable]
public struct ClusterMemberId : IEquatable<ClusterMemberId>, ISerializable

Constructors

| Improve this Doc View Source

ClusterMemberId(ReadOnlySpan<Byte>)

Initializes a new unique identifier from set of bytes.

Declaration
public ClusterMemberId(ReadOnlySpan<byte> bytes)
Parameters
Type Name Description
ReadOnlySpan<Byte> bytes

The memory block of bytes.

Exceptions
Type Condition
ArgumentOutOfRangeException

bytes is too small.

Methods

| Improve this Doc View Source

Equals(ClusterMemberId)

Determines whether the current identifier is equal to another identifier.

Declaration
public bool Equals(ClusterMemberId other)
Parameters
Type Name Description
ClusterMemberId other

The identifier to compare.

Returns
Type Description
Boolean

true if this identifier is equal to other; otherwise, false.

| Improve this Doc View Source

Equals(Object)

Determines whether the current identifier is equal to another identifier.

Declaration
public override bool Equals(object other)
Parameters
Type Name Description
Object other

The identifier to compare.

Returns
Type Description
Boolean

true if this identifier is equal to other; otherwise, false.

Overrides
ValueType.Equals(Object)
| Improve this Doc View Source

GetHashCode()

Gets the hash code of this identifier.

Declaration
public override int GetHashCode()
Returns
Type Description
Int32

The hash code of this identifier.

Overrides
ValueType.GetHashCode()
| Improve this Doc View Source

ToString()

Returns hexadecimal representation of this identifier.

Declaration
public override string ToString()
Returns
Type Description
String

The hexadecimal representation of this identifier.

Overrides
ValueType.ToString()
| Improve this Doc View Source

TryParse(ReadOnlySpan<Char>, out ClusterMemberId)

Attempts to parse cluster member identifier.

Declaration
public static bool TryParse(ReadOnlySpan<char> identifier, out ClusterMemberId value)
Parameters
Type Name Description
ReadOnlySpan<Char> identifier

The hexadecimal representation of identifier.

ClusterMemberId value

The parsed identifier.

Returns
Type Description
Boolean

true if identifier parsed successfully; otherwise, false.

Operators

| Improve this Doc View Source

Equality(ClusterMemberId, ClusterMemberId)

Determines whether the two identifiers are equal.

Declaration
public static bool operator ==(in ClusterMemberId x, in ClusterMemberId y)
Parameters
Type Name Description
ClusterMemberId x

The first identifier to compare.

ClusterMemberId y

The second identifier to compare.

Returns
Type Description
Boolean

true if both identifiers are equal; otherwise, false.

| Improve this Doc View Source

Inequality(ClusterMemberId, ClusterMemberId)

Determines whether the two identifiers are not equal.

Declaration
public static bool operator !=(in ClusterMemberId x, in ClusterMemberId y)
Parameters
Type Name Description
ClusterMemberId x

The first identifier to compare.

ClusterMemberId y

The second identifier to compare.

Returns
Type Description
Boolean

true if both identifiers are not equal; otherwise, false.

Explicit Interface Implementations

| Improve this Doc View Source

ISerializable.GetObjectData(SerializationInfo, StreamingContext)

Declaration
void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
SerializationInfo info
StreamingContext context

Implements

System.IEquatable<T>
System.Runtime.Serialization.ISerializable

Extension Methods

ValueTypeExtensions.IsOneOf<T>(T, IEnumerable<T>)
ValueTypeExtensions.IsOneOf<T>(T, T[])
Sequence.Skip<TEnumerator, T>(ref TEnumerator, Int32)
ExpressionBuilder.Const<T>(T)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX