Show / Hide Table of Contents

Struct AsyncReaderWriterLock.LockStamp

Represents lock stamp used for optimistic reading.

Implements
IEquatable<AsyncReaderWriterLock.LockStamp>
Inherited Members
ValueType.ToString()
Object.Equals(Object, Object)
Object.GetType()
Object.ReferenceEquals(Object, Object)
Namespace: DotNext.Threading
Assembly: DotNext.Threading.dll
Syntax
public struct LockStamp : IEquatable<AsyncReaderWriterLock.LockStamp>

Properties

| Improve this Doc View Source

IsValid

Determines whether the version of internal lock state is not outdated.

Declaration
public bool IsValid { get; }
Property Value
Type Description
Boolean

Methods

| Improve this Doc View Source

Equals(AsyncReaderWriterLock.LockStamp)

Determines whether this stamp represents the same version of the lock state as the given stamp.

Declaration
public bool Equals(AsyncReaderWriterLock.LockStamp other)
Parameters
Type Name Description
AsyncReaderWriterLock.LockStamp other

The lock stamp to compare.

Returns
Type Description
Boolean

true of this stamp is equal to other; otherwise, false.

| Improve this Doc View Source

Equals(Object)

Determines whether this stamp represents the same version of the lock state as the given stamp.

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

The lock stamp to compare.

Returns
Type Description
Boolean

true of this stamp is equal to other; otherwise, false.

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

GetHashCode()

Computes hash code for this stamp.

Declaration
public override int GetHashCode()
Returns
Type Description
Int32

The hash code of this stamp.

Overrides
ValueType.GetHashCode()

Operators

| Improve this Doc View Source

Equality(AsyncReaderWriterLock.LockStamp, AsyncReaderWriterLock.LockStamp)

Determines whether the first stamp represents the same version of the lock state as the second stamp.

Declaration
public static bool operator ==(in AsyncReaderWriterLock.LockStamp first, in AsyncReaderWriterLock.LockStamp second)
Parameters
Type Name Description
AsyncReaderWriterLock.LockStamp first

The first lock stamp to compare.

AsyncReaderWriterLock.LockStamp second

The second lock stamp to compare.

Returns
Type Description
Boolean

true of first stamp is equal to second; otherwise, false.

| Improve this Doc View Source

Inequality(AsyncReaderWriterLock.LockStamp, AsyncReaderWriterLock.LockStamp)

Determines whether the first stamp represents the different version of the lock state as the second stamp.

Declaration
public static bool operator !=(in AsyncReaderWriterLock.LockStamp first, in AsyncReaderWriterLock.LockStamp second)
Parameters
Type Name Description
AsyncReaderWriterLock.LockStamp first

The first lock stamp to compare.

AsyncReaderWriterLock.LockStamp second

The second lock stamp to compare.

Returns
Type Description
Boolean

true of first stamp is not equal to second; otherwise, false.

Implements

System.IEquatable<T>

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