blob: bff0a50ff2448c993f15d51ccb4c3064ce0983d4 [file] [log] [blame]
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class CollectionBase&lt;T&gt;
| Apache Lucene.NET 4.8.0 Documentation </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class CollectionBase&lt;T&gt;
| Apache Lucene.NET 4.8.0 Documentation ">
<meta name="generator" content="docfx 2.47.0.0">
<link rel="shortcut icon" href="../../logo/favicon.ico">
<link rel="stylesheet" href="../../styles/docfx.vendor.css">
<link rel="stylesheet" href="../../styles/docfx.css">
<link rel="stylesheet" href="../../styles/main.css">
<meta property="docfx:navrel" content="../../toc.html">
<meta property="docfx:tocrel" content="../toc.html">
<meta property="docfx:rel" content="../../">
</head>
<body data-spy="scroll" data-target="#affix" data-offset="120">
<div id="wrapper">
<header>
<nav id="autocollapse" class="navbar ng-scope" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="../../index.html">
<img id="logo" class="svg" src="../../logo/lucene-net-color.png" alt="">
</a>
</div>
<div class="collapse navbar-collapse" id="navbar">
<form class="navbar-form navbar-right" role="search" id="search">
<div class="form-group">
<input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
</div>
</form>
</div>
</div>
</nav>
<div class="subnav navbar navbar-default">
<div class="container hide-when-search" id="breadcrumb">
<ul class="breadcrumb">
<li></li>
</ul>
</div>
</div>
</header>
<div class="container body-content">
<div id="search-results">
<div class="search-list"></div>
<div class="sr-items">
<p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
</div>
<ul id="pagination"></ul>
</div>
</div>
<div role="main" class="container body-content hide-when-search">
<div class="sidenav hide-when-search">
<a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
<div class="sidetoggle collapse" id="sidetoggle">
<div id="sidetoc"></div>
</div>
</div>
<div class="article row grid-right">
<div class="col-md-10">
<article class="content wrap" id="_content" data-uid="Lucene.Net.Support.C5.CollectionBase`1">
<h1 id="Lucene_Net_Support_C5_CollectionBase_1" data-uid="Lucene.Net.Support.C5.CollectionBase`1" class="text-break">Class CollectionBase&lt;T&gt;
</h1>
<div class="markdown level0 summary"><p>Base class (abstract) for ICollection implementations.</p>
</div>
<div class="markdown level0 conceptual"></div>
<div class="inheritance">
<h5>Inheritance</h5>
<div class="level0"><span class="xref">System.Object</span></div>
<div class="level1"><a class="xref" href="Lucene.Net.Support.C5.EnumerableBase-1.html">EnumerableBase</a>&lt;T&gt;</div>
<div class="level2"><a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html">CollectionValueBase</a>&lt;T&gt;</div>
<div class="level3"><span class="xref">CollectionBase&lt;T&gt;</span></div>
<div class="level4"><a class="xref" href="Lucene.Net.Support.C5.DirectedCollectionBase-1.html">DirectedCollectionBase&lt;T&gt;</a></div>
<div class="level4"><a class="xref" href="Lucene.Net.Support.C5.HashSet-1.html">HashSet&lt;T&gt;</a></div>
</div>
<div classs="implements">
<h5>Implements</h5>
<div><a class="xref" href="Lucene.Net.Support.C5.ICollectionValue-1.html">ICollectionValue</a>&lt;T&gt;</div>
<div><span class="xref">System.Collections.Generic.IEnumerable</span>&lt;T&gt;</div>
<div><span class="xref">System.Collections.IEnumerable</span></div>
<div><a class="xref" href="Lucene.Net.Support.C5.IShowable.html">IShowable</a></div>
<div><span class="xref">System.IFormattable</span></div>
</div>
<div class="inheritedMembers">
<h5>Inherited Members</h5>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_ListenableEvents">CollectionValueBase&lt;T&gt;.ListenableEvents</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_ActiveEvents">CollectionValueBase&lt;T&gt;.ActiveEvents</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_CollectionChanged">CollectionValueBase&lt;T&gt;.CollectionChanged</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_raiseCollectionChanged">CollectionValueBase&lt;T&gt;.raiseCollectionChanged()</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_CollectionCleared">CollectionValueBase&lt;T&gt;.CollectionCleared</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_raiseCollectionCleared_System_Boolean_System_Int32_">CollectionValueBase&lt;T&gt;.raiseCollectionCleared(Boolean, Int32)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_raiseCollectionCleared_System_Boolean_System_Int32_System_Nullable_System_Int32__">CollectionValueBase&lt;T&gt;.raiseCollectionCleared(Boolean, Int32, Nullable&lt;Int32&gt;)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_ItemsAdded">CollectionValueBase&lt;T&gt;.ItemsAdded</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_raiseItemsAdded__0_System_Int32_">CollectionValueBase&lt;T&gt;.raiseItemsAdded(T, Int32)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_ItemsRemoved">CollectionValueBase&lt;T&gt;.ItemsRemoved</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_raiseItemsRemoved__0_System_Int32_">CollectionValueBase&lt;T&gt;.raiseItemsRemoved(T, Int32)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_ItemInserted">CollectionValueBase&lt;T&gt;.ItemInserted</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_raiseItemInserted__0_System_Int32_">CollectionValueBase&lt;T&gt;.raiseItemInserted(T, Int32)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_ItemRemovedAt">CollectionValueBase&lt;T&gt;.ItemRemovedAt</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_raiseItemRemovedAt__0_System_Int32_">CollectionValueBase&lt;T&gt;.raiseItemRemovedAt(T, Int32)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_raiseForSetThis_System_Int32__0__0_">CollectionValueBase&lt;T&gt;.raiseForSetThis(Int32, T, T)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_raiseForInsert_System_Int32__0_">CollectionValueBase&lt;T&gt;.raiseForInsert(Int32, T)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_raiseForRemove__0_">CollectionValueBase&lt;T&gt;.raiseForRemove(T)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_raiseForRemove__0_System_Int32_">CollectionValueBase&lt;T&gt;.raiseForRemove(T, Int32)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_raiseForRemoveAt_System_Int32__0_">CollectionValueBase&lt;T&gt;.raiseForRemoveAt(Int32, T)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_raiseForUpdate__0__0_">CollectionValueBase&lt;T&gt;.raiseForUpdate(T, T)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_raiseForUpdate__0__0_System_Int32_">CollectionValueBase&lt;T&gt;.raiseForUpdate(T, T, Int32)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_raiseForAdd__0_">CollectionValueBase&lt;T&gt;.raiseForAdd(T)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_raiseForRemoveAll_Lucene_Net_Support_C5_ICollectionValue__0__">CollectionValueBase&lt;T&gt;.raiseForRemoveAll(ICollectionValue&lt;T&gt;)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_CopyTo__0___System_Int32_">CollectionValueBase&lt;T&gt;.CopyTo(T[], Int32)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_ToArray">CollectionValueBase&lt;T&gt;.ToArray()</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_Apply_System_Action__0__">CollectionValueBase&lt;T&gt;.Apply(Action&lt;T&gt;)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_Exists_System_Func__0_System_Boolean__">CollectionValueBase&lt;T&gt;.Exists(Func&lt;T, Boolean&gt;)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_Find_System_Func__0_System_Boolean___0__">CollectionValueBase&lt;T&gt;.Find(Func&lt;T, Boolean&gt;, T)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_All_System_Func__0_System_Boolean__">CollectionValueBase&lt;T&gt;.All(Func&lt;T, Boolean&gt;)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_Filter_System_Func__0_System_Boolean__">CollectionValueBase&lt;T&gt;.Filter(Func&lt;T, Boolean&gt;)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_Choose">CollectionValueBase&lt;T&gt;.Choose()</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_Show_System_Text_StringBuilder_System_Int32__System_IFormatProvider_">CollectionValueBase&lt;T&gt;.Show(StringBuilder, Int32, IFormatProvider)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_ToString_System_String_System_IFormatProvider_">CollectionValueBase&lt;T&gt;.ToString(String, IFormatProvider)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_ToString">CollectionValueBase&lt;T&gt;.ToString()</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.EnumerableBase-1.html#Lucene_Net_Support_C5_EnumerableBase_1_GetEnumerator">EnumerableBase&lt;T&gt;.GetEnumerator()</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.EnumerableBase-1.html#Lucene_Net_Support_C5_EnumerableBase_1_countItems_System_Collections_Generic_IEnumerable__0__">EnumerableBase&lt;T&gt;.countItems(IEnumerable&lt;T&gt;)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.EnumerableBase-1.html#Lucene_Net_Support_C5_EnumerableBase_1_System_Collections_IEnumerable_GetEnumerator">EnumerableBase&lt;T&gt;.IEnumerable.GetEnumerator()</a>
</div>
<div>
<span class="xref">System.Object.Equals(System.Object)</span>
</div>
<div>
<span class="xref">System.Object.Equals(System.Object, System.Object)</span>
</div>
<div>
<span class="xref">System.Object.GetHashCode()</span>
</div>
<div>
<span class="xref">System.Object.GetType()</span>
</div>
<div>
<span class="xref">System.Object.MemberwiseClone()</span>
</div>
<div>
<span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span>
</div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="Lucene.Net.Support.C5.html">Lucene.Net.Support.C5</a></h6>
<h6><strong>Assembly</strong>: Lucene.Net.dll</h6>
<h5 id="Lucene_Net_Support_C5_CollectionBase_1_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">[Serializable]
public abstract class CollectionBase&lt;T&gt; : CollectionValueBase&lt;T&gt;, ICollectionValue&lt;T&gt;, IEnumerable&lt;T&gt;, IEnumerable, IShowable, IFormattable</code></pre>
</div>
<h5 class="typeParameters">Type Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="parametername">T</span></td>
<td></td>
</tr>
</tbody>
</table>
<h3 id="constructors">Constructors
</h3>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_C5_CollectionBase_1__ctor_System_Collections_Generic_IEqualityComparer__0__Lucene_Net_Support_C5_MemoryType_.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.C5.CollectionBase%601.%23ctor(System.Collections.Generic.IEqualityComparer%7B%600%7D%2CLucene.Net.Support.C5.MemoryType)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/C5.Support.cs/#L2092">View Source</a>
</span>
<a id="Lucene_Net_Support_C5_CollectionBase_1__ctor_" data-uid="Lucene.Net.Support.C5.CollectionBase`1.#ctor*"></a>
<h4 id="Lucene_Net_Support_C5_CollectionBase_1__ctor_System_Collections_Generic_IEqualityComparer__0__Lucene_Net_Support_C5_MemoryType_" data-uid="Lucene.Net.Support.C5.CollectionBase`1.#ctor(System.Collections.Generic.IEqualityComparer{`0},Lucene.Net.Support.C5.MemoryType)">CollectionBase(IEqualityComparer&lt;T&gt;, MemoryType)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">protected CollectionBase(IEqualityComparer&lt;T&gt; itemequalityComparer, MemoryType memoryType)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Collections.Generic.IEqualityComparer</span>&lt;T&gt;</td>
<td><span class="parametername">itemequalityComparer</span></td>
<td></td>
</tr>
<tr>
<td><a class="xref" href="Lucene.Net.Support.C5.MemoryType.html">MemoryType</a></td>
<td><span class="parametername">memoryType</span></td>
<td><p>The type of memory for the enumerator used to iterate the collection</p>
</td>
</tr>
</tbody>
</table>
<h3 id="fields">Fields
</h3>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_C5_CollectionBase_1_isReadOnlyBase.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.C5.CollectionBase%601.isReadOnlyBase%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/C5.Support.cs/#L2066">View Source</a>
</span>
<h4 id="Lucene_Net_Support_C5_CollectionBase_1_isReadOnlyBase" data-uid="Lucene.Net.Support.C5.CollectionBase`1.isReadOnlyBase">isReadOnlyBase</h4>
<div class="markdown level1 summary"><p>The underlying field of the ReadOnly property</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">protected bool isReadOnlyBase</code></pre>
</div>
<h5 class="fieldValue">Field Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_C5_CollectionBase_1_itemequalityComparer.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.C5.CollectionBase%601.itemequalityComparer%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/C5.Support.cs/#L2081">View Source</a>
</span>
<h4 id="Lucene_Net_Support_C5_CollectionBase_1_itemequalityComparer" data-uid="Lucene.Net.Support.C5.CollectionBase`1.itemequalityComparer">itemequalityComparer</h4>
<div class="markdown level1 summary"><p>The item equalityComparer of the collection</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">protected readonly IEqualityComparer&lt;T&gt; itemequalityComparer</code></pre>
</div>
<h5 class="fieldValue">Field Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Collections.Generic.IEqualityComparer</span>&lt;T&gt;</td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_C5_CollectionBase_1_size.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.C5.CollectionBase%601.size%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/C5.Support.cs/#L2076">View Source</a>
</span>
<h4 id="Lucene_Net_Support_C5_CollectionBase_1_size" data-uid="Lucene.Net.Support.C5.CollectionBase`1.size">size</h4>
<div class="markdown level1 summary"><p>The number of items in the collection</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">protected int size</code></pre>
</div>
<h5 class="fieldValue">Field Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td></td>
</tr>
</tbody>
</table>
<h3 id="properties">Properties
</h3>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_C5_CollectionBase_1_Count.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.C5.CollectionBase%601.Count%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/C5.Support.cs/#L2317">View Source</a>
</span>
<a id="Lucene_Net_Support_C5_CollectionBase_1_Count_" data-uid="Lucene.Net.Support.C5.CollectionBase`1.Count*"></a>
<h4 id="Lucene_Net_Support_C5_CollectionBase_1_Count" data-uid="Lucene.Net.Support.C5.CollectionBase`1.Count">Count</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public override int Count { get; }</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>The size of this collection</p>
</td>
</tr>
</tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><span class="xref">Lucene.Net.Support.C5.CollectionValueBase&lt;T&gt;.Count</span></div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_C5_CollectionBase_1_CountSpeed.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.C5.CollectionBase%601.CountSpeed%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/C5.Support.cs/#L2326">View Source</a>
</span>
<a id="Lucene_Net_Support_C5_CollectionBase_1_CountSpeed_" data-uid="Lucene.Net.Support.C5.CollectionBase`1.CountSpeed*"></a>
<h4 id="Lucene_Net_Support_C5_CollectionBase_1_CountSpeed" data-uid="Lucene.Net.Support.C5.CollectionBase`1.CountSpeed">CountSpeed</h4>
<div class="markdown level1 summary"><p>The value is symbolic indicating the type of asymptotic complexity
in terms of the size of this collection (worst-case or amortized as
relevant).</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public override Speed CountSpeed { get; }</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="Lucene.Net.Support.C5.Speed.html">Speed</a></td>
<td><p>A characterization of the speed of the </p>
<pre><code>Count</code></pre> property in this collection.</td>
</tr>
</tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><span class="xref">Lucene.Net.Support.C5.CollectionValueBase&lt;T&gt;.CountSpeed</span></div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_C5_CollectionBase_1_EqualityComparer.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.C5.CollectionBase%601.EqualityComparer%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/C5.Support.cs/#L2337">View Source</a>
</span>
<a id="Lucene_Net_Support_C5_CollectionBase_1_EqualityComparer_" data-uid="Lucene.Net.Support.C5.CollectionBase`1.EqualityComparer*"></a>
<h4 id="Lucene_Net_Support_C5_CollectionBase_1_EqualityComparer" data-uid="Lucene.Net.Support.C5.CollectionBase`1.EqualityComparer">EqualityComparer</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public virtual IEqualityComparer&lt;T&gt; EqualityComparer { get; }</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Collections.Generic.IEqualityComparer</span>&lt;T&gt;</td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_C5_CollectionBase_1_IsEmpty.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.C5.CollectionBase%601.IsEmpty%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/C5.Support.cs/#L2343">View Source</a>
</span>
<a id="Lucene_Net_Support_C5_CollectionBase_1_IsEmpty_" data-uid="Lucene.Net.Support.C5.CollectionBase`1.IsEmpty*"></a>
<h4 id="Lucene_Net_Support_C5_CollectionBase_1_IsEmpty" data-uid="Lucene.Net.Support.C5.CollectionBase`1.IsEmpty">IsEmpty</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public override bool IsEmpty { get; }</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td><p>True if this collection is empty</p>
</td>
</tr>
</tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><span class="xref">Lucene.Net.Support.C5.CollectionValueBase&lt;T&gt;.IsEmpty</span></div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_C5_CollectionBase_1_IsReadOnly.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.C5.CollectionBase%601.IsReadOnly%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/C5.Support.cs/#L2308">View Source</a>
</span>
<a id="Lucene_Net_Support_C5_CollectionBase_1_IsReadOnly_" data-uid="Lucene.Net.Support.C5.CollectionBase`1.IsReadOnly*"></a>
<h4 id="Lucene_Net_Support_C5_CollectionBase_1_IsReadOnly" data-uid="Lucene.Net.Support.C5.CollectionBase`1.IsReadOnly">IsReadOnly</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public virtual bool IsReadOnly { get; }</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td><p>True if this collection is read only</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_C5_CollectionBase_1_stamp.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.C5.CollectionBase%601.stamp%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/C5.Support.cs/#L2071">View Source</a>
</span>
<a id="Lucene_Net_Support_C5_CollectionBase_1_stamp_" data-uid="Lucene.Net.Support.C5.CollectionBase`1.stamp*"></a>
<h4 id="Lucene_Net_Support_C5_CollectionBase_1_stamp" data-uid="Lucene.Net.Support.C5.CollectionBase`1.stamp">stamp</h4>
<div class="markdown level1 summary"><p>The current stamp value</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">protected int stamp { get; set; }</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td></td>
</tr>
</tbody>
</table>
<h3 id="methods">Methods
</h3>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_C5_CollectionBase_1_checkRange_System_Int32_System_Int32_.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.C5.CollectionBase%601.checkRange(System.Int32%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/C5.Support.cs/#L2110">View Source</a>
</span>
<a id="Lucene_Net_Support_C5_CollectionBase_1_checkRange_" data-uid="Lucene.Net.Support.C5.CollectionBase`1.checkRange*"></a>
<h4 id="Lucene_Net_Support_C5_CollectionBase_1_checkRange_System_Int32_System_Int32_" data-uid="Lucene.Net.Support.C5.CollectionBase`1.checkRange(System.Int32,System.Int32)">checkRange(Int32, Int32)</h4>
<div class="markdown level1 summary"><p>Utility method for range checking.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">protected void checkRange(int start, int count)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">start</span></td>
<td><p>start of range</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">count</span></td>
<td><p>size of range</p>
</td>
</tr>
</tbody>
</table>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Condition</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.ArgumentOutOfRangeException</span></td>
<td><p>if the start or count is negative or
if the range does not fit within collection size.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_C5_CollectionBase_1_ComputeHashCode_Lucene_Net_Support_C5_ICollectionValue__0__System_Collections_Generic_IEqualityComparer__0__.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.C5.CollectionBase%601.ComputeHashCode(Lucene.Net.Support.C5.ICollectionValue%7B%600%7D%2CSystem.Collections.Generic.IEqualityComparer%7B%600%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/C5.Support.cs/#L2123">View Source</a>
</span>
<a id="Lucene_Net_Support_C5_CollectionBase_1_ComputeHashCode_" data-uid="Lucene.Net.Support.C5.CollectionBase`1.ComputeHashCode*"></a>
<h4 id="Lucene_Net_Support_C5_CollectionBase_1_ComputeHashCode_Lucene_Net_Support_C5_ICollectionValue__0__System_Collections_Generic_IEqualityComparer__0__" data-uid="Lucene.Net.Support.C5.CollectionBase`1.ComputeHashCode(Lucene.Net.Support.C5.ICollectionValue{`0},System.Collections.Generic.IEqualityComparer{`0})">ComputeHashCode(ICollectionValue&lt;T&gt;, IEqualityComparer&lt;T&gt;)</h4>
<div class="markdown level1 summary"><p>Compute the unsequenced hash code of a collection</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static int ComputeHashCode(ICollectionValue&lt;T&gt; items, IEqualityComparer&lt;T&gt; itemequalityComparer)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="Lucene.Net.Support.C5.ICollectionValue-1.html">ICollectionValue</a>&lt;T&gt;</td>
<td><span class="parametername">items</span></td>
<td><p>The collection to compute hash code for</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Collections.Generic.IEqualityComparer</span>&lt;T&gt;</td>
<td><span class="parametername">itemequalityComparer</span></td>
<td><p>The item equalitySCG.Comparer</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>The hash code</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_C5_CollectionBase_1_GetUnsequencedHashCode.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.C5.CollectionBase%601.GetUnsequencedHashCode%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/C5.Support.cs/#L2252">View Source</a>
</span>
<a id="Lucene_Net_Support_C5_CollectionBase_1_GetUnsequencedHashCode_" data-uid="Lucene.Net.Support.C5.CollectionBase`1.GetUnsequencedHashCode*"></a>
<h4 id="Lucene_Net_Support_C5_CollectionBase_1_GetUnsequencedHashCode" data-uid="Lucene.Net.Support.C5.CollectionBase`1.GetUnsequencedHashCode">GetUnsequencedHashCode()</h4>
<div class="markdown level1 summary"><p>Get the unsequenced collection hash code of this collection: from the cached
value if present and up to date, else (re)compute.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public virtual int GetUnsequencedHashCode()</code></pre>
</div>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>The hash code</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_C5_CollectionBase_1_modifycheck_System_Int32_.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.C5.CollectionBase%601.modifycheck(System.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/C5.Support.cs/#L2281">View Source</a>
</span>
<a id="Lucene_Net_Support_C5_CollectionBase_1_modifycheck_" data-uid="Lucene.Net.Support.C5.CollectionBase`1.modifycheck*"></a>
<h4 id="Lucene_Net_Support_C5_CollectionBase_1_modifycheck_System_Int32_" data-uid="Lucene.Net.Support.C5.CollectionBase`1.modifycheck(System.Int32)">modifycheck(Int32)</h4>
<div class="markdown level1 summary"><p>Check if the collection has been modified since a specified time, expressed as a stamp value.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">protected virtual void modifycheck(int thestamp)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">thestamp</span></td>
<td><p>The stamp identifying the target time</p>
</td>
</tr>
</tbody>
</table>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Condition</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="Lucene.Net.Support.C5.CollectionModifiedException.html">CollectionModifiedException</a></td>
<td><p>if this collection has been updated
since a target time</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_C5_CollectionBase_1_StaticEquals_Lucene_Net_Support_C5_ICollection__0__Lucene_Net_Support_C5_ICollection__0__System_Collections_Generic_IEqualityComparer__0__.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.C5.CollectionBase%601.StaticEquals(Lucene.Net.Support.C5.ICollection%7B%600%7D%2CLucene.Net.Support.C5.ICollection%7B%600%7D%2CSystem.Collections.Generic.IEqualityComparer%7B%600%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/C5.Support.cs/#L2170">View Source</a>
</span>
<a id="Lucene_Net_Support_C5_CollectionBase_1_StaticEquals_" data-uid="Lucene.Net.Support.C5.CollectionBase`1.StaticEquals*"></a>
<h4 id="Lucene_Net_Support_C5_CollectionBase_1_StaticEquals_Lucene_Net_Support_C5_ICollection__0__Lucene_Net_Support_C5_ICollection__0__System_Collections_Generic_IEqualityComparer__0__" data-uid="Lucene.Net.Support.C5.CollectionBase`1.StaticEquals(Lucene.Net.Support.C5.ICollection{`0},Lucene.Net.Support.C5.ICollection{`0},System.Collections.Generic.IEqualityComparer{`0})">StaticEquals(ICollection&lt;T&gt;, ICollection&lt;T&gt;, IEqualityComparer&lt;T&gt;)</h4>
<div class="markdown level1 summary"><p>Examine if collection1 and collection2 are equal as unsequenced collections
using the specified item equalityComparer (assumed compatible with the two collections).</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool StaticEquals(ICollection&lt;T&gt; collection1, ICollection&lt;T&gt; collection2, IEqualityComparer&lt;T&gt; itemequalityComparer)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="Lucene.Net.Support.C5.ICollection-1.html">ICollection</a>&lt;T&gt;</td>
<td><span class="parametername">collection1</span></td>
<td><p>The first collection</p>
</td>
</tr>
<tr>
<td><a class="xref" href="Lucene.Net.Support.C5.ICollection-1.html">ICollection</a>&lt;T&gt;</td>
<td><span class="parametername">collection2</span></td>
<td><p>The second collection</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Collections.Generic.IEqualityComparer</span>&lt;T&gt;</td>
<td><span class="parametername">itemequalityComparer</span></td>
<td><p>The item equalityComparer to use for comparison</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td><p>True if equal</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_C5_CollectionBase_1_UnsequencedEquals_Lucene_Net_Support_C5_ICollection__0__.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.C5.CollectionBase%601.UnsequencedEquals(Lucene.Net.Support.C5.ICollection%7B%600%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/C5.Support.cs/#L2269">View Source</a>
</span>
<a id="Lucene_Net_Support_C5_CollectionBase_1_UnsequencedEquals_" data-uid="Lucene.Net.Support.C5.CollectionBase`1.UnsequencedEquals*"></a>
<h4 id="Lucene_Net_Support_C5_CollectionBase_1_UnsequencedEquals_Lucene_Net_Support_C5_ICollection__0__" data-uid="Lucene.Net.Support.C5.CollectionBase`1.UnsequencedEquals(Lucene.Net.Support.C5.ICollection{`0})">UnsequencedEquals(ICollection&lt;T&gt;)</h4>
<div class="markdown level1 summary"><p>Check if the contents of otherCollection is equal to the contents of this
in the unsequenced sense. Uses the item equality comparer of this collection</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public virtual bool UnsequencedEquals(ICollection&lt;T&gt; otherCollection)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="Lucene.Net.Support.C5.ICollection-1.html">ICollection</a>&lt;T&gt;</td>
<td><span class="parametername">otherCollection</span></td>
<td><p>The collection to compare to.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td><p>True if equal</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_C5_CollectionBase_1_updatecheck.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.C5.CollectionBase%601.updatecheck%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/C5.Support.cs/#L2292">View Source</a>
</span>
<a id="Lucene_Net_Support_C5_CollectionBase_1_updatecheck_" data-uid="Lucene.Net.Support.C5.CollectionBase`1.updatecheck*"></a>
<h4 id="Lucene_Net_Support_C5_CollectionBase_1_updatecheck" data-uid="Lucene.Net.Support.C5.CollectionBase`1.updatecheck">updatecheck()</h4>
<div class="markdown level1 summary"><p>Check if it is valid to perform update operations, and if so increment stamp.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">protected virtual void updatecheck()</code></pre>
</div>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Condition</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="Lucene.Net.Support.C5.ReadOnlyCollectionException.html">ReadOnlyCollectionException</a></td>
<td><p>If collection is read-only</p>
</td>
</tr>
</tbody>
</table>
<h3 id="implements">Implements</h3>
<div>
<a class="xref" href="Lucene.Net.Support.C5.ICollectionValue-1.html">ICollectionValue&lt;T&gt;</a>
</div>
<div>
<span class="xref">System.Collections.Generic.IEnumerable&lt;T&gt;</span>
</div>
<div>
<span class="xref">System.Collections.IEnumerable</span>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.IShowable.html">IShowable</a>
</div>
<div>
<span class="xref">System.IFormattable</span>
</div>
<h3 id="extensionmethods">Extension Methods</h3>
<div>
<a class="xref" href="Lucene.Net.Support.EnumerableExtensions.html#Lucene_Net_Support_EnumerableExtensions_InPairs__2_System_Collections_Generic_IEnumerable___0__System_Func___0___0___1__">EnumerableExtensions.InPairs&lt;T, TOut&gt;(IEnumerable&lt;T&gt;, Func&lt;T, T, TOut&gt;)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.EnumerableExtensions.html#Lucene_Net_Support_EnumerableExtensions_TakeAllButLast__1_System_Collections_Generic_IEnumerable___0__">EnumerableExtensions.TakeAllButLast&lt;T&gt;(IEnumerable&lt;T&gt;)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.EnumerableExtensions.html#Lucene_Net_Support_EnumerableExtensions_TakeAllButLast__1_System_Collections_Generic_IEnumerable___0__System_Int32_">EnumerableExtensions.TakeAllButLast&lt;T&gt;(IEnumerable&lt;T&gt;, Int32)</a>
</div>
</article>
</div>
<div class="hidden-sm col-md-2" role="complementary">
<div class="sideaffix">
<div class="contribution">
<ul class="nav">
<li>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_C5_CollectionBase_1.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.C5.CollectionBase%601%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A" class="contribution-link">Improve this Doc</a>
</li>
<li>
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/C5.Support.cs/#L2057" class="contribution-link">View Source</a>
</li>
</ul>
</div>
<nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
<!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
</nav>
</div>
</div>
</div>
</div>
<footer>
<div class="grad-bottom"></div>
<div class="footer">
<div class="container">
<span class="pull-right">
<a href="#top">Back to top</a>
</span>
Copyright © 2020 Licensed to the Apache Software Foundation (ASF)
</div>
</div>
</footer>
</div>
<script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
<script type="text/javascript" src="../../styles/docfx.js"></script>
<script type="text/javascript" src="../../styles/main.js"></script>
</body>
</html>