Class LockValueObject
An empty object with value equality (always true), to be used as lock object in records and other value structures.
Inheritance
System.Object
LockValueObject
Implements
System.IEquatable<LockValueObject>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: MoreStructures.Utilities
Assembly: MoreStructures.dll
Syntax
public class LockValueObject : IEquatable<LockValueObject>
Remarks
Since all
Examples
record ARecord()
{
private readonly LockValueObject _lockObject = new LockValueObject();
private void AMethod()
{
...
lock (_lockObject)
{
...
}
...
}
}
Implements
System.IEquatable<T>