Search Results for

    Show / Hide Table of Contents

    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 instances are empty, and equality is done by value, always returns true, when the provided object is of type , and always returns the same value (0).

    Examples
    record ARecord()
    {
        private readonly LockValueObject _lockObject = new LockValueObject();
    
        private void AMethod()
        {
            ...
            lock (_lockObject)
            {
                ...
            }
            ...
        }
    }

    Implements

    System.IEquatable<T>

    Extension Methods

    SuffixStructureNodeExtensions.GetAllSuffixesFor<TEdge, TNode>(TNode, TextWithTerminator)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX