Show / Hide Table of Contents

    Enum MemoryType

    It specifies the memory type strategy of the internal enumerator implemented to iterate over the collection.

    Namespace: Lucene.Net.Support.C5
    Assembly: Lucene.Net.dll
    Syntax
    public enum MemoryType : int

    Fields

    Name Description
    Normal

    Normal is the usual operator type. A new instance of an enumerator is always returned for multithread safety purposes.

    Safe

    Safe returns the same enumerator instance and updates references or a new instance in case of multiple enumeration and multithread access

    Strict

    Strict always returns the same enumerator instance. An exception is raised if the collection is enumerated more than once or if the collection is accessed by multiple threads concurrently.

    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)