tune
This commit is contained in:
@@ -153,6 +153,139 @@ Class ListUtil
|
||||
</h2>
|
||||
|
||||
|
||||
<a id="Hi_Common_Collections_ListUtil_GetCeilBySeek_" data-uid="Hi.Common.Collections.ListUtil.GetCeilBySeek*"></a>
|
||||
|
||||
<h3 id="Hi_Common_Collections_ListUtil_GetCeilBySeek__2_System_Collections_Generic_IList___0____1_System_Func___0___1____0__System_Int32__System_Int32_Hi_Common_Collections_SeekDirection_" data-uid="Hi.Common.Collections.ListUtil.GetCeilBySeek``2(System.Collections.Generic.IList{``0},``1,System.Func{``0,``1},``0@,System.Int32@,System.Int32,Hi.Common.Collections.SeekDirection)">
|
||||
GetCeilBySeek<TItem, TKey>(IList<TItem>, TKey, Func<TItem, TKey>, out TItem, out int, int, SeekDirection)
|
||||
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Gets the ceil item by seeking with the specified direction.</p>
|
||||
</div>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public static SearchResult GetCeilBySeek<TItem, TKey>(this IList<TItem> src, TKey key, Func<TItem, TKey> getKeyFunc, out TItem ceilValue, out int ceilIndex, int seekingStartIndex, SeekDirection seekDirection = SeekDirection.Free) where TKey : IComparable<TKey></code></pre>
|
||||
</div>
|
||||
|
||||
<h4 class="section">Parameters</h4>
|
||||
<dl class="parameters">
|
||||
<dt><code>src</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a><TItem></dt>
|
||||
<dd><p>The source list.</p>
|
||||
</dd>
|
||||
<dt><code>key</code> <span class="xref">TKey</span></dt>
|
||||
<dd><p>The key to search for.</p>
|
||||
</dd>
|
||||
<dt><code>getKeyFunc</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-2">Func</a><TItem, TKey></dt>
|
||||
<dd><p>A function that extracts the key from an item.</p>
|
||||
</dd>
|
||||
<dt><code>ceilValue</code> <span class="xref">TItem</span></dt>
|
||||
<dd><p>The output ceil value.</p>
|
||||
</dd>
|
||||
<dt><code>ceilIndex</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
|
||||
<dd><p>The output ceil index.</p>
|
||||
</dd>
|
||||
<dt><code>seekingStartIndex</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
|
||||
<dd><p>The start index for seeking.</p>
|
||||
</dd>
|
||||
<dt><code>seekDirection</code> <a class="xref" href="Hi.Common.Collections.SeekDirection.html">SeekDirection</a></dt>
|
||||
<dd><p>The seek direction.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<h4 class="section">Returns</h4>
|
||||
<dl class="parameters">
|
||||
<dt><a class="xref" href="Hi.Common.SearchResult.html">SearchResult</a></dt>
|
||||
<dd><p>The search result.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<h4 class="section">Type Parameters</h4>
|
||||
<dl class="parameters">
|
||||
<dt><code>TItem</code></dt>
|
||||
<dd><p>The type of items in the list.</p>
|
||||
</dd>
|
||||
<dt><code>TKey</code></dt>
|
||||
<dd><p>The type of the key.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a id="Hi_Common_Collections_ListUtil_GetCeilIndexBySeek_" data-uid="Hi.Common.Collections.ListUtil.GetCeilIndexBySeek*"></a>
|
||||
|
||||
<h3 id="Hi_Common_Collections_ListUtil_GetCeilIndexBySeek__2_System_Collections_Generic_IList___0____1_System_Func___0___1__System_Int32__System_Int32_Hi_Common_Collections_SeekDirection_" data-uid="Hi.Common.Collections.ListUtil.GetCeilIndexBySeek``2(System.Collections.Generic.IList{``0},``1,System.Func{``0,``1},System.Int32@,System.Int32,Hi.Common.Collections.SeekDirection)">
|
||||
GetCeilIndexBySeek<TItem, TKey>(IList<TItem>, TKey, Func<TItem, TKey>, out int, int, SeekDirection)
|
||||
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Gets the ceil index by seeking with the specified direction.</p>
|
||||
</div>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public static SearchResult GetCeilIndexBySeek<TItem, TKey>(this IList<TItem> src, TKey key, Func<TItem, TKey> getKeyFunc, out int ceilIndex, int seekingStartIndex, SeekDirection seekDirection = SeekDirection.Free) where TKey : IComparable<TKey></code></pre>
|
||||
</div>
|
||||
|
||||
<h4 class="section">Parameters</h4>
|
||||
<dl class="parameters">
|
||||
<dt><code>src</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a><TItem></dt>
|
||||
<dd><p>The source list.</p>
|
||||
</dd>
|
||||
<dt><code>key</code> <span class="xref">TKey</span></dt>
|
||||
<dd><p>The key to search for.</p>
|
||||
</dd>
|
||||
<dt><code>getKeyFunc</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-2">Func</a><TItem, TKey></dt>
|
||||
<dd><p>A function that extracts the key from an item.</p>
|
||||
</dd>
|
||||
<dt><code>ceilIndex</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
|
||||
<dd><p>The output ceil index.</p>
|
||||
</dd>
|
||||
<dt><code>seekingStartIndex</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
|
||||
<dd><p>The start index for seeking.</p>
|
||||
</dd>
|
||||
<dt><code>seekDirection</code> <a class="xref" href="Hi.Common.Collections.SeekDirection.html">SeekDirection</a></dt>
|
||||
<dd><p>The seek direction.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<h4 class="section">Returns</h4>
|
||||
<dl class="parameters">
|
||||
<dt><a class="xref" href="Hi.Common.SearchResult.html">SearchResult</a></dt>
|
||||
<dd><p>The search result.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<h4 class="section">Type Parameters</h4>
|
||||
<dl class="parameters">
|
||||
<dt><code>TItem</code></dt>
|
||||
<dd><p>The type of items in the list.</p>
|
||||
</dd>
|
||||
<dt><code>TKey</code></dt>
|
||||
<dd><p>The type of the key.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4 class="section" id="Hi_Common_Collections_ListUtil_GetCeilIndexBySeek__2_System_Collections_Generic_IList___0____1_System_Func___0___1__System_Int32__System_Int32_Hi_Common_Collections_SeekDirection__remarks">Remarks</h4>
|
||||
<div class="markdown level1 remarks"><p>The <a class="xref" href="Hi.Common.Collections.SeekDirection.html#Hi_Common_Collections_SeekDirection_Free">Free</a> seek direction does not loss additional performance.
|
||||
The seek direction only effect the resulting value by the <code class="paramref">seekingStartIndex</code> bound.</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<a id="Hi_Common_Collections_ListUtil_GetCeilIndex_" data-uid="Hi.Common.Collections.ListUtil.GetCeilIndex*"></a>
|
||||
|
||||
<h3 id="Hi_Common_Collections_ListUtil_GetCeilIndex__2_System_Collections_Generic_IList___0____1_System_Func___0___1_System_Int32__System_Int32__" data-uid="Hi.Common.Collections.ListUtil.GetCeilIndex``2(System.Collections.Generic.IList{``0},``1,System.Func{``0,``1,System.Int32},System.Int32@)">
|
||||
@@ -165,7 +298,7 @@ Class ListUtil
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public static BinarySearchResult GetCeilIndex<Item, ItemKey>(this IList<Item> sortedItems, ItemKey key, Func<Item, ItemKey, int> comparingFunc, out int index)</code></pre>
|
||||
<pre><code class="lang-csharp hljs">public static SearchResult GetCeilIndex<Item, ItemKey>(this IList<Item> sortedItems, ItemKey key, Func<Item, ItemKey, int> comparingFunc, out int index)</code></pre>
|
||||
</div>
|
||||
|
||||
<h4 class="section">Parameters</h4>
|
||||
@@ -186,8 +319,8 @@ Class ListUtil
|
||||
|
||||
<h4 class="section">Returns</h4>
|
||||
<dl class="parameters">
|
||||
<dt><a class="xref" href="Hi.Common.BinarySearchResult.html">BinarySearchResult</a></dt>
|
||||
<dd><p>A <a class="xref" href="Hi.Common.BinarySearchResult.html">BinarySearchResult</a> indicating the result of the search.</p>
|
||||
<dt><a class="xref" href="Hi.Common.SearchResult.html">SearchResult</a></dt>
|
||||
<dd><p>A <a class="xref" href="Hi.Common.SearchResult.html">SearchResult</a> indicating the result of the search.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
@@ -222,7 +355,7 @@ Class ListUtil
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public static BinarySearchResult GetCeilIndex<TKey, Item>(this IList<Item> sortedItems, TKey keyQuantity, Func<Item, TKey> getKeyQuantityFunc, out int index) where TKey : IComparable<TKey></code></pre>
|
||||
<pre><code class="lang-csharp hljs">public static SearchResult GetCeilIndex<TKey, Item>(this IList<Item> sortedItems, TKey keyQuantity, Func<Item, TKey> getKeyQuantityFunc, out int index) where TKey : IComparable<TKey></code></pre>
|
||||
</div>
|
||||
|
||||
<h4 class="section">Parameters</h4>
|
||||
@@ -243,8 +376,8 @@ Class ListUtil
|
||||
|
||||
<h4 class="section">Returns</h4>
|
||||
<dl class="parameters">
|
||||
<dt><a class="xref" href="Hi.Common.BinarySearchResult.html">BinarySearchResult</a></dt>
|
||||
<dd><p>A <a class="xref" href="Hi.Common.BinarySearchResult.html">BinarySearchResult</a> indicating the result of the search.</p>
|
||||
<dt><a class="xref" href="Hi.Common.SearchResult.html">SearchResult</a></dt>
|
||||
<dd><p>A <a class="xref" href="Hi.Common.SearchResult.html">SearchResult</a> indicating the result of the search.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
@@ -279,7 +412,7 @@ Class ListUtil
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public static BinarySearchResult GetCeil<TKey, Item>(this IList<Item> sortedItems, TKey keyQuantity, Func<Item, TKey> getKeyQuantityFunc, out Item dst) where TKey : IComparable<TKey></code></pre>
|
||||
<pre><code class="lang-csharp hljs">public static SearchResult GetCeil<TKey, Item>(this IList<Item> sortedItems, TKey keyQuantity, Func<Item, TKey> getKeyQuantityFunc, out Item dst) where TKey : IComparable<TKey></code></pre>
|
||||
</div>
|
||||
|
||||
<h4 class="section">Parameters</h4>
|
||||
@@ -300,8 +433,8 @@ Class ListUtil
|
||||
|
||||
<h4 class="section">Returns</h4>
|
||||
<dl class="parameters">
|
||||
<dt><a class="xref" href="Hi.Common.BinarySearchResult.html">BinarySearchResult</a></dt>
|
||||
<dd><p>A <a class="xref" href="Hi.Common.BinarySearchResult.html">BinarySearchResult</a> indicating the result of the search.</p>
|
||||
<dt><a class="xref" href="Hi.Common.SearchResult.html">SearchResult</a></dt>
|
||||
<dd><p>A <a class="xref" href="Hi.Common.SearchResult.html">SearchResult</a> indicating the result of the search.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
@@ -324,6 +457,139 @@ Class ListUtil
|
||||
|
||||
|
||||
|
||||
<a id="Hi_Common_Collections_ListUtil_GetFloorBySeek_" data-uid="Hi.Common.Collections.ListUtil.GetFloorBySeek*"></a>
|
||||
|
||||
<h3 id="Hi_Common_Collections_ListUtil_GetFloorBySeek__2_System_Collections_Generic_IList___0____1_System_Func___0___1____0__System_Int32__System_Int32_Hi_Common_Collections_SeekDirection_" data-uid="Hi.Common.Collections.ListUtil.GetFloorBySeek``2(System.Collections.Generic.IList{``0},``1,System.Func{``0,``1},``0@,System.Int32@,System.Int32,Hi.Common.Collections.SeekDirection)">
|
||||
GetFloorBySeek<TItem, TKey>(IList<TItem>, TKey, Func<TItem, TKey>, out TItem, out int, int, SeekDirection)
|
||||
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Gets the floor item by seeking with the specified direction.</p>
|
||||
</div>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public static SearchResult GetFloorBySeek<TItem, TKey>(this IList<TItem> src, TKey key, Func<TItem, TKey> getKeyFunc, out TItem floorValue, out int floorIndex, int seekingStartIndex, SeekDirection seekDirection = SeekDirection.Free) where TKey : IComparable<TKey></code></pre>
|
||||
</div>
|
||||
|
||||
<h4 class="section">Parameters</h4>
|
||||
<dl class="parameters">
|
||||
<dt><code>src</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a><TItem></dt>
|
||||
<dd><p>The source list.</p>
|
||||
</dd>
|
||||
<dt><code>key</code> <span class="xref">TKey</span></dt>
|
||||
<dd><p>The key to search for.</p>
|
||||
</dd>
|
||||
<dt><code>getKeyFunc</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-2">Func</a><TItem, TKey></dt>
|
||||
<dd><p>A function that extracts the key from an item.</p>
|
||||
</dd>
|
||||
<dt><code>floorValue</code> <span class="xref">TItem</span></dt>
|
||||
<dd><p>The output floor value.</p>
|
||||
</dd>
|
||||
<dt><code>floorIndex</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
|
||||
<dd><p>The output floor index.</p>
|
||||
</dd>
|
||||
<dt><code>seekingStartIndex</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
|
||||
<dd><p>The start index for seeking.</p>
|
||||
</dd>
|
||||
<dt><code>seekDirection</code> <a class="xref" href="Hi.Common.Collections.SeekDirection.html">SeekDirection</a></dt>
|
||||
<dd><p>The seek direction.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<h4 class="section">Returns</h4>
|
||||
<dl class="parameters">
|
||||
<dt><a class="xref" href="Hi.Common.SearchResult.html">SearchResult</a></dt>
|
||||
<dd><p>The search result.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<h4 class="section">Type Parameters</h4>
|
||||
<dl class="parameters">
|
||||
<dt><code>TItem</code></dt>
|
||||
<dd><p>The type of items in the list.</p>
|
||||
</dd>
|
||||
<dt><code>TKey</code></dt>
|
||||
<dd><p>The type of the key.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a id="Hi_Common_Collections_ListUtil_GetFloorIndexBySeek_" data-uid="Hi.Common.Collections.ListUtil.GetFloorIndexBySeek*"></a>
|
||||
|
||||
<h3 id="Hi_Common_Collections_ListUtil_GetFloorIndexBySeek__2_System_Collections_Generic_IList___0____1_System_Func___0___1__System_Int32__System_Int32_Hi_Common_Collections_SeekDirection_" data-uid="Hi.Common.Collections.ListUtil.GetFloorIndexBySeek``2(System.Collections.Generic.IList{``0},``1,System.Func{``0,``1},System.Int32@,System.Int32,Hi.Common.Collections.SeekDirection)">
|
||||
GetFloorIndexBySeek<TItem, TKey>(IList<TItem>, TKey, Func<TItem, TKey>, out int, int, SeekDirection)
|
||||
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Gets the floor index by seeking with the specified direction.</p>
|
||||
</div>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public static SearchResult GetFloorIndexBySeek<TItem, TKey>(this IList<TItem> src, TKey key, Func<TItem, TKey> getKeyFunc, out int floorIndex, int seekingStartIndex, SeekDirection seekDirection = SeekDirection.Free) where TKey : IComparable<TKey></code></pre>
|
||||
</div>
|
||||
|
||||
<h4 class="section">Parameters</h4>
|
||||
<dl class="parameters">
|
||||
<dt><code>src</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a><TItem></dt>
|
||||
<dd><p>The source list.</p>
|
||||
</dd>
|
||||
<dt><code>key</code> <span class="xref">TKey</span></dt>
|
||||
<dd><p>The key to search for.</p>
|
||||
</dd>
|
||||
<dt><code>getKeyFunc</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-2">Func</a><TItem, TKey></dt>
|
||||
<dd><p>A function that extracts the key from an item.</p>
|
||||
</dd>
|
||||
<dt><code>floorIndex</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
|
||||
<dd><p>The output floor index.</p>
|
||||
</dd>
|
||||
<dt><code>seekingStartIndex</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
|
||||
<dd><p>The start index for seeking.</p>
|
||||
</dd>
|
||||
<dt><code>seekDirection</code> <a class="xref" href="Hi.Common.Collections.SeekDirection.html">SeekDirection</a></dt>
|
||||
<dd><p>The seek direction.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<h4 class="section">Returns</h4>
|
||||
<dl class="parameters">
|
||||
<dt><a class="xref" href="Hi.Common.SearchResult.html">SearchResult</a></dt>
|
||||
<dd><p>The search result.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<h4 class="section">Type Parameters</h4>
|
||||
<dl class="parameters">
|
||||
<dt><code>TItem</code></dt>
|
||||
<dd><p>The type of items in the list.</p>
|
||||
</dd>
|
||||
<dt><code>TKey</code></dt>
|
||||
<dd><p>The type of the key.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4 class="section" id="Hi_Common_Collections_ListUtil_GetFloorIndexBySeek__2_System_Collections_Generic_IList___0____1_System_Func___0___1__System_Int32__System_Int32_Hi_Common_Collections_SeekDirection__remarks">Remarks</h4>
|
||||
<div class="markdown level1 remarks"><p>The <a class="xref" href="Hi.Common.Collections.SeekDirection.html#Hi_Common_Collections_SeekDirection_Free">Free</a> seek direction does not loss additional performance.
|
||||
The seek direction only effect the resulting value by the <code class="paramref">seekingStartIndex</code> bound.</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<a id="Hi_Common_Collections_ListUtil_GetFloorIndex_" data-uid="Hi.Common.Collections.ListUtil.GetFloorIndex*"></a>
|
||||
|
||||
<h3 id="Hi_Common_Collections_ListUtil_GetFloorIndex__2_System_Collections_Generic_IList___0____1_System_Func___0___1_System_Int32__System_Int32__" data-uid="Hi.Common.Collections.ListUtil.GetFloorIndex``2(System.Collections.Generic.IList{``0},``1,System.Func{``0,``1,System.Int32},System.Int32@)">
|
||||
@@ -336,7 +602,7 @@ Class ListUtil
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public static BinarySearchResult GetFloorIndex<Item, ItemKey>(this IList<Item> sortedItems, ItemKey key, Func<Item, ItemKey, int> comparingFunc, out int index)</code></pre>
|
||||
<pre><code class="lang-csharp hljs">public static SearchResult GetFloorIndex<Item, ItemKey>(this IList<Item> sortedItems, ItemKey key, Func<Item, ItemKey, int> comparingFunc, out int index)</code></pre>
|
||||
</div>
|
||||
|
||||
<h4 class="section">Parameters</h4>
|
||||
@@ -357,8 +623,8 @@ Class ListUtil
|
||||
|
||||
<h4 class="section">Returns</h4>
|
||||
<dl class="parameters">
|
||||
<dt><a class="xref" href="Hi.Common.BinarySearchResult.html">BinarySearchResult</a></dt>
|
||||
<dd><p>A <a class="xref" href="Hi.Common.BinarySearchResult.html">BinarySearchResult</a> indicating the result of the search.</p>
|
||||
<dt><a class="xref" href="Hi.Common.SearchResult.html">SearchResult</a></dt>
|
||||
<dd><p>A <a class="xref" href="Hi.Common.SearchResult.html">SearchResult</a> indicating the result of the search.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
@@ -393,7 +659,7 @@ Class ListUtil
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public static BinarySearchResult GetFloorIndex<TKey, Item>(this IList<Item> sortedItems, TKey key, Func<Item, TKey> getKeyFunc, out int index) where TKey : IComparable<TKey></code></pre>
|
||||
<pre><code class="lang-csharp hljs">public static SearchResult GetFloorIndex<TKey, Item>(this IList<Item> sortedItems, TKey key, Func<Item, TKey> getKeyFunc, out int index) where TKey : IComparable<TKey></code></pre>
|
||||
</div>
|
||||
|
||||
<h4 class="section">Parameters</h4>
|
||||
@@ -414,8 +680,8 @@ Class ListUtil
|
||||
|
||||
<h4 class="section">Returns</h4>
|
||||
<dl class="parameters">
|
||||
<dt><a class="xref" href="Hi.Common.BinarySearchResult.html">BinarySearchResult</a></dt>
|
||||
<dd><p>A <a class="xref" href="Hi.Common.BinarySearchResult.html">BinarySearchResult</a> indicating the result of the search.</p>
|
||||
<dt><a class="xref" href="Hi.Common.SearchResult.html">SearchResult</a></dt>
|
||||
<dd><p>A <a class="xref" href="Hi.Common.SearchResult.html">SearchResult</a> indicating the result of the search.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
@@ -450,7 +716,7 @@ Class ListUtil
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public static BinarySearchResult GetFloor<TKey, Item>(this IList<Item> sortedItems, TKey keyQuantity, Func<Item, TKey> getKeyQuantityFunc, out Item dst) where TKey : IComparable<TKey></code></pre>
|
||||
<pre><code class="lang-csharp hljs">public static SearchResult GetFloor<TKey, Item>(this IList<Item> sortedItems, TKey keyQuantity, Func<Item, TKey> getKeyQuantityFunc, out Item dst) where TKey : IComparable<TKey></code></pre>
|
||||
</div>
|
||||
|
||||
<h4 class="section">Parameters</h4>
|
||||
@@ -471,8 +737,8 @@ Class ListUtil
|
||||
|
||||
<h4 class="section">Returns</h4>
|
||||
<dl class="parameters">
|
||||
<dt><a class="xref" href="Hi.Common.BinarySearchResult.html">BinarySearchResult</a></dt>
|
||||
<dd><p>A <a class="xref" href="Hi.Common.BinarySearchResult.html">BinarySearchResult</a> indicating the result of the search.</p>
|
||||
<dt><a class="xref" href="Hi.Common.SearchResult.html">SearchResult</a></dt>
|
||||
<dd><p>A <a class="xref" href="Hi.Common.SearchResult.html">SearchResult</a> indicating the result of the search.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
@@ -1175,7 +1441,7 @@ with the list items.</p>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public static BinarySearchResult GetNearestIndex<TItem, TItemKey>(this IList<TItem> src, TItemKey key, Func<TItem, TItemKey, double> itemToKeyDistanceFunc, out int index)</code></pre>
|
||||
<pre><code class="lang-csharp hljs">public static SearchResult GetNearestIndex<TItem, TItemKey>(this IList<TItem> src, TItemKey key, Func<TItem, TItemKey, double> itemToKeyDistanceFunc, out int index)</code></pre>
|
||||
</div>
|
||||
|
||||
<h4 class="section">Parameters</h4>
|
||||
@@ -1196,7 +1462,7 @@ with the list items.</p>
|
||||
|
||||
<h4 class="section">Returns</h4>
|
||||
<dl class="parameters">
|
||||
<dt><a class="xref" href="Hi.Common.BinarySearchResult.html">BinarySearchResult</a></dt>
|
||||
<dt><a class="xref" href="Hi.Common.SearchResult.html">SearchResult</a></dt>
|
||||
<dd><p>A BinarySearchResult indicating the result of the search</p>
|
||||
</dd>
|
||||
</dl>
|
||||
@@ -1232,7 +1498,7 @@ with the list items.</p>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public static BinarySearchResult GetNearestIndex<TItem, TItemKey>(this IList<TItem> src, TItemKey key, Func<TItem, TItemKey, int> itemCompareToKeyFunc, Func<TItem, TItemKey, double> itemToKeyDistanceFunc, out int index)</code></pre>
|
||||
<pre><code class="lang-csharp hljs">public static SearchResult GetNearestIndex<TItem, TItemKey>(this IList<TItem> src, TItemKey key, Func<TItem, TItemKey, int> itemCompareToKeyFunc, Func<TItem, TItemKey, double> itemToKeyDistanceFunc, out int index)</code></pre>
|
||||
</div>
|
||||
|
||||
<h4 class="section">Parameters</h4>
|
||||
@@ -1256,7 +1522,7 @@ with the list items.</p>
|
||||
|
||||
<h4 class="section">Returns</h4>
|
||||
<dl class="parameters">
|
||||
<dt><a class="xref" href="Hi.Common.BinarySearchResult.html">BinarySearchResult</a></dt>
|
||||
<dt><a class="xref" href="Hi.Common.SearchResult.html">SearchResult</a></dt>
|
||||
<dd><p>A BinarySearchResult indicating the result of the search</p>
|
||||
</dd>
|
||||
</dl>
|
||||
@@ -1718,6 +1984,51 @@ with the list items.</p>
|
||||
|
||||
|
||||
|
||||
<a id="Hi_Common_Collections_ListUtil_GetSubList_" data-uid="Hi.Common.Collections.ListUtil.GetSubList*"></a>
|
||||
|
||||
<h3 id="Hi_Common_Collections_ListUtil_GetSubList__1_System_Collections_Generic_IList___0__System_Int32_System_Int32_" data-uid="Hi.Common.Collections.ListUtil.GetSubList``1(System.Collections.Generic.IList{``0},System.Int32,System.Int32)">
|
||||
GetSubList<TItem>(IList<TItem>, int, int)
|
||||
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"></div>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public static SubList<TItem> GetSubList<TItem>(this IList<TItem> src, int beginIndex, int endIndex)</code></pre>
|
||||
</div>
|
||||
|
||||
<h4 class="section">Parameters</h4>
|
||||
<dl class="parameters">
|
||||
<dt><code>src</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a><TItem></dt>
|
||||
<dd></dd>
|
||||
<dt><code>beginIndex</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
|
||||
<dd></dd>
|
||||
<dt><code>endIndex</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
|
||||
<dd></dd>
|
||||
</dl>
|
||||
|
||||
<h4 class="section">Returns</h4>
|
||||
<dl class="parameters">
|
||||
<dt><a class="xref" href="Hi.Common.Collections.SubList-1.html">SubList</a><TItem></dt>
|
||||
<dd></dd>
|
||||
</dl>
|
||||
|
||||
<h4 class="section">Type Parameters</h4>
|
||||
<dl class="parameters">
|
||||
<dt><code>TItem</code></dt>
|
||||
<dd></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a id="Hi_Common_Collections_ListUtil_Swap_" data-uid="Hi.Common.Collections.ListUtil.Swap*"></a>
|
||||
|
||||
<h3 id="Hi_Common_Collections_ListUtil_Swap__1_System_Collections_Generic_IList___0__System_Int32_System_Int32_" data-uid="Hi.Common.Collections.ListUtil.Swap``1(System.Collections.Generic.IList{``0},System.Int32,System.Int32)">
|
||||
|
||||
Reference in New Issue
Block a user