blob: 2984ed57533e3a94c137ccbc7d071dbc874ee8fe [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>Interface ISortedDictionary&lt;K, V&gt;
| Apache Lucene.NET 4.8.0 Documentation </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Interface ISortedDictionary&lt;K, V&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.ISortedDictionary`2">
<h1 id="Lucene_Net_Support_C5_ISortedDictionary_2" data-uid="Lucene.Net.Support.C5.ISortedDictionary`2" class="text-break">Interface ISortedDictionary&lt;K, V&gt;
</h1>
<div class="markdown level0 summary"><p>A dictionary with sorted keys.</p>
</div>
<div class="markdown level0 conceptual"></div>
<div class="inheritedMembers">
<h5>Inherited Members</h5>
<div>
<a class="xref" href="Lucene.Net.Support.C5.IDictionary-2.html#Lucene_Net_Support_C5_IDictionary_2_EqualityComparer">IDictionary&lt;K, V&gt;.EqualityComparer</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.IDictionary-2.html#Lucene_Net_Support_C5_IDictionary_2_Item__0_">IDictionary&lt;K, V&gt;.Item[K]</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.IDictionary-2.html#Lucene_Net_Support_C5_IDictionary_2_IsReadOnly">IDictionary&lt;K, V&gt;.IsReadOnly</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.IDictionary-2.html#Lucene_Net_Support_C5_IDictionary_2_Keys">IDictionary&lt;K, V&gt;.Keys</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.IDictionary-2.html#Lucene_Net_Support_C5_IDictionary_2_Values">IDictionary&lt;K, V&gt;.Values</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.IDictionary-2.html#Lucene_Net_Support_C5_IDictionary_2_Func">IDictionary&lt;K, V&gt;.Func</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.IDictionary-2.html#Lucene_Net_Support_C5_IDictionary_2_Add__0__1_">IDictionary&lt;K, V&gt;.Add(K, V)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.IDictionary-2.html#Lucene_Net_Support_C5_IDictionary_2_AddAll__2_System_Collections_Generic_IEnumerable_Lucene_Net_Support_C5_KeyValuePair___0___1___">IDictionary&lt;K, V&gt;.AddAll&lt;U, W&gt;(IEnumerable&lt;KeyValuePair&lt;U, W&gt;&gt;)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.IDictionary-2.html#Lucene_Net_Support_C5_IDictionary_2_ContainsSpeed">IDictionary&lt;K, V&gt;.ContainsSpeed</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.IDictionary-2.html#Lucene_Net_Support_C5_IDictionary_2_ContainsAll__1_System_Collections_Generic_IEnumerable___0__">IDictionary&lt;K, V&gt;.ContainsAll&lt;H&gt;(IEnumerable&lt;H&gt;)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.IDictionary-2.html#Lucene_Net_Support_C5_IDictionary_2_Remove__0_">IDictionary&lt;K, V&gt;.Remove(K)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.IDictionary-2.html#Lucene_Net_Support_C5_IDictionary_2_Remove__0__1__">IDictionary&lt;K, V&gt;.Remove(K, V)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.IDictionary-2.html#Lucene_Net_Support_C5_IDictionary_2_Clear">IDictionary&lt;K, V&gt;.Clear()</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.IDictionary-2.html#Lucene_Net_Support_C5_IDictionary_2_Contains__0_">IDictionary&lt;K, V&gt;.Contains(K)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.IDictionary-2.html#Lucene_Net_Support_C5_IDictionary_2_Find__0___1__">IDictionary&lt;K, V&gt;.Find(K, V)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.IDictionary-2.html#Lucene_Net_Support_C5_IDictionary_2_Update__0__1_">IDictionary&lt;K, V&gt;.Update(K, V)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.IDictionary-2.html#Lucene_Net_Support_C5_IDictionary_2_Update__0__1__1__">IDictionary&lt;K, V&gt;.Update(K, V, V)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.IDictionary-2.html#Lucene_Net_Support_C5_IDictionary_2_FindOrAdd__0__1__">IDictionary&lt;K, V&gt;.FindOrAdd(K, V)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.IDictionary-2.html#Lucene_Net_Support_C5_IDictionary_2_UpdateOrAdd__0__1_">IDictionary&lt;K, V&gt;.UpdateOrAdd(K, V)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.IDictionary-2.html#Lucene_Net_Support_C5_IDictionary_2_UpdateOrAdd__0__1__1__">IDictionary&lt;K, V&gt;.UpdateOrAdd(K, V, V)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.IDictionary-2.html#Lucene_Net_Support_C5_IDictionary_2_Check">IDictionary&lt;K, V&gt;.Check()</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.ICollectionValue-1.html#Lucene_Net_Support_C5_ICollectionValue_1_ListenableEvents">ICollectionValue&lt;KeyValuePair&lt;K, V&gt;&gt;.ListenableEvents</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.ICollectionValue-1.html#Lucene_Net_Support_C5_ICollectionValue_1_ActiveEvents">ICollectionValue&lt;KeyValuePair&lt;K, V&gt;&gt;.ActiveEvents</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.ICollectionValue-1.html#Lucene_Net_Support_C5_ICollectionValue_1_CollectionChanged">ICollectionValue&lt;KeyValuePair&lt;K, V&gt;&gt;.CollectionChanged</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.ICollectionValue-1.html#Lucene_Net_Support_C5_ICollectionValue_1_CollectionCleared">ICollectionValue&lt;KeyValuePair&lt;K, V&gt;&gt;.CollectionCleared</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.ICollectionValue-1.html#Lucene_Net_Support_C5_ICollectionValue_1_ItemsAdded">ICollectionValue&lt;KeyValuePair&lt;K, V&gt;&gt;.ItemsAdded</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.ICollectionValue-1.html#Lucene_Net_Support_C5_ICollectionValue_1_ItemInserted">ICollectionValue&lt;KeyValuePair&lt;K, V&gt;&gt;.ItemInserted</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.ICollectionValue-1.html#Lucene_Net_Support_C5_ICollectionValue_1_ItemsRemoved">ICollectionValue&lt;KeyValuePair&lt;K, V&gt;&gt;.ItemsRemoved</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.ICollectionValue-1.html#Lucene_Net_Support_C5_ICollectionValue_1_ItemRemovedAt">ICollectionValue&lt;KeyValuePair&lt;K, V&gt;&gt;.ItemRemovedAt</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.ICollectionValue-1.html#Lucene_Net_Support_C5_ICollectionValue_1_IsEmpty">ICollectionValue&lt;KeyValuePair&lt;K, V&gt;&gt;.IsEmpty</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.ICollectionValue-1.html#Lucene_Net_Support_C5_ICollectionValue_1_Count">ICollectionValue&lt;KeyValuePair&lt;K, V&gt;&gt;.Count</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.ICollectionValue-1.html#Lucene_Net_Support_C5_ICollectionValue_1_CountSpeed">ICollectionValue&lt;KeyValuePair&lt;K, V&gt;&gt;.CountSpeed</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.ICollectionValue-1.html#Lucene_Net_Support_C5_ICollectionValue_1_CopyTo__0___System_Int32_">ICollectionValue&lt;KeyValuePair&lt;K, V&gt;&gt;.CopyTo(KeyValuePair&lt;K, V&gt;[], Int32)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.ICollectionValue-1.html#Lucene_Net_Support_C5_ICollectionValue_1_ToArray">ICollectionValue&lt;KeyValuePair&lt;K, V&gt;&gt;.ToArray()</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.ICollectionValue-1.html#Lucene_Net_Support_C5_ICollectionValue_1_Apply_System_Action__0__">ICollectionValue&lt;KeyValuePair&lt;K, V&gt;&gt;.Apply(Action&lt;KeyValuePair&lt;K, V&gt;&gt;)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.ICollectionValue-1.html#Lucene_Net_Support_C5_ICollectionValue_1_Exists_System_Func__0_System_Boolean__">ICollectionValue&lt;KeyValuePair&lt;K, V&gt;&gt;.Exists(Func&lt;KeyValuePair&lt;K, V&gt;, Boolean&gt;)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.ICollectionValue-1.html#Lucene_Net_Support_C5_ICollectionValue_1_Find_System_Func__0_System_Boolean___0__">ICollectionValue&lt;KeyValuePair&lt;K, V&gt;&gt;.Find(Func&lt;KeyValuePair&lt;K, V&gt;, Boolean&gt;, KeyValuePair&lt;K, V&gt;)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.ICollectionValue-1.html#Lucene_Net_Support_C5_ICollectionValue_1_All_System_Func__0_System_Boolean__">ICollectionValue&lt;KeyValuePair&lt;K, V&gt;&gt;.All(Func&lt;KeyValuePair&lt;K, V&gt;, Boolean&gt;)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.ICollectionValue-1.html#Lucene_Net_Support_C5_ICollectionValue_1_Choose">ICollectionValue&lt;KeyValuePair&lt;K, V&gt;&gt;.Choose()</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.ICollectionValue-1.html#Lucene_Net_Support_C5_ICollectionValue_1_Filter_System_Func__0_System_Boolean__">ICollectionValue&lt;KeyValuePair&lt;K, V&gt;&gt;.Filter(Func&lt;KeyValuePair&lt;K, V&gt;, Boolean&gt;)</a>
</div>
<div>
<span class="xref">System.Collections.Generic.IEnumerable&lt;Lucene.Net.Support.C5.KeyValuePair&lt;K, V&gt;&gt;.GetEnumerator()</span>
</div>
<div>
<span class="xref">System.Collections.IEnumerable.GetEnumerator()</span>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.IShowable.html#Lucene_Net_Support_C5_IShowable_Show_System_Text_StringBuilder_System_Int32__System_IFormatProvider_">IShowable.Show(StringBuilder, Int32, IFormatProvider)</a>
</div>
<div>
<span class="xref">System.IFormattable.ToString(System.String, System.IFormatProvider)</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_ISortedDictionary_2_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public interface ISortedDictionary&lt;K, V&gt; : IDictionary&lt;K, V&gt;, ICollectionValue&lt;KeyValuePair&lt;K, V&gt;&gt;, IEnumerable&lt;KeyValuePair&lt;K, V&gt;&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">K</span></td>
<td></td>
</tr>
<tr>
<td><span class="parametername">V</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_ISortedDictionary_2_Comparer.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.C5.ISortedDictionary%602.Comparer%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/#L5236">View Source</a>
</span>
<a id="Lucene_Net_Support_C5_ISortedDictionary_2_Comparer_" data-uid="Lucene.Net.Support.C5.ISortedDictionary`2.Comparer*"></a>
<h4 id="Lucene_Net_Support_C5_ISortedDictionary_2_Comparer" data-uid="Lucene.Net.Support.C5.ISortedDictionary`2.Comparer">Comparer</h4>
<div class="markdown level1 summary"><p>The key comparer used by this dictionary.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">IComparer&lt;K&gt; Comparer { 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.IComparer</span>&lt;K&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_ISortedDictionary_2_Keys.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.C5.ISortedDictionary%602.Keys%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/#L5199">View Source</a>
</span>
<a id="Lucene_Net_Support_C5_ISortedDictionary_2_Keys_" data-uid="Lucene.Net.Support.C5.ISortedDictionary`2.Keys*"></a>
<h4 id="Lucene_Net_Support_C5_ISortedDictionary_2_Keys" data-uid="Lucene.Net.Support.C5.ISortedDictionary`2.Keys">Keys</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">ISorted&lt;K&gt; Keys { 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.ISorted-1.html">ISorted</a>&lt;K&gt;</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_ISortedDictionary_2_AddSorted_System_Collections_Generic_IEnumerable_Lucene_Net_Support_C5_KeyValuePair__0__1___.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.C5.ISortedDictionary%602.AddSorted(System.Collections.Generic.IEnumerable%7BLucene.Net.Support.C5.KeyValuePair%7B%600%2C%601%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/C5.Support.cs/#L5400">View Source</a>
</span>
<a id="Lucene_Net_Support_C5_ISortedDictionary_2_AddSorted_" data-uid="Lucene.Net.Support.C5.ISortedDictionary`2.AddSorted*"></a>
<h4 id="Lucene_Net_Support_C5_ISortedDictionary_2_AddSorted_System_Collections_Generic_IEnumerable_Lucene_Net_Support_C5_KeyValuePair__0__1___" data-uid="Lucene.Net.Support.C5.ISortedDictionary`2.AddSorted(System.Collections.Generic.IEnumerable{Lucene.Net.Support.C5.KeyValuePair{`0,`1}})">AddSorted(IEnumerable&lt;KeyValuePair&lt;K, V&gt;&gt;)</h4>
<div class="markdown level1 summary"><p>Add all the items from another collection with an enumeration order that
is increasing in the items.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">void AddSorted(IEnumerable&lt;KeyValuePair&lt;K, V&gt;&gt; items)</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.IEnumerable</span>&lt;<a class="xref" href="Lucene.Net.Support.C5.KeyValuePair-2.html">KeyValuePair</a>&lt;K, V&gt;&gt;</td>
<td><span class="parametername">items</span></td>
<td><p>The collection to add.</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.ArgumentException</span></td>
<td><p>if the enumerated items turns out
not to be in increasing order.</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_ISortedDictionary_2_Cut_System_IComparable__0__Lucene_Net_Support_C5_KeyValuePair__0__1___System_Boolean__Lucene_Net_Support_C5_KeyValuePair__0__1___System_Boolean__.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.C5.ISortedDictionary%602.Cut(System.IComparable%7B%600%7D%2CLucene.Net.Support.C5.KeyValuePair%7B%600%2C%601%7D%40%2CSystem.Boolean%40%2CLucene.Net.Support.C5.KeyValuePair%7B%600%2C%601%7D%40%2CSystem.Boolean%40)%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/#L5346">View Source</a>
</span>
<a id="Lucene_Net_Support_C5_ISortedDictionary_2_Cut_" data-uid="Lucene.Net.Support.C5.ISortedDictionary`2.Cut*"></a>
<h4 id="Lucene_Net_Support_C5_ISortedDictionary_2_Cut_System_IComparable__0__Lucene_Net_Support_C5_KeyValuePair__0__1___System_Boolean__Lucene_Net_Support_C5_KeyValuePair__0__1___System_Boolean__" data-uid="Lucene.Net.Support.C5.ISortedDictionary`2.Cut(System.IComparable{`0},Lucene.Net.Support.C5.KeyValuePair{`0,`1}@,System.Boolean@,Lucene.Net.Support.C5.KeyValuePair{`0,`1}@,System.Boolean@)">Cut(IComparable&lt;K&gt;, out KeyValuePair&lt;K, V&gt;, out Boolean, out KeyValuePair&lt;K, V&gt;, out Boolean)</h4>
<div class="markdown level1 summary"><p>Given a &quot;cut&quot; function from the items of the sorted collection to <pre><code>int</code></pre>
whose only sign changes when going through items in increasing order
can be </p>
<p>The &quot;cut&quot; function is supplied as the <pre><code>CompareTo</code></pre> method
of an object <pre><code>c</code></pre> implementing </p>
<pre><code>IComparable&lt;K></code></pre>.
<p>A typical example is the case where <pre><code>K</code></pre> is comparable and </p>
<pre><code>c</code></pre> is itself of type <pre><code>K</code></pre>.
<p>This method performs a search in the sorted collection for the ranges in which the
&quot;cut&quot; function is negative, zero respectively positive. If <pre><code>K</code></pre> is comparable
and <pre><code>c</code></pre> is of type <pre><code>K</code></pre>, this is a safe way (no exceptions thrown)
to find predecessor and successor of <pre><code>c</code></pre>.
</p>
<p> If the supplied cut function does not satisfy the sign-change condition,
the result of this call is undefined.
</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">bool Cut(IComparable&lt;K&gt; cutFunction, out KeyValuePair&lt;K, V&gt; lowEntry, out bool lowIsValid, out KeyValuePair&lt;K, V&gt; highEntry, out bool highIsValid)</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.IComparable</span>&lt;K&gt;</td>
<td><span class="parametername">cutFunction</span></td>
<td><p>The cut function <pre><code>K</code></pre> to <pre><code>int</code></pre>, given
by the <pre><code>CompareTo</code></pre> method of an object implementing </p>
<pre><code>IComparable&lt;K></code></pre>.</td>
</tr>
<tr>
<td><a class="xref" href="Lucene.Net.Support.C5.KeyValuePair-2.html">KeyValuePair</a>&lt;K, V&gt;</td>
<td><span class="parametername">lowEntry</span></td>
<td><p>Returns the largest item in the collection, where the
cut function is positive (if any).</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td><span class="parametername">lowIsValid</span></td>
<td><p>Returns true if the cut function is positive somewhere
on this collection.</p>
</td>
</tr>
<tr>
<td><a class="xref" href="Lucene.Net.Support.C5.KeyValuePair-2.html">KeyValuePair</a>&lt;K, V&gt;</td>
<td><span class="parametername">highEntry</span></td>
<td><p>Returns the least item in the collection, where the
cut function is negative (if any).</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td><span class="parametername">highIsValid</span></td>
<td><p>Returns true if the cut function is negative somewhere
on this collection.</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 the cut function is zero somewhere
on this collection.</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_ISortedDictionary_2_DeleteMax.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.C5.ISortedDictionary%602.DeleteMax%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/#L5230">View Source</a>
</span>
<a id="Lucene_Net_Support_C5_ISortedDictionary_2_DeleteMax_" data-uid="Lucene.Net.Support.C5.ISortedDictionary`2.DeleteMax*"></a>
<h4 id="Lucene_Net_Support_C5_ISortedDictionary_2_DeleteMax" data-uid="Lucene.Net.Support.C5.ISortedDictionary`2.DeleteMax">DeleteMax()</h4>
<div class="markdown level1 summary"><p>Remove the largest item from this sorted collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">KeyValuePair&lt;K, V&gt; DeleteMax()</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><a class="xref" href="Lucene.Net.Support.C5.KeyValuePair-2.html">KeyValuePair</a>&lt;K, V&gt;</td>
<td><p>The removed item.</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.NoSuchItemException.html">NoSuchItemException</a></td>
<td><p>if the collection is empty.</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_ISortedDictionary_2_DeleteMin.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.C5.ISortedDictionary%602.DeleteMin%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/#L5214">View Source</a>
</span>
<a id="Lucene_Net_Support_C5_ISortedDictionary_2_DeleteMin_" data-uid="Lucene.Net.Support.C5.ISortedDictionary`2.DeleteMin*"></a>
<h4 id="Lucene_Net_Support_C5_ISortedDictionary_2_DeleteMin" data-uid="Lucene.Net.Support.C5.ISortedDictionary`2.DeleteMin">DeleteMin()</h4>
<div class="markdown level1 summary"><p>Remove the least item from this sorted collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">KeyValuePair&lt;K, V&gt; DeleteMin()</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><a class="xref" href="Lucene.Net.Support.C5.KeyValuePair-2.html">KeyValuePair</a>&lt;K, V&gt;</td>
<td><p>The removed item.</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.NoSuchItemException.html">NoSuchItemException</a></td>
<td><p>if the collection is empty.</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_ISortedDictionary_2_FindMax.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.C5.ISortedDictionary%602.FindMax%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/#L5222">View Source</a>
</span>
<a id="Lucene_Net_Support_C5_ISortedDictionary_2_FindMax_" data-uid="Lucene.Net.Support.C5.ISortedDictionary`2.FindMax*"></a>
<h4 id="Lucene_Net_Support_C5_ISortedDictionary_2_FindMax" data-uid="Lucene.Net.Support.C5.ISortedDictionary`2.FindMax">FindMax()</h4>
<div class="markdown level1 summary"><p>Find the current largest item of this sorted collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">KeyValuePair&lt;K, V&gt; FindMax()</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><a class="xref" href="Lucene.Net.Support.C5.KeyValuePair-2.html">KeyValuePair</a>&lt;K, V&gt;</td>
<td><p>The largest item.</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.NoSuchItemException.html">NoSuchItemException</a></td>
<td><p>if the collection is empty.</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_ISortedDictionary_2_FindMin.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.C5.ISortedDictionary%602.FindMin%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/#L5206">View Source</a>
</span>
<a id="Lucene_Net_Support_C5_ISortedDictionary_2_FindMin_" data-uid="Lucene.Net.Support.C5.ISortedDictionary`2.FindMin*"></a>
<h4 id="Lucene_Net_Support_C5_ISortedDictionary_2_FindMin" data-uid="Lucene.Net.Support.C5.ISortedDictionary`2.FindMin">FindMin()</h4>
<div class="markdown level1 summary"><p>Find the current least item of this sorted collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">KeyValuePair&lt;K, V&gt; FindMin()</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><a class="xref" href="Lucene.Net.Support.C5.KeyValuePair-2.html">KeyValuePair</a>&lt;K, V&gt;</td>
<td><p>The least item.</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.NoSuchItemException.html">NoSuchItemException</a></td>
<td><p>if the collection is empty.</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_ISortedDictionary_2_Predecessor__0_.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.C5.ISortedDictionary%602.Predecessor(%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/C5.Support.cs/#L5280">View Source</a>
</span>
<a id="Lucene_Net_Support_C5_ISortedDictionary_2_Predecessor_" data-uid="Lucene.Net.Support.C5.ISortedDictionary`2.Predecessor*"></a>
<h4 id="Lucene_Net_Support_C5_ISortedDictionary_2_Predecessor__0_" data-uid="Lucene.Net.Support.C5.ISortedDictionary`2.Predecessor(`0)">Predecessor(K)</h4>
<div class="markdown level1 summary"><p>Find the entry with the largest key less than a given key.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">KeyValuePair&lt;K, V&gt; Predecessor(K key)</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">K</span></td>
<td><span class="parametername">key</span></td>
<td><p>The key 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><a class="xref" href="Lucene.Net.Support.C5.KeyValuePair-2.html">KeyValuePair</a>&lt;K, V&gt;</td>
<td><p>The entry</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.NoSuchItemException.html">NoSuchItemException</a></td>
<td><p>if there is no such entry. </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_ISortedDictionary_2_RangeAll.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.C5.ISortedDictionary%602.RangeAll%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/#L5389">View Source</a>
</span>
<a id="Lucene_Net_Support_C5_ISortedDictionary_2_RangeAll_" data-uid="Lucene.Net.Support.C5.ISortedDictionary`2.RangeAll*"></a>
<h4 id="Lucene_Net_Support_C5_ISortedDictionary_2_RangeAll" data-uid="Lucene.Net.Support.C5.ISortedDictionary`2.RangeAll">RangeAll()</h4>
<div class="markdown level1 summary"><p>Create a directed collection with the same items as this collection.
<p>The returned collection is not a copy but a view into the collection.</p>
<p>The view is fragile in the sense that changes to the underlying collection will
invalidate the view so that further operations on the view throws InvalidView exceptions.</p></p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">IDirectedCollectionValue&lt;KeyValuePair&lt;K, V&gt;&gt; RangeAll()</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><a class="xref" href="Lucene.Net.Support.C5.IDirectedCollectionValue-1.html">IDirectedCollectionValue</a>&lt;<a class="xref" href="Lucene.Net.Support.C5.KeyValuePair-2.html">KeyValuePair</a>&lt;K, V&gt;&gt;</td>
<td><p>The result directed collection.</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_ISortedDictionary_2_RangeFrom__0_.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.C5.ISortedDictionary%602.RangeFrom(%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/C5.Support.cs/#L5356">View Source</a>
</span>
<a id="Lucene_Net_Support_C5_ISortedDictionary_2_RangeFrom_" data-uid="Lucene.Net.Support.C5.ISortedDictionary`2.RangeFrom*"></a>
<h4 id="Lucene_Net_Support_C5_ISortedDictionary_2_RangeFrom__0_" data-uid="Lucene.Net.Support.C5.ISortedDictionary`2.RangeFrom(`0)">RangeFrom(K)</h4>
<div class="markdown level1 summary"><p>Query this sorted collection for items greater than or equal to a supplied value.
<p>The returned collection is not a copy but a view into the collection.</p>
<p>The view is fragile in the sense that changes to the underlying collection will
invalidate the view so that further operations on the view throws InvalidView exceptions.</p></p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">IDirectedEnumerable&lt;KeyValuePair&lt;K, V&gt;&gt; RangeFrom(K bot)</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">K</span></td>
<td><span class="parametername">bot</span></td>
<td><p>The lower bound (inclusive).</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><a class="xref" href="Lucene.Net.Support.C5.IDirectedEnumerable-1.html">IDirectedEnumerable</a>&lt;<a class="xref" href="Lucene.Net.Support.C5.KeyValuePair-2.html">KeyValuePair</a>&lt;K, V&gt;&gt;</td>
<td><p>The result directed collection.</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_ISortedDictionary_2_RangeFromTo__0__0_.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.C5.ISortedDictionary%602.RangeFromTo(%600%2C%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/C5.Support.cs/#L5368">View Source</a>
</span>
<a id="Lucene_Net_Support_C5_ISortedDictionary_2_RangeFromTo_" data-uid="Lucene.Net.Support.C5.ISortedDictionary`2.RangeFromTo*"></a>
<h4 id="Lucene_Net_Support_C5_ISortedDictionary_2_RangeFromTo__0__0_" data-uid="Lucene.Net.Support.C5.ISortedDictionary`2.RangeFromTo(`0,`0)">RangeFromTo(K, K)</h4>
<div class="markdown level1 summary"><p>Query this sorted collection for items between two supplied values.
<p>The returned collection is not a copy but a view into the collection.</p>
<p>The view is fragile in the sense that changes to the underlying collection will
invalidate the view so that further operations on the view throws InvalidView exceptions.</p></p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">IDirectedEnumerable&lt;KeyValuePair&lt;K, V&gt;&gt; RangeFromTo(K lowerBound, K upperBound)</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">K</span></td>
<td><span class="parametername">lowerBound</span></td>
<td><p>The lower bound (inclusive).</p>
</td>
</tr>
<tr>
<td><span class="xref">K</span></td>
<td><span class="parametername">upperBound</span></td>
<td><p>The upper bound (exclusive).</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><a class="xref" href="Lucene.Net.Support.C5.IDirectedEnumerable-1.html">IDirectedEnumerable</a>&lt;<a class="xref" href="Lucene.Net.Support.C5.KeyValuePair-2.html">KeyValuePair</a>&lt;K, V&gt;&gt;</td>
<td><p>The result directed collection.</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_ISortedDictionary_2_RangeTo__0_.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.C5.ISortedDictionary%602.RangeTo(%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/C5.Support.cs/#L5379">View Source</a>
</span>
<a id="Lucene_Net_Support_C5_ISortedDictionary_2_RangeTo_" data-uid="Lucene.Net.Support.C5.ISortedDictionary`2.RangeTo*"></a>
<h4 id="Lucene_Net_Support_C5_ISortedDictionary_2_RangeTo__0_" data-uid="Lucene.Net.Support.C5.ISortedDictionary`2.RangeTo(`0)">RangeTo(K)</h4>
<div class="markdown level1 summary"><p>Query this sorted collection for items less than a supplied value.
<p>The returned collection is not a copy but a view into the collection.</p>
<p>The view is fragile in the sense that changes to the underlying collection will
invalidate the view so that further operations on the view throws InvalidView exceptions.</p></p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">IDirectedEnumerable&lt;KeyValuePair&lt;K, V&gt;&gt; RangeTo(K top)</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">K</span></td>
<td><span class="parametername">top</span></td>
<td><p>The upper bound (exclusive).</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><a class="xref" href="Lucene.Net.Support.C5.IDirectedEnumerable-1.html">IDirectedEnumerable</a>&lt;<a class="xref" href="Lucene.Net.Support.C5.KeyValuePair-2.html">KeyValuePair</a>&lt;K, V&gt;&gt;</td>
<td><p>The result directed collection.</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_ISortedDictionary_2_RemoveRangeFrom__0_.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.C5.ISortedDictionary%602.RemoveRangeFrom(%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/C5.Support.cs/#L5407">View Source</a>
</span>
<a id="Lucene_Net_Support_C5_ISortedDictionary_2_RemoveRangeFrom_" data-uid="Lucene.Net.Support.C5.ISortedDictionary`2.RemoveRangeFrom*"></a>
<h4 id="Lucene_Net_Support_C5_ISortedDictionary_2_RemoveRangeFrom__0_" data-uid="Lucene.Net.Support.C5.ISortedDictionary`2.RemoveRangeFrom(`0)">RemoveRangeFrom(K)</h4>
<div class="markdown level1 summary"><p>Remove all items of this collection above or at a supplied threshold.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">void RemoveRangeFrom(K low)</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">K</span></td>
<td><span class="parametername">low</span></td>
<td><p>The lower threshold (inclusive).</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_ISortedDictionary_2_RemoveRangeFromTo__0__0_.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.C5.ISortedDictionary%602.RemoveRangeFromTo(%600%2C%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/C5.Support.cs/#L5415">View Source</a>
</span>
<a id="Lucene_Net_Support_C5_ISortedDictionary_2_RemoveRangeFromTo_" data-uid="Lucene.Net.Support.C5.ISortedDictionary`2.RemoveRangeFromTo*"></a>
<h4 id="Lucene_Net_Support_C5_ISortedDictionary_2_RemoveRangeFromTo__0__0_" data-uid="Lucene.Net.Support.C5.ISortedDictionary`2.RemoveRangeFromTo(`0,`0)">RemoveRangeFromTo(K, K)</h4>
<div class="markdown level1 summary"><p>Remove all items of this collection between two supplied thresholds.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">void RemoveRangeFromTo(K low, K hi)</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">K</span></td>
<td><span class="parametername">low</span></td>
<td><p>The lower threshold (inclusive).</p>
</td>
</tr>
<tr>
<td><span class="xref">K</span></td>
<td><span class="parametername">hi</span></td>
<td><p>The upper threshold (exclusive).</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_ISortedDictionary_2_RemoveRangeTo__0_.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.C5.ISortedDictionary%602.RemoveRangeTo(%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/C5.Support.cs/#L5422">View Source</a>
</span>
<a id="Lucene_Net_Support_C5_ISortedDictionary_2_RemoveRangeTo_" data-uid="Lucene.Net.Support.C5.ISortedDictionary`2.RemoveRangeTo*"></a>
<h4 id="Lucene_Net_Support_C5_ISortedDictionary_2_RemoveRangeTo__0_" data-uid="Lucene.Net.Support.C5.ISortedDictionary`2.RemoveRangeTo(`0)">RemoveRangeTo(K)</h4>
<div class="markdown level1 summary"><p>Remove all items of this collection below a supplied threshold.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">void RemoveRangeTo(K hi)</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">K</span></td>
<td><span class="parametername">hi</span></td>
<td><p>The upper threshold (exclusive).</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_ISortedDictionary_2_Successor__0_.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.C5.ISortedDictionary%602.Successor(%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/C5.Support.cs/#L5289">View Source</a>
</span>
<a id="Lucene_Net_Support_C5_ISortedDictionary_2_Successor_" data-uid="Lucene.Net.Support.C5.ISortedDictionary`2.Successor*"></a>
<h4 id="Lucene_Net_Support_C5_ISortedDictionary_2_Successor__0_" data-uid="Lucene.Net.Support.C5.ISortedDictionary`2.Successor(`0)">Successor(K)</h4>
<div class="markdown level1 summary"><p>Find the entry with the least key greater than a given key.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">KeyValuePair&lt;K, V&gt; Successor(K key)</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">K</span></td>
<td><span class="parametername">key</span></td>
<td><p>The key 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><a class="xref" href="Lucene.Net.Support.C5.KeyValuePair-2.html">KeyValuePair</a>&lt;K, V&gt;</td>
<td><p>The entry</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.NoSuchItemException.html">NoSuchItemException</a></td>
<td><p>if there is no such entry. </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_ISortedDictionary_2_TryPredecessor__0_Lucene_Net_Support_C5_KeyValuePair__0__1___.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.C5.ISortedDictionary%602.TryPredecessor(%600%2CLucene.Net.Support.C5.KeyValuePair%7B%600%2C%601%7D%40)%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/#L5245">View Source</a>
</span>
<a id="Lucene_Net_Support_C5_ISortedDictionary_2_TryPredecessor_" data-uid="Lucene.Net.Support.C5.ISortedDictionary`2.TryPredecessor*"></a>
<h4 id="Lucene_Net_Support_C5_ISortedDictionary_2_TryPredecessor__0_Lucene_Net_Support_C5_KeyValuePair__0__1___" data-uid="Lucene.Net.Support.C5.ISortedDictionary`2.TryPredecessor(`0,Lucene.Net.Support.C5.KeyValuePair{`0,`1}@)">TryPredecessor(K, out KeyValuePair&lt;K, V&gt;)</h4>
<div class="markdown level1 summary"><p>Find the entry in the dictionary whose key is the
predecessor of the specified key.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">bool TryPredecessor(K key, out KeyValuePair&lt;K, V&gt; res)</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">K</span></td>
<td><span class="parametername">key</span></td>
<td><p>The key</p>
</td>
</tr>
<tr>
<td><a class="xref" href="Lucene.Net.Support.C5.KeyValuePair-2.html">KeyValuePair</a>&lt;K, V&gt;</td>
<td><span class="parametername">res</span></td>
<td><p>The predecessor, if any</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 key has a predecessor</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_ISortedDictionary_2_TrySuccessor__0_Lucene_Net_Support_C5_KeyValuePair__0__1___.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.C5.ISortedDictionary%602.TrySuccessor(%600%2CLucene.Net.Support.C5.KeyValuePair%7B%600%2C%601%7D%40)%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/#L5254">View Source</a>
</span>
<a id="Lucene_Net_Support_C5_ISortedDictionary_2_TrySuccessor_" data-uid="Lucene.Net.Support.C5.ISortedDictionary`2.TrySuccessor*"></a>
<h4 id="Lucene_Net_Support_C5_ISortedDictionary_2_TrySuccessor__0_Lucene_Net_Support_C5_KeyValuePair__0__1___" data-uid="Lucene.Net.Support.C5.ISortedDictionary`2.TrySuccessor(`0,Lucene.Net.Support.C5.KeyValuePair{`0,`1}@)">TrySuccessor(K, out KeyValuePair&lt;K, V&gt;)</h4>
<div class="markdown level1 summary"><p>Find the entry in the dictionary whose key is the
successor of the specified key.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">bool TrySuccessor(K key, out KeyValuePair&lt;K, V&gt; res)</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">K</span></td>
<td><span class="parametername">key</span></td>
<td><p>The key</p>
</td>
</tr>
<tr>
<td><a class="xref" href="Lucene.Net.Support.C5.KeyValuePair-2.html">KeyValuePair</a>&lt;K, V&gt;</td>
<td><span class="parametername">res</span></td>
<td><p>The successor, if any</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 the key has a successor</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_ISortedDictionary_2_TryWeakPredecessor__0_Lucene_Net_Support_C5_KeyValuePair__0__1___.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.C5.ISortedDictionary%602.TryWeakPredecessor(%600%2CLucene.Net.Support.C5.KeyValuePair%7B%600%2C%601%7D%40)%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/#L5263">View Source</a>
</span>
<a id="Lucene_Net_Support_C5_ISortedDictionary_2_TryWeakPredecessor_" data-uid="Lucene.Net.Support.C5.ISortedDictionary`2.TryWeakPredecessor*"></a>
<h4 id="Lucene_Net_Support_C5_ISortedDictionary_2_TryWeakPredecessor__0_Lucene_Net_Support_C5_KeyValuePair__0__1___" data-uid="Lucene.Net.Support.C5.ISortedDictionary`2.TryWeakPredecessor(`0,Lucene.Net.Support.C5.KeyValuePair{`0,`1}@)">TryWeakPredecessor(K, out KeyValuePair&lt;K, V&gt;)</h4>
<div class="markdown level1 summary"><p>Find the entry in the dictionary whose key is the
weak predecessor of the specified key.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">bool TryWeakPredecessor(K key, out KeyValuePair&lt;K, V&gt; res)</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">K</span></td>
<td><span class="parametername">key</span></td>
<td><p>The key</p>
</td>
</tr>
<tr>
<td><a class="xref" href="Lucene.Net.Support.C5.KeyValuePair-2.html">KeyValuePair</a>&lt;K, V&gt;</td>
<td><span class="parametername">res</span></td>
<td><p>The predecessor, if any</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 key has a weak predecessor</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_ISortedDictionary_2_TryWeakSuccessor__0_Lucene_Net_Support_C5_KeyValuePair__0__1___.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.C5.ISortedDictionary%602.TryWeakSuccessor(%600%2CLucene.Net.Support.C5.KeyValuePair%7B%600%2C%601%7D%40)%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/#L5272">View Source</a>
</span>
<a id="Lucene_Net_Support_C5_ISortedDictionary_2_TryWeakSuccessor_" data-uid="Lucene.Net.Support.C5.ISortedDictionary`2.TryWeakSuccessor*"></a>
<h4 id="Lucene_Net_Support_C5_ISortedDictionary_2_TryWeakSuccessor__0_Lucene_Net_Support_C5_KeyValuePair__0__1___" data-uid="Lucene.Net.Support.C5.ISortedDictionary`2.TryWeakSuccessor(`0,Lucene.Net.Support.C5.KeyValuePair{`0,`1}@)">TryWeakSuccessor(K, out KeyValuePair&lt;K, V&gt;)</h4>
<div class="markdown level1 summary"><p>Find the entry in the dictionary whose key is the
weak successor of the specified key.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">bool TryWeakSuccessor(K key, out KeyValuePair&lt;K, V&gt; res)</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">K</span></td>
<td><span class="parametername">key</span></td>
<td><p>The key</p>
</td>
</tr>
<tr>
<td><a class="xref" href="Lucene.Net.Support.C5.KeyValuePair-2.html">KeyValuePair</a>&lt;K, V&gt;</td>
<td><span class="parametername">res</span></td>
<td><p>The weak successor, if any</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 the key has a weak successor</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_ISortedDictionary_2_WeakPredecessor__0_.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.C5.ISortedDictionary%602.WeakPredecessor(%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/C5.Support.cs/#L5298">View Source</a>
</span>
<a id="Lucene_Net_Support_C5_ISortedDictionary_2_WeakPredecessor_" data-uid="Lucene.Net.Support.C5.ISortedDictionary`2.WeakPredecessor*"></a>
<h4 id="Lucene_Net_Support_C5_ISortedDictionary_2_WeakPredecessor__0_" data-uid="Lucene.Net.Support.C5.ISortedDictionary`2.WeakPredecessor(`0)">WeakPredecessor(K)</h4>
<div class="markdown level1 summary"><p>Find the entry with the largest key less than or equal to a given key.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">KeyValuePair&lt;K, V&gt; WeakPredecessor(K key)</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">K</span></td>
<td><span class="parametername">key</span></td>
<td><p>The key 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><a class="xref" href="Lucene.Net.Support.C5.KeyValuePair-2.html">KeyValuePair</a>&lt;K, V&gt;</td>
<td><p>The entry</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.NoSuchItemException.html">NoSuchItemException</a></td>
<td><p>if there is no such entry. </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_ISortedDictionary_2_WeakSuccessor__0_.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.C5.ISortedDictionary%602.WeakSuccessor(%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/C5.Support.cs/#L5307">View Source</a>
</span>
<a id="Lucene_Net_Support_C5_ISortedDictionary_2_WeakSuccessor_" data-uid="Lucene.Net.Support.C5.ISortedDictionary`2.WeakSuccessor*"></a>
<h4 id="Lucene_Net_Support_C5_ISortedDictionary_2_WeakSuccessor__0_" data-uid="Lucene.Net.Support.C5.ISortedDictionary`2.WeakSuccessor(`0)">WeakSuccessor(K)</h4>
<div class="markdown level1 summary"><p>Find the entry with the least key greater than or equal to a given key.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">KeyValuePair&lt;K, V&gt; WeakSuccessor(K key)</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">K</span></td>
<td><span class="parametername">key</span></td>
<td><p>The key 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><a class="xref" href="Lucene.Net.Support.C5.KeyValuePair-2.html">KeyValuePair</a>&lt;K, V&gt;</td>
<td><p>The entry</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.NoSuchItemException.html">NoSuchItemException</a></td>
<td><p>if there is no such entry. </p>
</td>
</tr>
</tbody>
</table>
<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_ISortedDictionary_2.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.C5.ISortedDictionary%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" 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/#L5193" 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>