1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-10 03:45:41 +00:00
X10D/api/X10D.Linq.EnumerableExtensions.html

668 lines
31 KiB
HTML
Raw Permalink Normal View History

2024-06-12 14:17:02 +01:00
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class EnumerableExtensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class EnumerableExtensions
| X10D ">
<meta name="generator" content="docfx 2.56.7.0">
<link rel="shortcut icon" href="../images/favicon.png">
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/styles/night-owl.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.7.2/font/bootstrap-icons.css" integrity="sha384-EvBWSlnoFgZlXJvpzS+MAUEjvN7+gcCwH+qh7GRFOGgZO0PuwOFro7qPOJnLfe7l" crossorigin="anonymous">
<link rel="stylesheet" href="../styles/config.css">
<link rel="stylesheet" href="../styles/discord.css">
<link rel="stylesheet" href="../styles/singulink.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="../">
<meta property="docfx:newtab" content="true">
</head>
<body>
<div class="top-navbar">
<a class="burger-icon" onclick="toggleMenu()">
<svg name="Hamburger" style="vertical-align: middle;" width="34" height="34" viewbox="0 0 24 24"><path fill="currentColor" fill-rule="evenodd" clip-rule="evenodd" d="M20 6H4V9H20V6ZM4 10.999H20V13.999H4V10.999ZM4 15.999H20V18.999H4V15.999Z"></path></svg>
</a>
<a class="brand" href="../index.html">
<img src="../images/favicon.png" alt="X10D" class="logomark">
<span class="brand-title">X10D</span>
</a> </div>
<div class="body-content">
<div id="blackout" class="blackout" onclick="toggleMenu()"></div>
<nav id="sidebar" role="navigation">
<div class="sidebar">
<div>
<div class="mobile-hide">
<a class="brand" href="../index.html">
<img src="../images/favicon.png" alt="X10D" class="logomark">
<span class="brand-title">X10D</span>
</a> </div>
<div class="sidesearch">
<form id="search" role="search" class="search">
<i class="bi bi-search search-icon"></i>
<input type="text" id="search-query" placeholder="Search" autocomplete="off">
</form>
</div>
<div id="navbar">
</div>
</div> <div class="sidebar-item-separator"></div>
<div id="sidetoggle">
<div id="sidetoc"></div>
</div>
</div>
<div class="footer">
<strong>DocFX + Singulink = ♥</strong>
</div> </nav>
<main class="main-panel">
<div id="search-results" style="display: none;">
<h1 class="search-list">Search Results for <span></span></h1>
<div class="sr-items">
<p><i class="bi bi-hourglass-split index-loading"></i></p>
</div>
<ul id="pagination" data-first="First" data-prev="Previous" data-next="Next" data-last="Last"></ul>
</div>
<div role="main" class="hide-when-search">
<div class="subnav navbar navbar-default">
<div class="container hide-when-search" id="breadcrumb">
<ul class="breadcrumb">
<li></li>
</ul>
</div>
</div>
<article class="content wrap" id="_content" data-uid="X10D.Linq.EnumerableExtensions">
<h1 id="X10D_Linq_EnumerableExtensions" data-uid="X10D.Linq.EnumerableExtensions" class="text-break">Class EnumerableExtensions
</h1>
<div class="markdown level0 summary"><p>LINQ-inspired extension methods for <see cref="!:IEnumerable&lt;T>"></see>.</p>
</div>
<div class="markdown level0 conceptual"></div>
<div class="inheritance">
<h5>Inheritance</h5>
<div class="level0"><span class="xref">System.Object</span></div>
<div class="level1"><span class="xref">EnumerableExtensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.Linq.html">X10D.Linq</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_Linq_EnumerableExtensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class EnumerableExtensions : object</code></pre>
</div>
<h3 id="methods">Methods
</h3>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Linq_EnumerableExtensions_Except__1_IEnumerable___0____0_.md&amp;value=---%0Auid%3A%20X10D.Linq.EnumerableExtensions.Except%60%601(IEnumerable%7B%60%600%7D%2C%60%600)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Linq/EnumerableExtensions.cs/#L21">View Source</a>
</span>
<a id="X10D_Linq_EnumerableExtensions_Except_" data-uid="X10D.Linq.EnumerableExtensions.Except*"></a>
<h4 id="X10D_Linq_EnumerableExtensions_Except__1_IEnumerable___0____0_" data-uid="X10D.Linq.EnumerableExtensions.Except``1(IEnumerable{``0},``0)">Except&lt;TSource&gt;(IEnumerable&lt;TSource&gt;, TSource)</h4>
<div class="markdown level1 summary"><p>Filters a sequence of values by omitting elements that match a specified value.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static IEnumerable&lt;TSource&gt; Except&lt;TSource&gt;(this IEnumerable&lt;TSource&gt; source, TSource item)</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">IEnumerable</span>&lt;TSource&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>An <see cref="!:IEnumerable&lt;T>"></see> to filter.</p>
</td>
</tr>
<tr>
<td><span class="xref">TSource</span></td>
<td><span class="parametername">item</span></td>
<td><p>The value to omit.</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">IEnumerable</span>&lt;TSource&gt;</td>
<td><p>An <see cref="!:IEnumerable&lt;T>"></see> that contains elements from the input sequence that do not match the specified
value.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="typeParameters">Type Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="parametername">TSource</span></td>
<td><p>The type of the elements of <code data-dev-comment-type="paramref" class="paramref">source</code>.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Linq_EnumerableExtensions_MinMax__1_IEnumerable___0__.md&amp;value=---%0Auid%3A%20X10D.Linq.EnumerableExtensions.MinMax%60%601(IEnumerable%7B%60%600%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Linq/EnumerableExtensions.cs/#L39">View Source</a>
</span>
<a id="X10D_Linq_EnumerableExtensions_MinMax_" data-uid="X10D.Linq.EnumerableExtensions.MinMax*"></a>
<h4 id="X10D_Linq_EnumerableExtensions_MinMax__1_IEnumerable___0__" data-uid="X10D.Linq.EnumerableExtensions.MinMax``1(IEnumerable{``0})">MinMax&lt;T&gt;(IEnumerable&lt;T&gt;)</h4>
<div class="markdown level1 summary"><p>Returns the minimum and maximum values in a sequence of values.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static (T Minimum, T Maximum) MinMax&lt;T&gt;(this IEnumerable&lt;T&gt; source)</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">IEnumerable</span>&lt;T&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>A sequence of values to determine the minimum and maximum values of.</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.ValueTuple</span>&lt;T, T&gt;</td>
<td><p>A tuple containing the minimum and maximum values in <code data-dev-comment-type="paramref" class="paramref">source</code>.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="typeParameters">Type Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="parametername">T</span></td>
<td><p>The type of the elements in <code data-dev-comment-type="paramref" class="paramref">source</code>.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Linq_EnumerableExtensions_MinMax__1_IEnumerable___0__System_Nullable_IComparer___0___.md&amp;value=---%0Auid%3A%20X10D.Linq.EnumerableExtensions.MinMax%60%601(IEnumerable%7B%60%600%7D%2CSystem.Nullable%7BIComparer%7B%60%600%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/oliverbooth/X10D/blob/main/X10D/src/Linq/EnumerableExtensions.cs/#L58">View Source</a>
</span>
<a id="X10D_Linq_EnumerableExtensions_MinMax_" data-uid="X10D.Linq.EnumerableExtensions.MinMax*"></a>
<h4 id="X10D_Linq_EnumerableExtensions_MinMax__1_IEnumerable___0__System_Nullable_IComparer___0___" data-uid="X10D.Linq.EnumerableExtensions.MinMax``1(IEnumerable{``0},System.Nullable{IComparer{``0}})">MinMax&lt;T&gt;(IEnumerable&lt;T&gt;, Nullable&lt;IComparer&lt;T&gt;&gt;)</h4>
<div class="markdown level1 summary"><p>Returns the minimum and maximum values in a sequence of values, using a specified comparer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static (T Minimum, T Maximum) MinMax&lt;T&gt;(this IEnumerable&lt;T&gt; source, IComparer&lt;T&gt;? comparer)</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">IEnumerable</span>&lt;T&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>A sequence of values to determine the minimum and maximum values of.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Nullable</span>&lt;<span class="xref">IComparer</span>&lt;T&gt;&gt;</td>
<td><span class="parametername">comparer</span></td>
<td><p>The comparer which shall be used to compare each element in the sequence.</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.ValueTuple</span>&lt;T, T&gt;</td>
<td><p>A tuple containing the minimum and maximum values in <code data-dev-comment-type="paramref" class="paramref">source</code>.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="typeParameters">Type Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="parametername">T</span></td>
<td><p>The type of the elements in <code data-dev-comment-type="paramref" class="paramref">source</code>.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Linq_EnumerableExtensions_MinMax__2_IEnumerable___0__Func___0___1__.md&amp;value=---%0Auid%3A%20X10D.Linq.EnumerableExtensions.MinMax%60%602(IEnumerable%7B%60%600%7D%2CFunc%7B%60%600%2C%60%601%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Linq/EnumerableExtensions.cs/#L116">View Source</a>
</span>
<a id="X10D_Linq_EnumerableExtensions_MinMax_" data-uid="X10D.Linq.EnumerableExtensions.MinMax*"></a>
<h4 id="X10D_Linq_EnumerableExtensions_MinMax__2_IEnumerable___0__Func___0___1__" data-uid="X10D.Linq.EnumerableExtensions.MinMax``2(IEnumerable{``0},Func{``0,``1})">MinMax&lt;TSource, TResult&gt;(IEnumerable&lt;TSource&gt;, Func&lt;TSource, TResult&gt;)</h4>
<div class="markdown level1 summary"><p>Invokes a transform function on each element of a sequence of elements and returns the minimum and maximum values.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static (TResult Minimum, TResult Maximum) MinMax&lt;TSource, TResult&gt;(this IEnumerable&lt;TSource&gt; source, Func&lt;TSource, TResult&gt; selector)</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">IEnumerable</span>&lt;TSource&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>A sequence of values to determine the minimum and maximum values of.</p>
</td>
</tr>
<tr>
<td><span class="xref">Func</span>&lt;TSource, TResult&gt;</td>
<td><span class="parametername">selector</span></td>
<td><p>A transform function to apply to each element.</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.ValueTuple</span>&lt;TResult, TResult&gt;</td>
<td><p>A tuple containing the minimum and maximum values in <code data-dev-comment-type="paramref" class="paramref">source</code>.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="typeParameters">Type Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="parametername">TSource</span></td>
<td><p>The type of the elements in <code data-dev-comment-type="paramref" class="paramref">source</code>.</p>
</td>
</tr>
<tr>
<td><span class="parametername">TResult</span></td>
<td><p>The type of the elements to compare.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Linq_EnumerableExtensions_MinMax__2_IEnumerable___0__Func___0___1__System_Nullable_IComparer___1___.md&amp;value=---%0Auid%3A%20X10D.Linq.EnumerableExtensions.MinMax%60%602(IEnumerable%7B%60%600%7D%2CFunc%7B%60%600%2C%60%601%7D%2CSystem.Nullable%7BIComparer%7B%60%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/oliverbooth/X10D/blob/main/X10D/src/Linq/EnumerableExtensions.cs/#L144">View Source</a>
</span>
<a id="X10D_Linq_EnumerableExtensions_MinMax_" data-uid="X10D.Linq.EnumerableExtensions.MinMax*"></a>
<h4 id="X10D_Linq_EnumerableExtensions_MinMax__2_IEnumerable___0__Func___0___1__System_Nullable_IComparer___1___" data-uid="X10D.Linq.EnumerableExtensions.MinMax``2(IEnumerable{``0},Func{``0,``1},System.Nullable{IComparer{``1}})">MinMax&lt;TSource, TResult&gt;(IEnumerable&lt;TSource&gt;, Func&lt;TSource, TResult&gt;, Nullable&lt;IComparer&lt;TResult&gt;&gt;)</h4>
<div class="markdown level1 summary"><p>Invokes a transform function on each element of a sequence of elements and returns the minimum and maximum values,
using a specified comparer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static (TResult Minimum, TResult Maximum) MinMax&lt;TSource, TResult&gt;(this IEnumerable&lt;TSource&gt; source, Func&lt;TSource, TResult&gt; selector, IComparer&lt;TResult&gt;? comparer)</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">IEnumerable</span>&lt;TSource&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>A sequence of values to determine the minimum and maximum values of.</p>
</td>
</tr>
<tr>
<td><span class="xref">Func</span>&lt;TSource, TResult&gt;</td>
<td><span class="parametername">selector</span></td>
<td><p>A transform function to apply to each element.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Nullable</span>&lt;<span class="xref">IComparer</span>&lt;TResult&gt;&gt;</td>
<td><span class="parametername">comparer</span></td>
<td><p>The comparer which shall be used to compare each element in the sequence.</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.ValueTuple</span>&lt;TResult, TResult&gt;</td>
<td><p>A tuple containing the minimum and maximum values in <code data-dev-comment-type="paramref" class="paramref">source</code>.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="typeParameters">Type Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="parametername">TSource</span></td>
<td><p>The type of the elements in <code data-dev-comment-type="paramref" class="paramref">source</code>.</p>
</td>
</tr>
<tr>
<td><span class="parametername">TResult</span></td>
<td><p>The type of the elements to compare.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Linq_EnumerableExtensions_MinMaxBy__2_IEnumerable___0__Func___0___1__.md&amp;value=---%0Auid%3A%20X10D.Linq.EnumerableExtensions.MinMaxBy%60%602(IEnumerable%7B%60%600%7D%2CFunc%7B%60%600%2C%60%601%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Linq/EnumerableExtensions.cs/#L209">View Source</a>
</span>
<a id="X10D_Linq_EnumerableExtensions_MinMaxBy_" data-uid="X10D.Linq.EnumerableExtensions.MinMaxBy*"></a>
<h4 id="X10D_Linq_EnumerableExtensions_MinMaxBy__2_IEnumerable___0__Func___0___1__" data-uid="X10D.Linq.EnumerableExtensions.MinMaxBy``2(IEnumerable{``0},Func{``0,``1})">MinMaxBy&lt;TSource, TResult&gt;(IEnumerable&lt;TSource&gt;, Func&lt;TSource, TResult&gt;)</h4>
<div class="markdown level1 summary"><p>Returns the minimum and maximum values in a sequence according to a specified key selector function.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static (TSource Minimum, TSource Maximum) MinMaxBy&lt;TSource, TResult&gt;(this IEnumerable&lt;TSource&gt; source, Func&lt;TSource, TResult&gt; keySelector)</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">IEnumerable</span>&lt;TSource&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>A sequence of values to determine the minimum and maximum values of.</p>
</td>
</tr>
<tr>
<td><span class="xref">Func</span>&lt;TSource, TResult&gt;</td>
<td><span class="parametername">keySelector</span></td>
<td><p>A function to extract the key for each element.</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.ValueTuple</span>&lt;TSource, TSource&gt;</td>
<td><p>A tuple containing the minimum and maximum values in <code data-dev-comment-type="paramref" class="paramref">source</code>.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="typeParameters">Type Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="parametername">TSource</span></td>
<td><p>The type of the elements in <code data-dev-comment-type="paramref" class="paramref">source</code>.</p>
</td>
</tr>
<tr>
<td><span class="parametername">TResult</span></td>
<td><p>The type of the elements to compare.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Linq_EnumerableExtensions_MinMaxBy__2_IEnumerable___0__Func___0___1__System_Nullable_IComparer___1___.md&amp;value=---%0Auid%3A%20X10D.Linq.EnumerableExtensions.MinMaxBy%60%602(IEnumerable%7B%60%600%7D%2CFunc%7B%60%600%2C%60%601%7D%2CSystem.Nullable%7BIComparer%7B%60%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/oliverbooth/X10D/blob/main/X10D/src/Linq/EnumerableExtensions.cs/#L236">View Source</a>
</span>
<a id="X10D_Linq_EnumerableExtensions_MinMaxBy_" data-uid="X10D.Linq.EnumerableExtensions.MinMaxBy*"></a>
<h4 id="X10D_Linq_EnumerableExtensions_MinMaxBy__2_IEnumerable___0__Func___0___1__System_Nullable_IComparer___1___" data-uid="X10D.Linq.EnumerableExtensions.MinMaxBy``2(IEnumerable{``0},Func{``0,``1},System.Nullable{IComparer{``1}})">MinMaxBy&lt;TSource, TResult&gt;(IEnumerable&lt;TSource&gt;, Func&lt;TSource, TResult&gt;, Nullable&lt;IComparer&lt;TResult&gt;&gt;)</h4>
<div class="markdown level1 summary"><p>Returns the minimum and maximum values in a sequence according to a specified key selector function.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static (TSource Minimum, TSource Maximum) MinMaxBy&lt;TSource, TResult&gt;(this IEnumerable&lt;TSource&gt; source, Func&lt;TSource, TResult&gt; keySelector, IComparer&lt;TResult&gt;? comparer)</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">IEnumerable</span>&lt;TSource&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>A sequence of values to determine the minimum and maximum values of.</p>
</td>
</tr>
<tr>
<td><span class="xref">Func</span>&lt;TSource, TResult&gt;</td>
<td><span class="parametername">keySelector</span></td>
<td><p>A function to extract the key for each element.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Nullable</span>&lt;<span class="xref">IComparer</span>&lt;TResult&gt;&gt;</td>
<td><span class="parametername">comparer</span></td>
<td><p>The comparer which shall be used to compare each element in the sequence.</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.ValueTuple</span>&lt;TSource, TSource&gt;</td>
<td><p>A tuple containing the minimum and maximum values in <code data-dev-comment-type="paramref" class="paramref">source</code>.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="typeParameters">Type Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="parametername">TSource</span></td>
<td><p>The type of the elements in <code data-dev-comment-type="paramref" class="paramref">source</code>.</p>
</td>
</tr>
<tr>
<td><span class="parametername">TResult</span></td>
<td><p>The type of the elements to compare.</p>
</td>
</tr>
</tbody>
</table>
</article>
</div>
<div class="copyright-footer">
<span>&#169; Singulink. All rights reserved.</span>
</div>
</main>
</div>
<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/highlight.min.js"></script>
<script type="text/javascript" src="../styles/jquery.twbsPagination.js"></script>
<script type="text/javascript" src="../styles/url.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/anchor-js/anchor.min.js"></script>
<script type="text/javascript" src="../styles/docfx.js"></script>
<script type="text/javascript" src="../styles/singulink.js"></script>
<script type="text/javascript" src="../styles/main.js"></script> </body>
</html>