blob: c5bfbea5280db6f018150b62c9cde88de1e0a5a6 [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 Collections
| Apache Lucene.NET 4.8.0 Documentation </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class Collections
| 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.Collections">
<h1 id="Lucene_Net_Support_Collections" data-uid="Lucene.Net.Support.Collections" class="text-break">Class Collections
</h1>
<div class="markdown level0 summary"></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"><span class="xref">Collections</span></div>
</div>
<div class="inheritedMembers">
<h5>Inherited Members</h5>
<div>
<span class="xref">System.Object.Equals(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>
<span class="xref">System.Object.ToString()</span>
</div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="../Lucene.Net.Benchmarks/Lucene.Net.Support.html">Lucene.Net.Support</a></h6>
<h6><strong>Assembly</strong>: Lucene.Net.dll</h6>
<h5 id="Lucene_Net_Support_Collections_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class Collections</code></pre>
</div>
<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_Collections_EmptyList__1.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.Collections.EmptyList%60%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">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/Collections.cs/#L33">View Source</a>
</span>
<a id="Lucene_Net_Support_Collections_EmptyList_" data-uid="Lucene.Net.Support.Collections.EmptyList*"></a>
<h4 id="Lucene_Net_Support_Collections_EmptyList__1" data-uid="Lucene.Net.Support.Collections.EmptyList``1">EmptyList&lt;T&gt;()</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 static IList&lt;T&gt; EmptyList&lt;T&gt;()</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.Collections.Generic.IList</span>&lt;T&gt;</td>
<td></td>
</tr>
</tbody>
</table>
<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>
<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_Collections_EmptyMap__2.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.Collections.EmptyMap%60%602%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/Collections.cs/#L38">View Source</a>
</span>
<a id="Lucene_Net_Support_Collections_EmptyMap_" data-uid="Lucene.Net.Support.Collections.EmptyMap*"></a>
<h4 id="Lucene_Net_Support_Collections_EmptyMap__2" data-uid="Lucene.Net.Support.Collections.EmptyMap``2">EmptyMap&lt;TKey, TValue&gt;()</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 static IDictionary&lt;TKey, TValue&gt; EmptyMap&lt;TKey, TValue&gt;()</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.Collections.Generic.IDictionary</span>&lt;TKey, TValue&gt;</td>
<td></td>
</tr>
</tbody>
</table>
<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">TKey</span></td>
<td></td>
</tr>
<tr>
<td><span class="parametername">TValue</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_Collections_Equals_System_Object_System_Object_.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.Collections.Equals(System.Object%2CSystem.Object)%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/Collections.cs/#L424">View Source</a>
</span>
<a id="Lucene_Net_Support_Collections_Equals_" data-uid="Lucene.Net.Support.Collections.Equals*"></a>
<h4 id="Lucene_Net_Support_Collections_Equals_System_Object_System_Object_" data-uid="Lucene.Net.Support.Collections.Equals(System.Object,System.Object)">Equals(Object, Object)</h4>
<div class="markdown level1 summary"><p>A helper method to recursively determine equality based on
the values of the collection and all nested collections.
<p>
Note this operation currently only supports <span class="xref">System.Collections.Generic.IList&lt;T&gt;</span>, <span class="xref">System.Collections.Generic.ISet&lt;T&gt;</span>,
and <span class="xref">System.Collections.Generic.IDictionary&lt;TKey, TValue&gt;</span>.</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 Equals(object objA, object objB)</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.Object</span></td>
<td><span class="parametername">objA</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.Object</span></td>
<td><span class="parametername">objB</span></td>
<td></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></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_Collections_Equals__1_System_Collections_Generic_IList___0__System_Collections_Generic_IList___0__.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.Collections.Equals%60%601(System.Collections.Generic.IList%7B%60%600%7D%2CSystem.Collections.Generic.IList%7B%60%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/Collections.cs/#L255">View Source</a>
</span>
<a id="Lucene_Net_Support_Collections_Equals_" data-uid="Lucene.Net.Support.Collections.Equals*"></a>
<h4 id="Lucene_Net_Support_Collections_Equals__1_System_Collections_Generic_IList___0__System_Collections_Generic_IList___0__" data-uid="Lucene.Net.Support.Collections.Equals``1(System.Collections.Generic.IList{``0},System.Collections.Generic.IList{``0})">Equals&lt;T&gt;(IList&lt;T&gt;, IList&lt;T&gt;)</h4>
<div class="markdown level1 summary"><p>The same implementation of Equals from Java&apos;s AbstractList
(the default implementation for all lists)
<p>
This algorithm depends on the order of the items in the list.
It is recursive and will determine equality based on the values of
all nested collections.
<p>
Note this operation currently only supports <span class="xref">System.Collections.Generic.IList&lt;T&gt;</span>, <span class="xref">System.Collections.Generic.ISet&lt;T&gt;</span>,
and <span class="xref">System.Collections.Generic.IDictionary&lt;TKey, TValue&gt;</span>.</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 Equals&lt;T&gt;(IList&lt;T&gt; listA, IList&lt;T&gt; listB)</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.IList</span>&lt;T&gt;</td>
<td><span class="parametername">listA</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.Collections.Generic.IList</span>&lt;T&gt;</td>
<td><span class="parametername">listB</span></td>
<td></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></td>
</tr>
</tbody>
</table>
<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>
<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_Collections_Equals__1_System_Collections_Generic_ISet___0__System_Collections_Generic_ISet___0__.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.Collections.Equals%60%601(System.Collections.Generic.ISet%7B%60%600%7D%2CSystem.Collections.Generic.ISet%7B%60%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/Collections.cs/#L311">View Source</a>
</span>
<a id="Lucene_Net_Support_Collections_Equals_" data-uid="Lucene.Net.Support.Collections.Equals*"></a>
<h4 id="Lucene_Net_Support_Collections_Equals__1_System_Collections_Generic_ISet___0__System_Collections_Generic_ISet___0__" data-uid="Lucene.Net.Support.Collections.Equals``1(System.Collections.Generic.ISet{``0},System.Collections.Generic.ISet{``0})">Equals&lt;T&gt;(ISet&lt;T&gt;, ISet&lt;T&gt;)</h4>
<div class="markdown level1 summary"><p>The same implementation of Equals from Java&apos;s AbstractSet
(the default implementation for all sets)
<p>
This algoritm does not depend on the order of the items in the set.
It is recursive and will determine equality based on the values of
all nested collections.
<p>
Note this operation currently only supports <span class="xref">System.Collections.Generic.IList&lt;T&gt;</span>, <span class="xref">System.Collections.Generic.ISet&lt;T&gt;</span>,
and <span class="xref">System.Collections.Generic.IDictionary&lt;TKey, TValue&gt;</span>.</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 Equals&lt;T&gt;(ISet&lt;T&gt; setA, ISet&lt;T&gt; setB)</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.ISet</span>&lt;T&gt;</td>
<td><span class="parametername">setA</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.Collections.Generic.ISet</span>&lt;T&gt;</td>
<td><span class="parametername">setB</span></td>
<td></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></td>
</tr>
</tbody>
</table>
<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>
<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_Collections_Equals__2_System_Collections_Generic_IDictionary___0___1__System_Collections_Generic_IDictionary___0___1__.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.Collections.Equals%60%602(System.Collections.Generic.IDictionary%7B%60%600%2C%60%601%7D%2CSystem.Collections.Generic.IDictionary%7B%60%600%2C%60%601%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/Collections.cs/#L366">View Source</a>
</span>
<a id="Lucene_Net_Support_Collections_Equals_" data-uid="Lucene.Net.Support.Collections.Equals*"></a>
<h4 id="Lucene_Net_Support_Collections_Equals__2_System_Collections_Generic_IDictionary___0___1__System_Collections_Generic_IDictionary___0___1__" data-uid="Lucene.Net.Support.Collections.Equals``2(System.Collections.Generic.IDictionary{``0,``1},System.Collections.Generic.IDictionary{``0,``1})">Equals&lt;TKey, TValue&gt;(IDictionary&lt;TKey, TValue&gt;, IDictionary&lt;TKey, TValue&gt;)</h4>
<div class="markdown level1 summary"><p>This is the same implemenation of Equals from Java&apos;s AbstractMap
(the default implementation of all dictionaries)
<p>
This algoritm does not depend on the order of the items in the dictionary.
It is recursive and will determine equality based on the values of
all nested collections.
<p>
Note this operation currently only supports <span class="xref">System.Collections.Generic.IList&lt;T&gt;</span>, <span class="xref">System.Collections.Generic.ISet&lt;T&gt;</span>,
and <span class="xref">System.Collections.Generic.IDictionary&lt;TKey, TValue&gt;</span>.</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 Equals&lt;TKey, TValue&gt;(IDictionary&lt;TKey, TValue&gt; dictionaryA, IDictionary&lt;TKey, TValue&gt; dictionaryB)</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.IDictionary</span>&lt;TKey, TValue&gt;</td>
<td><span class="parametername">dictionaryA</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.Collections.Generic.IDictionary</span>&lt;TKey, TValue&gt;</td>
<td><span class="parametername">dictionaryB</span></td>
<td></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></td>
</tr>
</tbody>
</table>
<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">TKey</span></td>
<td></td>
</tr>
<tr>
<td><span class="parametername">TValue</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_Collections_GetHashCode_System_Object_.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.Collections.GetHashCode(System.Object)%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/Collections.cs/#L224">View Source</a>
</span>
<a id="Lucene_Net_Support_Collections_GetHashCode_" data-uid="Lucene.Net.Support.Collections.GetHashCode*"></a>
<h4 id="Lucene_Net_Support_Collections_GetHashCode_System_Object_" data-uid="Lucene.Net.Support.Collections.GetHashCode(System.Object)">GetHashCode(Object)</h4>
<div class="markdown level1 summary"><p>This method generally assists with the recursive GetHashCode() that
builds a hash code based on all of the values in a collection
including any nested collections (lists, sets, arrays, and dictionaries).
<p>
Note this currently only supports <span class="xref">System.Collections.Generic.IList&lt;T&gt;</span>, <span class="xref">System.Collections.Generic.ISet&lt;T&gt;</span>,
and <span class="xref">System.Collections.Generic.IDictionary&lt;TKey, TValue&gt;</span>.</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 GetHashCode(object obj)</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.Object</span></td>
<td><span class="parametername">obj</span></td>
<td><p>the object to build the hash code for</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>a value that represents the unique state of all of the values and
nested collection values in the object, provided the main object itself is
a collection, otherwise calls <span class="xref">System.Object.GetHashCode()</span> on the
object that is passed.</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_Collections_GetHashCode__1_System_Collections_Generic_IList___0__.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.Collections.GetHashCode%60%601(System.Collections.Generic.IList%7B%60%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/Collections.cs/#L135">View Source</a>
</span>
<a id="Lucene_Net_Support_Collections_GetHashCode_" data-uid="Lucene.Net.Support.Collections.GetHashCode*"></a>
<h4 id="Lucene_Net_Support_Collections_GetHashCode__1_System_Collections_Generic_IList___0__" data-uid="Lucene.Net.Support.Collections.GetHashCode``1(System.Collections.Generic.IList{``0})">GetHashCode&lt;T&gt;(IList&lt;T&gt;)</h4>
<div class="markdown level1 summary"><p>The same implementation of GetHashCode from Java&apos;s AbstractList
(the default implementation for all lists).
<p>
This algorithm depends on the order of the items in the list.
It is recursive and will build the hash code based on the values of
all nested collections.
<p>
Note this operation currently only supports <span class="xref">System.Collections.Generic.IList&lt;T&gt;</span>, <span class="xref">System.Collections.Generic.ISet&lt;T&gt;</span>,
and <span class="xref">System.Collections.Generic.IDictionary&lt;TKey, TValue&gt;</span>.</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 GetHashCode&lt;T&gt;(IList&lt;T&gt; list)</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.IList</span>&lt;T&gt;</td>
<td><span class="parametername">list</span></td>
<td></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></td>
</tr>
</tbody>
</table>
<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>
<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_Collections_GetHashCode__1_System_Collections_Generic_ISet___0__.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.Collections.GetHashCode%60%601(System.Collections.Generic.ISet%7B%60%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/Collections.cs/#L159">View Source</a>
</span>
<a id="Lucene_Net_Support_Collections_GetHashCode_" data-uid="Lucene.Net.Support.Collections.GetHashCode*"></a>
<h4 id="Lucene_Net_Support_Collections_GetHashCode__1_System_Collections_Generic_ISet___0__" data-uid="Lucene.Net.Support.Collections.GetHashCode``1(System.Collections.Generic.ISet{``0})">GetHashCode&lt;T&gt;(ISet&lt;T&gt;)</h4>
<div class="markdown level1 summary"><p>The same implementation of GetHashCode from Java&apos;s AbstractSet
(the default implementation for all sets)
<p>
This algorithm does not depend on the order of the items in the set.
It is recursive and will build the hash code based on the values of
all nested collections.
<p>
Note this operation currently only supports <span class="xref">System.Collections.Generic.IList&lt;T&gt;</span>, <span class="xref">System.Collections.Generic.ISet&lt;T&gt;</span>,
and <span class="xref">System.Collections.Generic.IDictionary&lt;TKey, TValue&gt;</span>.</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 GetHashCode&lt;T&gt;(ISet&lt;T&gt; set)</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.ISet</span>&lt;T&gt;</td>
<td><span class="parametername">set</span></td>
<td></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></td>
</tr>
</tbody>
</table>
<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>
<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_Collections_GetHashCode__2_System_Collections_Generic_IDictionary___0___1__.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.Collections.GetHashCode%60%602(System.Collections.Generic.IDictionary%7B%60%600%2C%60%601%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/Collections.cs/#L192">View Source</a>
</span>
<a id="Lucene_Net_Support_Collections_GetHashCode_" data-uid="Lucene.Net.Support.Collections.GetHashCode*"></a>
<h4 id="Lucene_Net_Support_Collections_GetHashCode__2_System_Collections_Generic_IDictionary___0___1__" data-uid="Lucene.Net.Support.Collections.GetHashCode``2(System.Collections.Generic.IDictionary{``0,``1})">GetHashCode&lt;TKey, TValue&gt;(IDictionary&lt;TKey, TValue&gt;)</h4>
<div class="markdown level1 summary"><p>The same implementation of GetHashCode from Java&apos;s AbstractMap
(the default implementation for all dictionaries)
<p>
This algoritm does not depend on the order of the items in the dictionary.
It is recursive and will build the hash code based on the values of
all nested collections.
<p>
Note this operation currently only supports <span class="xref">System.Collections.Generic.IList&lt;T&gt;</span>, <span class="xref">System.Collections.Generic.ISet&lt;T&gt;</span>,
and <span class="xref">System.Collections.Generic.IDictionary&lt;TKey, TValue&gt;</span>.</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 GetHashCode&lt;TKey, TValue&gt;(IDictionary&lt;TKey, TValue&gt; dictionary)</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.IDictionary</span>&lt;TKey, TValue&gt;</td>
<td><span class="parametername">dictionary</span></td>
<td></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></td>
</tr>
</tbody>
</table>
<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">TKey</span></td>
<td></td>
</tr>
<tr>
<td><span class="parametername">TValue</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_Collections_NewSetFromMap__2_System_Collections_Generic_IDictionary___0_System_Nullable_System_Boolean___.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.Collections.NewSetFromMap%60%602(System.Collections.Generic.IDictionary%7B%60%600%2CSystem.Nullable%7BSystem.Boolean%7D%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/Collections.cs/#L43">View Source</a>
</span>
<a id="Lucene_Net_Support_Collections_NewSetFromMap_" data-uid="Lucene.Net.Support.Collections.NewSetFromMap*"></a>
<h4 id="Lucene_Net_Support_Collections_NewSetFromMap__2_System_Collections_Generic_IDictionary___0_System_Nullable_System_Boolean___" data-uid="Lucene.Net.Support.Collections.NewSetFromMap``2(System.Collections.Generic.IDictionary{``0,System.Nullable{System.Boolean}})">NewSetFromMap&lt;T, S&gt;(IDictionary&lt;T, Nullable&lt;Boolean&gt;&gt;)</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 static ISet&lt;T&gt; NewSetFromMap&lt;T, S&gt;(IDictionary&lt;T, bool?&gt; map)</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.IDictionary</span>&lt;T, <span class="xref">System.Nullable</span>&lt;<span class="xref">System.Boolean</span>&gt;&gt;</td>
<td><span class="parametername">map</span></td>
<td></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.Collections.Generic.ISet</span>&lt;T&gt;</td>
<td></td>
</tr>
</tbody>
</table>
<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>
<tr>
<td><span class="parametername">S</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_Collections_Reverse__1_System_Collections_Generic_IList___0__.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.Collections.Reverse%60%601(System.Collections.Generic.IList%7B%60%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/Collections.cs/#L48">View Source</a>
</span>
<a id="Lucene_Net_Support_Collections_Reverse_" data-uid="Lucene.Net.Support.Collections.Reverse*"></a>
<h4 id="Lucene_Net_Support_Collections_Reverse__1_System_Collections_Generic_IList___0__" data-uid="Lucene.Net.Support.Collections.Reverse``1(System.Collections.Generic.IList{``0})">Reverse&lt;T&gt;(IList&lt;T&gt;)</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 static void Reverse&lt;T&gt;(IList&lt;T&gt; list)</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.IList</span>&lt;T&gt;</td>
<td><span class="parametername">list</span></td>
<td></td>
</tr>
</tbody>
</table>
<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>
<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_Collections_ReverseOrder__1.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.Collections.ReverseOrder%60%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">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/Collections.cs/#L57">View Source</a>
</span>
<a id="Lucene_Net_Support_Collections_ReverseOrder_" data-uid="Lucene.Net.Support.Collections.ReverseOrder*"></a>
<h4 id="Lucene_Net_Support_Collections_ReverseOrder__1" data-uid="Lucene.Net.Support.Collections.ReverseOrder``1">ReverseOrder&lt;T&gt;()</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 static IComparer&lt;T&gt; ReverseOrder&lt;T&gt;()</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.Collections.Generic.IComparer</span>&lt;T&gt;</td>
<td></td>
</tr>
</tbody>
</table>
<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>
<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_Collections_ReverseOrder__1_System_Collections_Generic_IComparer___0__.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.Collections.ReverseOrder%60%601(System.Collections.Generic.IComparer%7B%60%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/Collections.cs/#L62">View Source</a>
</span>
<a id="Lucene_Net_Support_Collections_ReverseOrder_" data-uid="Lucene.Net.Support.Collections.ReverseOrder*"></a>
<h4 id="Lucene_Net_Support_Collections_ReverseOrder__1_System_Collections_Generic_IComparer___0__" data-uid="Lucene.Net.Support.Collections.ReverseOrder``1(System.Collections.Generic.IComparer{``0})">ReverseOrder&lt;T&gt;(IComparer&lt;T&gt;)</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 static IComparer&lt;T&gt; ReverseOrder&lt;T&gt;(IComparer&lt;T&gt; cmp)</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.IComparer</span>&lt;T&gt;</td>
<td><span class="parametername">cmp</span></td>
<td></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.Collections.Generic.IComparer</span>&lt;T&gt;</td>
<td></td>
</tr>
</tbody>
</table>
<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>
<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_Collections_Shuffle__1_System_Collections_Generic_IList___0__.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.Collections.Shuffle%60%601(System.Collections.Generic.IList%7B%60%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/Collections.cs/#L73">View Source</a>
</span>
<a id="Lucene_Net_Support_Collections_Shuffle_" data-uid="Lucene.Net.Support.Collections.Shuffle*"></a>
<h4 id="Lucene_Net_Support_Collections_Shuffle__1_System_Collections_Generic_IList___0__" data-uid="Lucene.Net.Support.Collections.Shuffle``1(System.Collections.Generic.IList{``0})">Shuffle&lt;T&gt;(IList&lt;T&gt;)</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 static void Shuffle&lt;T&gt;(IList&lt;T&gt; list)</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.IList</span>&lt;T&gt;</td>
<td><span class="parametername">list</span></td>
<td></td>
</tr>
</tbody>
</table>
<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>
<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_Collections_Shuffle__1_System_Collections_Generic_IList___0__System_Random_.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.Collections.Shuffle%60%601(System.Collections.Generic.IList%7B%60%600%7D%2CSystem.Random)%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/Collections.cs/#L80">View Source</a>
</span>
<a id="Lucene_Net_Support_Collections_Shuffle_" data-uid="Lucene.Net.Support.Collections.Shuffle*"></a>
<h4 id="Lucene_Net_Support_Collections_Shuffle__1_System_Collections_Generic_IList___0__System_Random_" data-uid="Lucene.Net.Support.Collections.Shuffle``1(System.Collections.Generic.IList{``0},System.Random)">Shuffle&lt;T&gt;(IList&lt;T&gt;, Random)</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 static void Shuffle&lt;T&gt;(IList&lt;T&gt; list, Random random)</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.IList</span>&lt;T&gt;</td>
<td><span class="parametername">list</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.Random</span></td>
<td><span class="parametername">random</span></td>
<td></td>
</tr>
</tbody>
</table>
<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>
<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_Collections_Singleton__1___0_.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.Collections.Singleton%60%601(%60%600)%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/Collections.cs/#L91">View Source</a>
</span>
<a id="Lucene_Net_Support_Collections_Singleton_" data-uid="Lucene.Net.Support.Collections.Singleton*"></a>
<h4 id="Lucene_Net_Support_Collections_Singleton__1___0_" data-uid="Lucene.Net.Support.Collections.Singleton``1(``0)">Singleton&lt;T&gt;(T)</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 static ISet&lt;T&gt; Singleton&lt;T&gt;(T o)</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">T</span></td>
<td><span class="parametername">o</span></td>
<td></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.Collections.Generic.ISet</span>&lt;T&gt;</td>
<td></td>
</tr>
</tbody>
</table>
<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>
<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_Collections_SingletonMap__2___0___1_.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.Collections.SingletonMap%60%602(%60%600%2C%60%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">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/Collections.cs/#L96">View Source</a>
</span>
<a id="Lucene_Net_Support_Collections_SingletonMap_" data-uid="Lucene.Net.Support.Collections.SingletonMap*"></a>
<h4 id="Lucene_Net_Support_Collections_SingletonMap__2___0___1_" data-uid="Lucene.Net.Support.Collections.SingletonMap``2(``0,``1)">SingletonMap&lt;TKey, TValue&gt;(TKey, TValue)</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 static IDictionary&lt;TKey, TValue&gt; SingletonMap&lt;TKey, TValue&gt;(TKey key, TValue value)</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">TKey</span></td>
<td><span class="parametername">key</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">TValue</span></td>
<td><span class="parametername">value</span></td>
<td></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.Collections.Generic.IDictionary</span>&lt;TKey, TValue&gt;</td>
<td></td>
</tr>
</tbody>
</table>
<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">TKey</span></td>
<td></td>
</tr>
<tr>
<td><span class="parametername">TValue</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_Collections_Swap__1_System_Collections_Generic_IList___0__System_Int32_System_Int32_.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.Collections.Swap%60%601(System.Collections.Generic.IList%7B%60%600%7D%2CSystem.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/Collections.cs/#L101">View Source</a>
</span>
<a id="Lucene_Net_Support_Collections_Swap_" data-uid="Lucene.Net.Support.Collections.Swap*"></a>
<h4 id="Lucene_Net_Support_Collections_Swap__1_System_Collections_Generic_IList___0__System_Int32_System_Int32_" data-uid="Lucene.Net.Support.Collections.Swap``1(System.Collections.Generic.IList{``0},System.Int32,System.Int32)">Swap&lt;T&gt;(IList&lt;T&gt;, Int32, Int32)</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 static void Swap&lt;T&gt;(IList&lt;T&gt; list, int index1, int index2)</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.IList</span>&lt;T&gt;</td>
<td><span class="parametername">list</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">index1</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">index2</span></td>
<td></td>
</tr>
</tbody>
</table>
<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>
<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_Collections_ToString_System_Object_.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.Collections.ToString(System.Object)%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/Collections.cs/#L587">View Source</a>
</span>
<a id="Lucene_Net_Support_Collections_ToString_" data-uid="Lucene.Net.Support.Collections.ToString*"></a>
<h4 id="Lucene_Net_Support_Collections_ToString_System_Object_" data-uid="Lucene.Net.Support.Collections.ToString(System.Object)">ToString(Object)</h4>
<div class="markdown level1 summary"><p>This is a helper method that assists with recursively building
a string of the current collection and all nested 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 string ToString(object obj)</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.Object</span></td>
<td><span class="parametername">obj</span></td>
<td></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.String</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_Collections_ToString_System_Object_System_Globalization_CultureInfo_.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.Collections.ToString(System.Object%2CSystem.Globalization.CultureInfo)%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/Collections.cs/#L607">View Source</a>
</span>
<a id="Lucene_Net_Support_Collections_ToString_" data-uid="Lucene.Net.Support.Collections.ToString*"></a>
<h4 id="Lucene_Net_Support_Collections_ToString_System_Object_System_Globalization_CultureInfo_" data-uid="Lucene.Net.Support.Collections.ToString(System.Object,System.Globalization.CultureInfo)">ToString(Object, CultureInfo)</h4>
<div class="markdown level1 summary"><p>This is a helper method that assists with recursively building
a string of the current collection and all nested collections, plus the ability
to specify culture for formatting of nested numbers and dates. Note that
this overload will change the culture of the current thread.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static string ToString(object obj, CultureInfo culture)</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.Object</span></td>
<td><span class="parametername">obj</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.Globalization.CultureInfo</span></td>
<td><span class="parametername">culture</span></td>
<td></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.String</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_Collections_ToString__1_System_Collections_Generic_ICollection___0__.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.Collections.ToString%60%601(System.Collections.Generic.ICollection%7B%60%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/Collections.cs/#L494">View Source</a>
</span>
<a id="Lucene_Net_Support_Collections_ToString_" data-uid="Lucene.Net.Support.Collections.ToString*"></a>
<h4 id="Lucene_Net_Support_Collections_ToString__1_System_Collections_Generic_ICollection___0__" data-uid="Lucene.Net.Support.Collections.ToString``1(System.Collections.Generic.ICollection{``0})">ToString&lt;T&gt;(ICollection&lt;T&gt;)</h4>
<div class="markdown level1 summary"><p>This is the same implementation of ToString from Java&apos;s AbstractCollection
(the default implementation for all sets and lists)</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static string ToString&lt;T&gt;(ICollection&lt;T&gt; collection)</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.ICollection</span>&lt;T&gt;</td>
<td><span class="parametername">collection</span></td>
<td></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.String</span></td>
<td></td>
</tr>
</tbody>
</table>
<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>
<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_Collections_ToString__1_System_Collections_Generic_ICollection___0__System_Globalization_CultureInfo_.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.Collections.ToString%60%601(System.Collections.Generic.ICollection%7B%60%600%7D%2CSystem.Globalization.CultureInfo)%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/Collections.cs/#L526">View Source</a>
</span>
<a id="Lucene_Net_Support_Collections_ToString_" data-uid="Lucene.Net.Support.Collections.ToString*"></a>
<h4 id="Lucene_Net_Support_Collections_ToString__1_System_Collections_Generic_ICollection___0__System_Globalization_CultureInfo_" data-uid="Lucene.Net.Support.Collections.ToString``1(System.Collections.Generic.ICollection{``0},System.Globalization.CultureInfo)">ToString&lt;T&gt;(ICollection&lt;T&gt;, CultureInfo)</h4>
<div class="markdown level1 summary"><p>This is the same implementation of ToString from Java&apos;s AbstractCollection
(the default implementation for all sets and lists), plus the ability
to specify culture for formatting of nested numbers and dates. Note that
this overload will change the culture of the current thread.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static string ToString&lt;T&gt;(ICollection&lt;T&gt; collection, CultureInfo culture)</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.ICollection</span>&lt;T&gt;</td>
<td><span class="parametername">collection</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.Globalization.CultureInfo</span></td>
<td><span class="parametername">culture</span></td>
<td></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.String</span></td>
<td></td>
</tr>
</tbody>
</table>
<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>
<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_Collections_ToString__2_System_Collections_Generic_IDictionary___0___1__.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.Collections.ToString%60%602(System.Collections.Generic.IDictionary%7B%60%600%2C%60%601%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/Collections.cs/#L538">View Source</a>
</span>
<a id="Lucene_Net_Support_Collections_ToString_" data-uid="Lucene.Net.Support.Collections.ToString*"></a>
<h4 id="Lucene_Net_Support_Collections_ToString__2_System_Collections_Generic_IDictionary___0___1__" data-uid="Lucene.Net.Support.Collections.ToString``2(System.Collections.Generic.IDictionary{``0,``1})">ToString&lt;TKey, TValue&gt;(IDictionary&lt;TKey, TValue&gt;)</h4>
<div class="markdown level1 summary"><p>This is the same implementation of ToString from Java&apos;s AbstractMap
(the default implementation for all dictionaries)</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static string ToString&lt;TKey, TValue&gt;(IDictionary&lt;TKey, TValue&gt; dictionary)</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.IDictionary</span>&lt;TKey, TValue&gt;</td>
<td><span class="parametername">dictionary</span></td>
<td></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.String</span></td>
<td></td>
</tr>
</tbody>
</table>
<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">TKey</span></td>
<td></td>
</tr>
<tr>
<td><span class="parametername">TValue</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_Collections_ToString__2_System_Collections_Generic_IDictionary___0___1__System_Globalization_CultureInfo_.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.Collections.ToString%60%602(System.Collections.Generic.IDictionary%7B%60%600%2C%60%601%7D%2CSystem.Globalization.CultureInfo)%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/Collections.cs/#L575">View Source</a>
</span>
<a id="Lucene_Net_Support_Collections_ToString_" data-uid="Lucene.Net.Support.Collections.ToString*"></a>
<h4 id="Lucene_Net_Support_Collections_ToString__2_System_Collections_Generic_IDictionary___0___1__System_Globalization_CultureInfo_" data-uid="Lucene.Net.Support.Collections.ToString``2(System.Collections.Generic.IDictionary{``0,``1},System.Globalization.CultureInfo)">ToString&lt;TKey, TValue&gt;(IDictionary&lt;TKey, TValue&gt;, CultureInfo)</h4>
<div class="markdown level1 summary"><p>This is the same implementation of ToString from Java&apos;s AbstractMap
(the default implementation for all dictionaries), plus the ability
to specify culture for formatting of nested numbers and dates. Note that
this overload will change the culture of the current thread.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static string ToString&lt;TKey, TValue&gt;(IDictionary&lt;TKey, TValue&gt; dictionary, CultureInfo culture)</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.IDictionary</span>&lt;TKey, TValue&gt;</td>
<td><span class="parametername">dictionary</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.Globalization.CultureInfo</span></td>
<td><span class="parametername">culture</span></td>
<td></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.String</span></td>
<td></td>
</tr>
</tbody>
</table>
<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">TKey</span></td>
<td></td>
</tr>
<tr>
<td><span class="parametername">TValue</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_Collections_UnmodifiableList__1_System_Collections_Generic_IList___0__.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.Collections.UnmodifiableList%60%601(System.Collections.Generic.IList%7B%60%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/Collections.cs/#L108">View Source</a>
</span>
<a id="Lucene_Net_Support_Collections_UnmodifiableList_" data-uid="Lucene.Net.Support.Collections.UnmodifiableList*"></a>
<h4 id="Lucene_Net_Support_Collections_UnmodifiableList__1_System_Collections_Generic_IList___0__" data-uid="Lucene.Net.Support.Collections.UnmodifiableList``1(System.Collections.Generic.IList{``0})">UnmodifiableList&lt;T&gt;(IList&lt;T&gt;)</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 static IList&lt;T&gt; UnmodifiableList&lt;T&gt;(IList&lt;T&gt; list)</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.IList</span>&lt;T&gt;</td>
<td><span class="parametername">list</span></td>
<td></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.Collections.Generic.IList</span>&lt;T&gt;</td>
<td></td>
</tr>
</tbody>
</table>
<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>
<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_Collections_UnmodifiableMap__2_System_Collections_Generic_IDictionary___0___1__.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.Collections.UnmodifiableMap%60%602(System.Collections.Generic.IDictionary%7B%60%600%2C%60%601%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/Collections.cs/#L113">View Source</a>
</span>
<a id="Lucene_Net_Support_Collections_UnmodifiableMap_" data-uid="Lucene.Net.Support.Collections.UnmodifiableMap*"></a>
<h4 id="Lucene_Net_Support_Collections_UnmodifiableMap__2_System_Collections_Generic_IDictionary___0___1__" data-uid="Lucene.Net.Support.Collections.UnmodifiableMap``2(System.Collections.Generic.IDictionary{``0,``1})">UnmodifiableMap&lt;TKey, TValue&gt;(IDictionary&lt;TKey, TValue&gt;)</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 static IDictionary&lt;TKey, TValue&gt; UnmodifiableMap&lt;TKey, TValue&gt;(IDictionary&lt;TKey, TValue&gt; d)</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.IDictionary</span>&lt;TKey, TValue&gt;</td>
<td><span class="parametername">d</span></td>
<td></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.Collections.Generic.IDictionary</span>&lt;TKey, TValue&gt;</td>
<td></td>
</tr>
</tbody>
</table>
<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">TKey</span></td>
<td></td>
</tr>
<tr>
<td><span class="parametername">TValue</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_Collections_UnmodifiableSet__1_System_Collections_Generic_ISet___0__.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.Collections.UnmodifiableSet%60%601(System.Collections.Generic.ISet%7B%60%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/Collections.cs/#L118">View Source</a>
</span>
<a id="Lucene_Net_Support_Collections_UnmodifiableSet_" data-uid="Lucene.Net.Support.Collections.UnmodifiableSet*"></a>
<h4 id="Lucene_Net_Support_Collections_UnmodifiableSet__1_System_Collections_Generic_ISet___0__" data-uid="Lucene.Net.Support.Collections.UnmodifiableSet``1(System.Collections.Generic.ISet{``0})">UnmodifiableSet&lt;T&gt;(ISet&lt;T&gt;)</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 static ISet&lt;T&gt; UnmodifiableSet&lt;T&gt;(ISet&lt;T&gt; list)</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.ISet</span>&lt;T&gt;</td>
<td><span class="parametername">list</span></td>
<td></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.Collections.Generic.ISet</span>&lt;T&gt;</td>
<td></td>
</tr>
</tbody>
</table>
<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>
</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_Collections.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.Collections%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/Collections.cs/#L31" 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>