1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-22 01:08:48 +00:00

Deploy to GitHub Pages

This commit is contained in:
oliverbooth 2023-08-24 00:56:26 +00:00
commit c81b61ea42
206 changed files with 124715 additions and 0 deletions

View File

@ -0,0 +1,369 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class ArrayExtensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class ArrayExtensions
| 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.Collections.ArrayExtensions">
<h1 id="X10D_Collections_ArrayExtensions" data-uid="X10D.Collections.ArrayExtensions" class="text-break">Class ArrayExtensions
</h1>
<div class="markdown level0 summary"><p>Extension methods for <see cref="!:Array"></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">ArrayExtensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.Collections.html">X10D.Collections</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_Collections_ArrayExtensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class ArrayExtensions : 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_Collections_ArrayExtensions_AsReadOnly__1___0___.md&amp;value=---%0Auid%3A%20X10D.Collections.ArrayExtensions.AsReadOnly%60%601(%60%600%5B%5D)%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/Collections/ArrayExtensions.cs/#L17">View Source</a>
</span>
<a id="X10D_Collections_ArrayExtensions_AsReadOnly_" data-uid="X10D.Collections.ArrayExtensions.AsReadOnly*"></a>
<h4 id="X10D_Collections_ArrayExtensions_AsReadOnly__1___0___" data-uid="X10D.Collections.ArrayExtensions.AsReadOnly``1(``0[])">AsReadOnly&lt;T&gt;(T[])</h4>
<div class="markdown level1 summary"><p>Returns a read-only wrapper for the array.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static IReadOnlyCollection&lt;T&gt; AsReadOnly&lt;T&gt;(this T[] array)</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>T[]</td>
<td><span class="parametername">array</span></td>
<td><p>The one-dimensional, zero-based array to wrap in a read-only wrapper.</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">IReadOnlyCollection</span>&lt;T&gt;</td>
<td><p>A <see cref="!:IReadOnlyCollection&lt;T>"></see> wrapper for the specified array.</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 the array.</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_Collections_ArrayExtensions_Clear__1___0___.md&amp;value=---%0Auid%3A%20X10D.Collections.ArrayExtensions.Clear%60%601(%60%600%5B%5D)%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/Collections/ArrayExtensions.cs/#L38">View Source</a>
</span>
<a id="X10D_Collections_ArrayExtensions_Clear_" data-uid="X10D.Collections.ArrayExtensions.Clear*"></a>
<h4 id="X10D_Collections_ArrayExtensions_Clear__1___0___" data-uid="X10D.Collections.ArrayExtensions.Clear``1(``0[])">Clear&lt;T&gt;(T[])</h4>
<div class="markdown level1 summary"><p>Clears the contents of an array.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static void Clear&lt;T&gt;(this T[] array)</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>T[]</td>
<td><span class="parametername">array</span></td>
<td><p>The array to clear.</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 the array.</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_Collections_ArrayExtensions_Clear__1___0___Range_.md&amp;value=---%0Auid%3A%20X10D.Collections.ArrayExtensions.Clear%60%601(%60%600%5B%5D%2CRange)%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/Collections/ArrayExtensions.cs/#L50">View Source</a>
</span>
<a id="X10D_Collections_ArrayExtensions_Clear_" data-uid="X10D.Collections.ArrayExtensions.Clear*"></a>
<h4 id="X10D_Collections_ArrayExtensions_Clear__1___0___Range_" data-uid="X10D.Collections.ArrayExtensions.Clear``1(``0[],Range)">Clear&lt;T&gt;(T[], Range)</h4>
<div class="markdown level1 summary"><p>Sets a range of elements in an array to the default value of each element type.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static void Clear&lt;T&gt;(this T[] array, Range range)</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>T[]</td>
<td><span class="parametername">array</span></td>
<td><p>The array whose elements need to be cleared.</p>
</td>
</tr>
<tr>
<td><span class="xref">Range</span></td>
<td><span class="parametername">range</span></td>
<td><p>A range defining the start index and number of elements to clear.</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 the array.</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_Collections_ArrayExtensions_Clear__1___0___System_Int32_System_Int32_.md&amp;value=---%0Auid%3A%20X10D.Collections.ArrayExtensions.Clear%60%601(%60%600%5B%5D%2CSystem.Int32%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Collections/ArrayExtensions.cs/#L80">View Source</a>
</span>
<a id="X10D_Collections_ArrayExtensions_Clear_" data-uid="X10D.Collections.ArrayExtensions.Clear*"></a>
<h4 id="X10D_Collections_ArrayExtensions_Clear__1___0___System_Int32_System_Int32_" data-uid="X10D.Collections.ArrayExtensions.Clear``1(``0[],System.Int32,System.Int32)">Clear&lt;T&gt;(T[], Int32, Int32)</h4>
<div class="markdown level1 summary"><p>Sets a range of elements in an array to the default value of each element type.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static void Clear&lt;T&gt;(this T[] array, int index, int length)</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>T[]</td>
<td><span class="parametername">array</span></td>
<td><p>The array whose elements need to be cleared.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">index</span></td>
<td><p>The starting index of the range of elements to clear.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">length</span></td>
<td><p>The number of elements to clear.</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 the array.</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>

View File

@ -0,0 +1,335 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class BoolListExtensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class BoolListExtensions
| 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.Collections.BoolListExtensions">
<h1 id="X10D_Collections_BoolListExtensions" data-uid="X10D.Collections.BoolListExtensions" class="text-break">Class BoolListExtensions
</h1>
<div class="markdown level0 summary"><p>Collection-related extension methods for <see cref="!:IReadOnlyList&lt;T>"></see> of <see cref="!:System.Boolean"></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">BoolListExtensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.Collections.html">X10D.Collections</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_Collections_BoolListExtensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class BoolListExtensions : 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_Collections_BoolListExtensions_PackByte_IReadOnlyList_System_Boolean__.md&amp;value=---%0Auid%3A%20X10D.Collections.BoolListExtensions.PackByte(IReadOnlyList%7BSystem.Boolean%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/Collections/BoolListExtensions.cs/#L18">View Source</a>
</span>
<a id="X10D_Collections_BoolListExtensions_PackByte_" data-uid="X10D.Collections.BoolListExtensions.PackByte*"></a>
<h4 id="X10D_Collections_BoolListExtensions_PackByte_IReadOnlyList_System_Boolean__" data-uid="X10D.Collections.BoolListExtensions.PackByte(IReadOnlyList{System.Boolean})">PackByte(IReadOnlyList&lt;Boolean&gt;)</h4>
<div class="markdown level1 summary"><p>Packs a collection of booleans into a <see cref="!:System.Byte"></see>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static byte PackByte(this IReadOnlyList&lt;bool&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">IReadOnlyList</span>&lt;<span class="xref">System.Boolean</span>&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>The collection of booleans to pack.</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.Byte</span></td>
<td><p>An 8-bit unsigned integer containing the packed booleans.</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_Collections_BoolListExtensions_PackInt16_IReadOnlyList_System_Boolean__.md&amp;value=---%0Auid%3A%20X10D.Collections.BoolListExtensions.PackInt16(IReadOnlyList%7BSystem.Boolean%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/Collections/BoolListExtensions.cs/#L52">View Source</a>
</span>
<a id="X10D_Collections_BoolListExtensions_PackInt16_" data-uid="X10D.Collections.BoolListExtensions.PackInt16*"></a>
<h4 id="X10D_Collections_BoolListExtensions_PackInt16_IReadOnlyList_System_Boolean__" data-uid="X10D.Collections.BoolListExtensions.PackInt16(IReadOnlyList{System.Boolean})">PackInt16(IReadOnlyList&lt;Boolean&gt;)</h4>
<div class="markdown level1 summary"><p>Packs a collection of booleans into a <see cref="!:System.Int16"></see>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static short PackInt16(this IReadOnlyList&lt;bool&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">IReadOnlyList</span>&lt;<span class="xref">System.Boolean</span>&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>The collection of booleans to pack.</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.Int16</span></td>
<td><p>A 16-bit signed integer containing the packed booleans.</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_Collections_BoolListExtensions_PackInt32_IReadOnlyList_System_Boolean__.md&amp;value=---%0Auid%3A%20X10D.Collections.BoolListExtensions.PackInt32(IReadOnlyList%7BSystem.Boolean%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/Collections/BoolListExtensions.cs/#L86">View Source</a>
</span>
<a id="X10D_Collections_BoolListExtensions_PackInt32_" data-uid="X10D.Collections.BoolListExtensions.PackInt32*"></a>
<h4 id="X10D_Collections_BoolListExtensions_PackInt32_IReadOnlyList_System_Boolean__" data-uid="X10D.Collections.BoolListExtensions.PackInt32(IReadOnlyList{System.Boolean})">PackInt32(IReadOnlyList&lt;Boolean&gt;)</h4>
<div class="markdown level1 summary"><p>Packs a collection of booleans into a <see cref="!:System.Int32"></see>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static int PackInt32(this IReadOnlyList&lt;bool&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">IReadOnlyList</span>&lt;<span class="xref">System.Boolean</span>&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>The collection of booleans to pack.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>A 32-bit signed integer containing the packed booleans.</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_Collections_BoolListExtensions_PackInt64_IReadOnlyList_System_Boolean__.md&amp;value=---%0Auid%3A%20X10D.Collections.BoolListExtensions.PackInt64(IReadOnlyList%7BSystem.Boolean%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/Collections/BoolListExtensions.cs/#L120">View Source</a>
</span>
<a id="X10D_Collections_BoolListExtensions_PackInt64_" data-uid="X10D.Collections.BoolListExtensions.PackInt64*"></a>
<h4 id="X10D_Collections_BoolListExtensions_PackInt64_IReadOnlyList_System_Boolean__" data-uid="X10D.Collections.BoolListExtensions.PackInt64(IReadOnlyList{System.Boolean})">PackInt64(IReadOnlyList&lt;Boolean&gt;)</h4>
<div class="markdown level1 summary"><p>Packs a collection of booleans into a <see cref="!:System.Int64"></see>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static long PackInt64(this IReadOnlyList&lt;bool&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">IReadOnlyList</span>&lt;<span class="xref">System.Boolean</span>&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>The collection of booleans to pack.</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.Int64</span></td>
<td><p>A 64-bit signed integer containing the packed booleans.</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>

View File

@ -0,0 +1,225 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class ByteExtensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class ByteExtensions
| 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.Collections.ByteExtensions">
<h1 id="X10D_Collections_ByteExtensions" data-uid="X10D.Collections.ByteExtensions" class="text-break">Class ByteExtensions
</h1>
<div class="markdown level0 summary"><p>Collection-related extension methods for <see cref="!:System.Byte"></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">ByteExtensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.Collections.html">X10D.Collections</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_Collections_ByteExtensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class ByteExtensions : 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_Collections_ByteExtensions_Unpack_System_Byte_.md&amp;value=---%0Auid%3A%20X10D.Collections.ByteExtensions.Unpack(System.Byte)%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/Collections/ByteExtensions.cs/#L25">View Source</a>
</span>
<a id="X10D_Collections_ByteExtensions_Unpack_" data-uid="X10D.Collections.ByteExtensions.Unpack*"></a>
<h4 id="X10D_Collections_ByteExtensions_Unpack_System_Byte_" data-uid="X10D.Collections.ByteExtensions.Unpack(System.Byte)">Unpack(Byte)</h4>
<div class="markdown level1 summary"><p>Unpacks this 8-bit unsigned integer into a boolean list, treating it as a bit field.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool[] Unpack(this byte value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Byte</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to unpack.</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>An array of <see cref="!:System.Boolean"></see> with length 8.</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_Collections_ByteExtensions_Unpack_System_Byte_Span_System_Boolean__.md&amp;value=---%0Auid%3A%20X10D.Collections.ByteExtensions.Unpack(System.Byte%2CSpan%7BSystem.Boolean%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/Collections/ByteExtensions.cs/#L40">View Source</a>
</span>
<a id="X10D_Collections_ByteExtensions_Unpack_" data-uid="X10D.Collections.ByteExtensions.Unpack*"></a>
<h4 id="X10D_Collections_ByteExtensions_Unpack_System_Byte_Span_System_Boolean__" data-uid="X10D.Collections.ByteExtensions.Unpack(System.Byte,Span{System.Boolean})">Unpack(Byte, Span&lt;Boolean&gt;)</h4>
<div class="markdown level1 summary"><p>Unpacks this 8-bit unsigned integer into a boolean list, treating it as a bit field.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static void Unpack(this byte value, Span&lt;bool&gt; destination)</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.Byte</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to unpack.</p>
</td>
</tr>
<tr>
<td><span class="xref">Span</span>&lt;<span class="xref">System.Boolean</span>&gt;</td>
<td><span class="parametername">destination</span></td>
<td><p>When this method returns, contains the unpacked booleans from <code data-dev-comment-type="paramref" class="paramref">value</code>.</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>

View File

@ -0,0 +1,262 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class CollectionExtensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class CollectionExtensions
| 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.Collections.CollectionExtensions">
<h1 id="X10D_Collections_CollectionExtensions" data-uid="X10D.Collections.CollectionExtensions" class="text-break">Class CollectionExtensions
</h1>
<div class="markdown level0 summary"><p>Collection-related extension methods for <see cref="!:ICollection&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">CollectionExtensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.Collections.html">X10D.Collections</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_Collections_CollectionExtensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class CollectionExtensions : 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_Collections_CollectionExtensions_ClearAndDisposeAll__1_ICollection___0__.md&amp;value=---%0Auid%3A%20X10D.Collections.CollectionExtensions.ClearAndDisposeAll%60%601(ICollection%7B%60%600%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Collections/CollectionExtensions.cs/#L17">View Source</a>
</span>
<a id="X10D_Collections_CollectionExtensions_ClearAndDisposeAll_" data-uid="X10D.Collections.CollectionExtensions.ClearAndDisposeAll*"></a>
<h4 id="X10D_Collections_CollectionExtensions_ClearAndDisposeAll__1_ICollection___0__" data-uid="X10D.Collections.CollectionExtensions.ClearAndDisposeAll``1(ICollection{``0})">ClearAndDisposeAll&lt;T&gt;(ICollection&lt;T&gt;)</h4>
<div class="markdown level1 summary"><p>Calls <see cref="!:IDisposable.Dispose"></see> on each item in the collection, then clears the collection by calling
<see cref="!:ICollection&lt;T>.Clear"></see>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static void ClearAndDisposeAll&lt;T&gt;(this ICollection&lt;T&gt; source)
where T : IDisposable</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">ICollection</span>&lt;T&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>The collection to clear, and whose elements should be disposed.</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>
<h5 id="X10D_Collections_CollectionExtensions_ClearAndDisposeAll__1_ICollection___0___seealso">See Also</h5>
<div class="seealso">
<div><a class="xref" href="X10D.Collections.EnumerableExtensions.html#X10D_Collections_EnumerableExtensions_DisposeAll__1_IEnumerable___0__">DisposeAll&lt;T&gt;(IEnumerable&lt;T&gt;)</a></div>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Collections_CollectionExtensions_ClearAndDisposeAllAsync__1_ICollection___0__.md&amp;value=---%0Auid%3A%20X10D.Collections.CollectionExtensions.ClearAndDisposeAllAsync%60%601(ICollection%7B%60%600%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Collections/CollectionExtensions.cs/#L56">View Source</a>
</span>
<a id="X10D_Collections_CollectionExtensions_ClearAndDisposeAllAsync_" data-uid="X10D.Collections.CollectionExtensions.ClearAndDisposeAllAsync*"></a>
<h4 id="X10D_Collections_CollectionExtensions_ClearAndDisposeAllAsync__1_ICollection___0__" data-uid="X10D.Collections.CollectionExtensions.ClearAndDisposeAllAsync``1(ICollection{``0})">ClearAndDisposeAllAsync&lt;T&gt;(ICollection&lt;T&gt;)</h4>
<div class="markdown level1 summary"><p>Asynchronously calls <see cref="!:IAsyncDisposable.DisposeAsync"></see> on each item in the collection, then clears the
collection by calling <see cref="!:ICollection&lt;T>.Clear"></see>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static Task ClearAndDisposeAllAsync&lt;T&gt;(this ICollection&lt;T&gt; source)
where T : IAsyncDisposable</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">ICollection</span>&lt;T&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>The collection to clear, and whose elements should be disposed.</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">Task</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="typeParameters">Type Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="parametername">T</span></td>
<td><p>The type of the elements in <code data-dev-comment-type="paramref" class="paramref">source</code>.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="X10D_Collections_CollectionExtensions_ClearAndDisposeAllAsync__1_ICollection___0___seealso">See Also</h5>
<div class="seealso">
<div><a class="xref" href="X10D.Collections.EnumerableExtensions.html#X10D_Collections_EnumerableExtensions_DisposeAllAsync__1_IEnumerable___0__">DisposeAllAsync&lt;T&gt;(IEnumerable&lt;T&gt;)</a></div>
</div>
</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>

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,951 @@
<!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.Collections.EnumerableExtensions">
<h1 id="X10D_Collections_EnumerableExtensions" data-uid="X10D.Collections.EnumerableExtensions" class="text-break">Class EnumerableExtensions
</h1>
<div class="markdown level0 summary"><p>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.Collections.html">X10D.Collections</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_Collections_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_Collections_EnumerableExtensions_CountWhereNot__1_IEnumerable___0__Func___0_System_Boolean__.md&amp;value=---%0Auid%3A%20X10D.Collections.EnumerableExtensions.CountWhereNot%60%601(IEnumerable%7B%60%600%7D%2CFunc%7B%60%600%2CSystem.Boolean%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/Collections/EnumerableExtensions.cs/#L24">View Source</a>
</span>
<a id="X10D_Collections_EnumerableExtensions_CountWhereNot_" data-uid="X10D.Collections.EnumerableExtensions.CountWhereNot*"></a>
<h4 id="X10D_Collections_EnumerableExtensions_CountWhereNot__1_IEnumerable___0__Func___0_System_Boolean__" data-uid="X10D.Collections.EnumerableExtensions.CountWhereNot``1(IEnumerable{``0},Func{``0,System.Boolean})">CountWhereNot&lt;TSource&gt;(IEnumerable&lt;TSource&gt;, Func&lt;TSource, Boolean&gt;)</h4>
<div class="markdown level1 summary"><p>Returns a number that represents how many elements in the specified sequence do not satisfy a condition.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static int CountWhereNot&lt;TSource&gt;(this IEnumerable&lt;TSource&gt; source, Func&lt;TSource, bool&gt; predicate)</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 that contains elements to be tested and counted.</p>
</td>
</tr>
<tr>
<td><span class="xref">Func</span>&lt;TSource, <span class="xref">System.Boolean</span>&gt;</td>
<td><span class="parametername">predicate</span></td>
<td><p>A function to test each element for a condition.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>A number that represents how many elements in the sequence do not satisfy the condition in the
<code data-dev-comment-type="paramref" class="paramref">predicate</code> function.</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_Collections_EnumerableExtensions_DisposeAll__1_IEnumerable___0__.md&amp;value=---%0Auid%3A%20X10D.Collections.EnumerableExtensions.DisposeAll%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/Collections/EnumerableExtensions.cs/#L197">View Source</a>
</span>
<a id="X10D_Collections_EnumerableExtensions_DisposeAll_" data-uid="X10D.Collections.EnumerableExtensions.DisposeAll*"></a>
<h4 id="X10D_Collections_EnumerableExtensions_DisposeAll__1_IEnumerable___0__" data-uid="X10D.Collections.EnumerableExtensions.DisposeAll``1(IEnumerable{``0})">DisposeAll&lt;T&gt;(IEnumerable&lt;T&gt;)</h4>
<div class="markdown level1 summary"><p>Calls <see cref="!:IDisposable.Dispose"></see> on all elements of the <see cref="!:IEnumerable&lt;T>"></see>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static void DisposeAll&lt;T&gt;(this IEnumerable&lt;T&gt; source)
where T : IDisposable</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>The enumerable collection whose elements to dispose.</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>
<h5 id="X10D_Collections_EnumerableExtensions_DisposeAll__1_IEnumerable___0___seealso">See Also</h5>
<div class="seealso">
<div><a class="xref" href="X10D.Collections.CollectionExtensions.html#X10D_Collections_CollectionExtensions_ClearAndDisposeAll__1_ICollection___0__">ClearAndDisposeAll&lt;T&gt;(ICollection&lt;T&gt;)</a></div>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Collections_EnumerableExtensions_DisposeAllAsync__1_IEnumerable___0__.md&amp;value=---%0Auid%3A%20X10D.Collections.EnumerableExtensions.DisposeAllAsync%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/Collections/EnumerableExtensions.cs/#L228">View Source</a>
</span>
<a id="X10D_Collections_EnumerableExtensions_DisposeAllAsync_" data-uid="X10D.Collections.EnumerableExtensions.DisposeAllAsync*"></a>
<h4 id="X10D_Collections_EnumerableExtensions_DisposeAllAsync__1_IEnumerable___0__" data-uid="X10D.Collections.EnumerableExtensions.DisposeAllAsync``1(IEnumerable{``0})">DisposeAllAsync&lt;T&gt;(IEnumerable&lt;T&gt;)</h4>
<div class="markdown level1 summary"><p>Asynchronously calls <see cref="!:IAsyncDisposable.DisposeAsync"></see> on all elements of the
<see cref="!:IEnumerable&lt;T>"></see>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static Task DisposeAllAsync&lt;T&gt;(this IEnumerable&lt;T&gt; source)
where T : IAsyncDisposable</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>The enumerable collection whose elements to dispose.</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">Task</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="typeParameters">Type Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="parametername">T</span></td>
<td><p>The type of the elements in <code data-dev-comment-type="paramref" class="paramref">source</code>.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="X10D_Collections_EnumerableExtensions_DisposeAllAsync__1_IEnumerable___0___seealso">See Also</h5>
<div class="seealso">
<div><a class="xref" href="X10D.Collections.CollectionExtensions.html#X10D_Collections_CollectionExtensions_ClearAndDisposeAllAsync__1_ICollection___0__">ClearAndDisposeAllAsync&lt;T&gt;(ICollection&lt;T&gt;)</a></div>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Collections_EnumerableExtensions_FirstWhereNot__1_IEnumerable___0__Func___0_System_Boolean__.md&amp;value=---%0Auid%3A%20X10D.Collections.EnumerableExtensions.FirstWhereNot%60%601(IEnumerable%7B%60%600%7D%2CFunc%7B%60%600%2CSystem.Boolean%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/Collections/EnumerableExtensions.cs/#L58">View Source</a>
</span>
<a id="X10D_Collections_EnumerableExtensions_FirstWhereNot_" data-uid="X10D.Collections.EnumerableExtensions.FirstWhereNot*"></a>
<h4 id="X10D_Collections_EnumerableExtensions_FirstWhereNot__1_IEnumerable___0__Func___0_System_Boolean__" data-uid="X10D.Collections.EnumerableExtensions.FirstWhereNot``1(IEnumerable{``0},Func{``0,System.Boolean})">FirstWhereNot&lt;TSource&gt;(IEnumerable&lt;TSource&gt;, Func&lt;TSource, Boolean&gt;)</h4>
<div class="markdown level1 summary"><p>Returns the first element in a sequence that does not satisfy a specified condition.</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 FirstWhereNot&lt;TSource&gt;(this IEnumerable&lt;TSource&gt; source, Func&lt;TSource, bool&gt; predicate)</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 return an element from.</p>
</td>
</tr>
<tr>
<td><span class="xref">Func</span>&lt;TSource, <span class="xref">System.Boolean</span>&gt;</td>
<td><span class="parametername">predicate</span></td>
<td><p>A function to test each element for a condition.</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">TSource</span></td>
<td><p>The first element in the sequence that fails the test in the specified predicate function.</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>
</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_Collections_EnumerableExtensions_FirstWhereNotOrDefault__1_IEnumerable___0__Func___0_System_Boolean__.md&amp;value=---%0Auid%3A%20X10D.Collections.EnumerableExtensions.FirstWhereNotOrDefault%60%601(IEnumerable%7B%60%600%7D%2CFunc%7B%60%600%2CSystem.Boolean%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/Collections/EnumerableExtensions.cs/#L91">View Source</a>
</span>
<a id="X10D_Collections_EnumerableExtensions_FirstWhereNotOrDefault_" data-uid="X10D.Collections.EnumerableExtensions.FirstWhereNotOrDefault*"></a>
<h4 id="X10D_Collections_EnumerableExtensions_FirstWhereNotOrDefault__1_IEnumerable___0__Func___0_System_Boolean__" data-uid="X10D.Collections.EnumerableExtensions.FirstWhereNotOrDefault``1(IEnumerable{``0},Func{``0,System.Boolean})">FirstWhereNotOrDefault&lt;TSource&gt;(IEnumerable&lt;TSource&gt;, Func&lt;TSource, Boolean&gt;)</h4>
<div class="markdown level1 summary"><p>Returns the first element in a sequence that does not satisfy a specified condition.</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 FirstWhereNotOrDefault&lt;TSource&gt;(this IEnumerable&lt;TSource&gt; source, Func&lt;TSource, bool&gt; predicate)</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 return an element from.</p>
</td>
</tr>
<tr>
<td><span class="xref">Func</span>&lt;TSource, <span class="xref">System.Boolean</span>&gt;</td>
<td><span class="parametername">predicate</span></td>
<td><p>A function to test each element for a condition.</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">TSource</span></td>
<td><p><span class="xref">langword_csharp_default(TSource)</span> if <code data-dev-comment-type="paramref" class="paramref">source</code> is empty or if no element passes the test specified
by <code data-dev-comment-type="paramref" class="paramref">predicate</code>; otherwise, the first element in <code data-dev-comment-type="paramref" class="paramref">source</code> that fails the test
specified by <code data-dev-comment-type="paramref" class="paramref">predicate</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>
</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_Collections_EnumerableExtensions_For__1_IEnumerable___0__Action_System_Int32___0__.md&amp;value=---%0Auid%3A%20X10D.Collections.EnumerableExtensions.For%60%601(IEnumerable%7B%60%600%7D%2CAction%7BSystem.Int32%2C%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/Collections/EnumerableExtensions.cs/#L128">View Source</a>
</span>
<a id="X10D_Collections_EnumerableExtensions_For_" data-uid="X10D.Collections.EnumerableExtensions.For*"></a>
<h4 id="X10D_Collections_EnumerableExtensions_For__1_IEnumerable___0__Action_System_Int32___0__" data-uid="X10D.Collections.EnumerableExtensions.For``1(IEnumerable{``0},Action{System.Int32,``0})">For&lt;T&gt;(IEnumerable&lt;T&gt;, Action&lt;Int32, T&gt;)</h4>
<div class="markdown level1 summary"><p>Performs the specified action on each element of the <see cref="!:IEnumerable&lt;T>"></see>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static void For&lt;T&gt;(this IEnumerable&lt;T&gt; source, Action&lt;int, T&gt; action)</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>The <see cref="!:IEnumerable&lt;T>"></see> whose elements on which to perform <code data-dev-comment-type="paramref" class="paramref">action</code>.</p>
</td>
</tr>
<tr>
<td><span class="xref">Action</span>&lt;<span class="xref">System.Int32</span>, T&gt;</td>
<td><span class="parametername">action</span></td>
<td><p>The <see cref="!:Action&lt;T, T>"></see> delegate to perform on each element of the <see cref="!:IEnumerable&lt;T>"></see>. The
<see cref="!:System.Int32"></see> argument passed to this delegate represents the index.</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_Collections_EnumerableExtensions_ForEach__1_IEnumerable___0__Action___0__.md&amp;value=---%0Auid%3A%20X10D.Collections.EnumerableExtensions.ForEach%60%601(IEnumerable%7B%60%600%7D%2CAction%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/Collections/EnumerableExtensions.cs/#L167">View Source</a>
</span>
<a id="X10D_Collections_EnumerableExtensions_ForEach_" data-uid="X10D.Collections.EnumerableExtensions.ForEach*"></a>
<h4 id="X10D_Collections_EnumerableExtensions_ForEach__1_IEnumerable___0__Action___0__" data-uid="X10D.Collections.EnumerableExtensions.ForEach``1(IEnumerable{``0},Action{``0})">ForEach&lt;T&gt;(IEnumerable&lt;T&gt;, Action&lt;T&gt;)</h4>
<div class="markdown level1 summary"><p>Performs the specified action on each element of the <see cref="!:IEnumerable&lt;T>"></see>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static void ForEach&lt;T&gt;(this IEnumerable&lt;T&gt; source, Action&lt;T&gt; action)</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>The <see cref="!:IEnumerable&lt;T>"></see> whose elements on which to perform <code data-dev-comment-type="paramref" class="paramref">action</code>.</p>
</td>
</tr>
<tr>
<td><span class="xref">Action</span>&lt;T&gt;</td>
<td><span class="parametername">action</span></td>
<td><p>The <see cref="!:Action&lt;T>"></see> delegate to perform on each element of the <see cref="!:IEnumerable&lt;T>"></see>.</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_Collections_EnumerableExtensions_LastWhereNot__1_IEnumerable___0__Func___0_System_Boolean__.md&amp;value=---%0Auid%3A%20X10D.Collections.EnumerableExtensions.LastWhereNot%60%601(IEnumerable%7B%60%600%7D%2CFunc%7B%60%600%2CSystem.Boolean%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/Collections/EnumerableExtensions.cs/#L264">View Source</a>
</span>
<a id="X10D_Collections_EnumerableExtensions_LastWhereNot_" data-uid="X10D.Collections.EnumerableExtensions.LastWhereNot*"></a>
<h4 id="X10D_Collections_EnumerableExtensions_LastWhereNot__1_IEnumerable___0__Func___0_System_Boolean__" data-uid="X10D.Collections.EnumerableExtensions.LastWhereNot``1(IEnumerable{``0},Func{``0,System.Boolean})">LastWhereNot&lt;TSource&gt;(IEnumerable&lt;TSource&gt;, Func&lt;TSource, Boolean&gt;)</h4>
<div class="markdown level1 summary"><p>Returns the last element in a sequence that does not satisfy a specified condition.</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 LastWhereNot&lt;TSource&gt;(this IEnumerable&lt;TSource&gt; source, Func&lt;TSource, bool&gt; predicate)</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 return an element from.</p>
</td>
</tr>
<tr>
<td><span class="xref">Func</span>&lt;TSource, <span class="xref">System.Boolean</span>&gt;</td>
<td><span class="parametername">predicate</span></td>
<td><p>A function to test each element for a condition.</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">TSource</span></td>
<td><p>The last element in the sequence that fails the test in the specified predicate function.</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>
</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_Collections_EnumerableExtensions_LastWhereNotOrDefault__1_IEnumerable___0__Func___0_System_Boolean__.md&amp;value=---%0Auid%3A%20X10D.Collections.EnumerableExtensions.LastWhereNotOrDefault%60%601(IEnumerable%7B%60%600%7D%2CFunc%7B%60%600%2CSystem.Boolean%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/Collections/EnumerableExtensions.cs/#L297">View Source</a>
</span>
<a id="X10D_Collections_EnumerableExtensions_LastWhereNotOrDefault_" data-uid="X10D.Collections.EnumerableExtensions.LastWhereNotOrDefault*"></a>
<h4 id="X10D_Collections_EnumerableExtensions_LastWhereNotOrDefault__1_IEnumerable___0__Func___0_System_Boolean__" data-uid="X10D.Collections.EnumerableExtensions.LastWhereNotOrDefault``1(IEnumerable{``0},Func{``0,System.Boolean})">LastWhereNotOrDefault&lt;TSource&gt;(IEnumerable&lt;TSource&gt;, Func&lt;TSource, Boolean&gt;)</h4>
<div class="markdown level1 summary"><p>Returns the last element in a sequence that does not satisfy a specified condition.</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 LastWhereNotOrDefault&lt;TSource&gt;(this IEnumerable&lt;TSource&gt; source, Func&lt;TSource, bool&gt; predicate)</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 return an element from.</p>
</td>
</tr>
<tr>
<td><span class="xref">Func</span>&lt;TSource, <span class="xref">System.Boolean</span>&gt;</td>
<td><span class="parametername">predicate</span></td>
<td><p>A function to test each element for a condition.</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">TSource</span></td>
<td><p><span class="xref">langword_csharp_default(TSource)</span> if <code data-dev-comment-type="paramref" class="paramref">source</code> is empty or if no element passes the test specified
by <code data-dev-comment-type="paramref" class="paramref">predicate</code>; otherwise, the last element in <code data-dev-comment-type="paramref" class="paramref">source</code> that fails the test
specified by <code data-dev-comment-type="paramref" class="paramref">predicate</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>
</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_Collections_EnumerableExtensions_Shuffled__1_IEnumerable___0__System_Nullable_Random__.md&amp;value=---%0Auid%3A%20X10D.Collections.EnumerableExtensions.Shuffled%60%601(IEnumerable%7B%60%600%7D%2CSystem.Nullable%7BRandom%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/Collections/EnumerableExtensions.cs/#L326">View Source</a>
</span>
<a id="X10D_Collections_EnumerableExtensions_Shuffled_" data-uid="X10D.Collections.EnumerableExtensions.Shuffled*"></a>
<h4 id="X10D_Collections_EnumerableExtensions_Shuffled__1_IEnumerable___0__System_Nullable_Random__" data-uid="X10D.Collections.EnumerableExtensions.Shuffled``1(IEnumerable{``0},System.Nullable{Random})">Shuffled&lt;T&gt;(IEnumerable&lt;T&gt;, Nullable&lt;Random&gt;)</h4>
<div class="markdown level1 summary"><p>Reorganizes the elements in an enumerable by implementing a Fisher-Yates shuffle, and returns th shuffled result.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static IReadOnlyCollection&lt;T&gt; Shuffled&lt;T&gt;(this IEnumerable&lt;T&gt; source, Random? random = null)</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>The <see cref="!:IEnumerable&lt;T>"></see> to shuffle.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Nullable</span>&lt;<span class="xref">Random</span>&gt;</td>
<td><span class="parametername">random</span></td>
<td><p>Optional. The <see cref="!:System.Random"></see> instance to use for the shuffling.</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">IReadOnlyCollection</span>&lt;T&gt;</td>
<td><p>The shuffled collection.</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 element type.</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_Collections_EnumerableExtensions_WhereNot__1_IEnumerable___0__Func___0_System_Boolean__.md&amp;value=---%0Auid%3A%20X10D.Collections.EnumerableExtensions.WhereNot%60%601(IEnumerable%7B%60%600%7D%2CFunc%7B%60%600%2CSystem.Boolean%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/Collections/EnumerableExtensions.cs/#L355">View Source</a>
</span>
<a id="X10D_Collections_EnumerableExtensions_WhereNot_" data-uid="X10D.Collections.EnumerableExtensions.WhereNot*"></a>
<h4 id="X10D_Collections_EnumerableExtensions_WhereNot__1_IEnumerable___0__Func___0_System_Boolean__" data-uid="X10D.Collections.EnumerableExtensions.WhereNot``1(IEnumerable{``0},Func{``0,System.Boolean})">WhereNot&lt;TSource&gt;(IEnumerable&lt;TSource&gt;, Func&lt;TSource, Boolean&gt;)</h4>
<div class="markdown level1 summary"><p>Filters a sequence of values based on a predicate, such that all elements in the result do not match the predicate.</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; WhereNot&lt;TSource&gt;(this IEnumerable&lt;TSource&gt; source, Func&lt;TSource, bool&gt; predicate)</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">Func</span>&lt;TSource, <span class="xref">System.Boolean</span>&gt;</td>
<td><span class="parametername">predicate</span></td>
<td><p>A function to test each element for a condition.</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 satisfy the condition.</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_Collections_EnumerableExtensions_WhereNotNull__1_IEnumerable___0__.md&amp;value=---%0Auid%3A%20X10D.Collections.EnumerableExtensions.WhereNotNull%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/Collections/EnumerableExtensions.cs/#L387">View Source</a>
</span>
<a id="X10D_Collections_EnumerableExtensions_WhereNotNull_" data-uid="X10D.Collections.EnumerableExtensions.WhereNotNull*"></a>
<h4 id="X10D_Collections_EnumerableExtensions_WhereNotNull__1_IEnumerable___0__" data-uid="X10D.Collections.EnumerableExtensions.WhereNotNull``1(IEnumerable{``0})">WhereNotNull&lt;TSource&gt;(IEnumerable&lt;TSource&gt;)</h4>
<div class="markdown level1 summary"><p>Filters a sequence of values by omitting elements that are <span class="xref">null</span> (<span class="xref">langword_csharp_Nothing</span> in
Visual Basic).</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; WhereNotNull&lt;TSource&gt;(this IEnumerable&lt;TSource&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;TSource&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>An <see cref="!:IEnumerable&lt;T>"></see> to filter.</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 are not <span class="xref">null</span>
(<span class="xref">langword_csharp_Nothing</span> in Visual Basic).</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>
</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>

View File

@ -0,0 +1,225 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class Int16Extensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class Int16Extensions
| 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.Collections.Int16Extensions">
<h1 id="X10D_Collections_Int16Extensions" data-uid="X10D.Collections.Int16Extensions" class="text-break">Class Int16Extensions
</h1>
<div class="markdown level0 summary"><p>Collection-related extension methods for <see cref="!:System.Int16"></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">Int16Extensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.Collections.html">X10D.Collections</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_Collections_Int16Extensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class Int16Extensions : 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_Collections_Int16Extensions_Unpack_System_Int16_.md&amp;value=---%0Auid%3A%20X10D.Collections.Int16Extensions.Unpack(System.Int16)%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/Collections/Int16Extensions.cs/#L25">View Source</a>
</span>
<a id="X10D_Collections_Int16Extensions_Unpack_" data-uid="X10D.Collections.Int16Extensions.Unpack*"></a>
<h4 id="X10D_Collections_Int16Extensions_Unpack_System_Int16_" data-uid="X10D.Collections.Int16Extensions.Unpack(System.Int16)">Unpack(Int16)</h4>
<div class="markdown level1 summary"><p>Unpacks this 16-bit signed integer into a boolean list, treating it as a bit field.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool[] Unpack(this short value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int16</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to unpack.</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>An array of <see cref="!:System.Boolean"></see> with length 16.</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_Collections_Int16Extensions_Unpack_System_Int16_Span_System_Boolean__.md&amp;value=---%0Auid%3A%20X10D.Collections.Int16Extensions.Unpack(System.Int16%2CSpan%7BSystem.Boolean%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/Collections/Int16Extensions.cs/#L40">View Source</a>
</span>
<a id="X10D_Collections_Int16Extensions_Unpack_" data-uid="X10D.Collections.Int16Extensions.Unpack*"></a>
<h4 id="X10D_Collections_Int16Extensions_Unpack_System_Int16_Span_System_Boolean__" data-uid="X10D.Collections.Int16Extensions.Unpack(System.Int16,Span{System.Boolean})">Unpack(Int16, Span&lt;Boolean&gt;)</h4>
<div class="markdown level1 summary"><p>Unpacks this 16-bit signed integer into a boolean list, treating it as a bit field.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static void Unpack(this short value, Span&lt;bool&gt; destination)</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.Int16</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to unpack.</p>
</td>
</tr>
<tr>
<td><span class="xref">Span</span>&lt;<span class="xref">System.Boolean</span>&gt;</td>
<td><span class="parametername">destination</span></td>
<td><p>When this method returns, contains the unpacked booleans from <code data-dev-comment-type="paramref" class="paramref">value</code>.</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>

View File

@ -0,0 +1,225 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class Int32Extensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class Int32Extensions
| 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.Collections.Int32Extensions">
<h1 id="X10D_Collections_Int32Extensions" data-uid="X10D.Collections.Int32Extensions" class="text-break">Class Int32Extensions
</h1>
<div class="markdown level0 summary"><p>Collection-related extension methods for <see cref="!:System.Int32"></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">Int32Extensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.Collections.html">X10D.Collections</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_Collections_Int32Extensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class Int32Extensions : 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_Collections_Int32Extensions_Unpack_System_Int32_.md&amp;value=---%0Auid%3A%20X10D.Collections.Int32Extensions.Unpack(System.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Collections/Int32Extensions.cs/#L25">View Source</a>
</span>
<a id="X10D_Collections_Int32Extensions_Unpack_" data-uid="X10D.Collections.Int32Extensions.Unpack*"></a>
<h4 id="X10D_Collections_Int32Extensions_Unpack_System_Int32_" data-uid="X10D.Collections.Int32Extensions.Unpack(System.Int32)">Unpack(Int32)</h4>
<div class="markdown level1 summary"><p>Unpacks this 32-bit signed integer into a boolean list, treating it as a bit field.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool[] Unpack(this int value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to unpack.</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>An array of <see cref="!:System.Boolean"></see> with length 32.</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_Collections_Int32Extensions_Unpack_System_Int32_Span_System_Boolean__.md&amp;value=---%0Auid%3A%20X10D.Collections.Int32Extensions.Unpack(System.Int32%2CSpan%7BSystem.Boolean%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/Collections/Int32Extensions.cs/#L40">View Source</a>
</span>
<a id="X10D_Collections_Int32Extensions_Unpack_" data-uid="X10D.Collections.Int32Extensions.Unpack*"></a>
<h4 id="X10D_Collections_Int32Extensions_Unpack_System_Int32_Span_System_Boolean__" data-uid="X10D.Collections.Int32Extensions.Unpack(System.Int32,Span{System.Boolean})">Unpack(Int32, Span&lt;Boolean&gt;)</h4>
<div class="markdown level1 summary"><p>Unpacks this 32-bit signed integer into a boolean list, treating it as a bit field.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static void Unpack(this int value, Span&lt;bool&gt; destination)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to unpack.</p>
</td>
</tr>
<tr>
<td><span class="xref">Span</span>&lt;<span class="xref">System.Boolean</span>&gt;</td>
<td><span class="parametername">destination</span></td>
<td><p>When this method returns, contains the unpacked booleans from <code data-dev-comment-type="paramref" class="paramref">value</code>.</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>

View File

@ -0,0 +1,225 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class Int64Extensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class Int64Extensions
| 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.Collections.Int64Extensions">
<h1 id="X10D_Collections_Int64Extensions" data-uid="X10D.Collections.Int64Extensions" class="text-break">Class Int64Extensions
</h1>
<div class="markdown level0 summary"><p>Collection-related extension methods for <see cref="!:System.Int64"></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">Int64Extensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.Collections.html">X10D.Collections</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_Collections_Int64Extensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class Int64Extensions : 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_Collections_Int64Extensions_Unpack_System_Int64_.md&amp;value=---%0Auid%3A%20X10D.Collections.Int64Extensions.Unpack(System.Int64)%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/Collections/Int64Extensions.cs/#L17">View Source</a>
</span>
<a id="X10D_Collections_Int64Extensions_Unpack_" data-uid="X10D.Collections.Int64Extensions.Unpack*"></a>
<h4 id="X10D_Collections_Int64Extensions_Unpack_System_Int64_" data-uid="X10D.Collections.Int64Extensions.Unpack(System.Int64)">Unpack(Int64)</h4>
<div class="markdown level1 summary"><p>Unpacks this 64-bit signed integer into a boolean list, treating it as a bit field.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool[] Unpack(this long value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int64</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to unpack.</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>An array of <see cref="!:System.Boolean"></see> with length 64.</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_Collections_Int64Extensions_Unpack_System_Int64_Span_System_Boolean__.md&amp;value=---%0Auid%3A%20X10D.Collections.Int64Extensions.Unpack(System.Int64%2CSpan%7BSystem.Boolean%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/Collections/Int64Extensions.cs/#L31">View Source</a>
</span>
<a id="X10D_Collections_Int64Extensions_Unpack_" data-uid="X10D.Collections.Int64Extensions.Unpack*"></a>
<h4 id="X10D_Collections_Int64Extensions_Unpack_System_Int64_Span_System_Boolean__" data-uid="X10D.Collections.Int64Extensions.Unpack(System.Int64,Span{System.Boolean})">Unpack(Int64, Span&lt;Boolean&gt;)</h4>
<div class="markdown level1 summary"><p>Unpacks this 64-bit signed integer into a boolean list, treating it as a bit field.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static void Unpack(this long value, Span&lt;bool&gt; destination)</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.Int64</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to unpack.</p>
</td>
</tr>
<tr>
<td><span class="xref">Span</span>&lt;<span class="xref">System.Boolean</span>&gt;</td>
<td><span class="parametername">destination</span></td>
<td><p>When this method returns, contains the unpacked booleans from <code data-dev-comment-type="paramref" class="paramref">value</code>.</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>

View File

@ -0,0 +1,900 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class ListExtensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class ListExtensions
| 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.Collections.ListExtensions">
<h1 id="X10D_Collections_ListExtensions" data-uid="X10D.Collections.ListExtensions" class="text-break">Class ListExtensions
</h1>
<div class="markdown level0 summary"><p>Extension methods for <see cref="!:IList&lt;T>"></see> and <see cref="!:IReadOnlyList&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">ListExtensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.Collections.html">X10D.Collections</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_Collections_ListExtensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class ListExtensions : 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_Collections_ListExtensions_Fill__1_IList___0____0_.md&amp;value=---%0Auid%3A%20X10D.Collections.ListExtensions.Fill%60%601(IList%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/Collections/ListExtensions.cs/#L20">View Source</a>
</span>
<a id="X10D_Collections_ListExtensions_Fill_" data-uid="X10D.Collections.ListExtensions.Fill*"></a>
<h4 id="X10D_Collections_ListExtensions_Fill__1_IList___0____0_" data-uid="X10D.Collections.ListExtensions.Fill``1(IList{``0},``0)">Fill&lt;T&gt;(IList&lt;T&gt;, T)</h4>
<div class="markdown level1 summary"><p>Assigns the given value to each element of the list.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static void Fill&lt;T&gt;(this IList&lt;T&gt; source, T value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">IList</span>&lt;T&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>The list to be filled.</p>
</td>
</tr>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to assign to each list element.</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 the list.</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_Collections_ListExtensions_Fill__1_IList___0____0_System_Int32_System_Int32_.md&amp;value=---%0Auid%3A%20X10D.Collections.ListExtensions.Fill%60%601(IList%7B%60%600%7D%2C%60%600%2CSystem.Int32%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Collections/ListExtensions.cs/#L54">View Source</a>
</span>
<a id="X10D_Collections_ListExtensions_Fill_" data-uid="X10D.Collections.ListExtensions.Fill*"></a>
<h4 id="X10D_Collections_ListExtensions_Fill__1_IList___0____0_System_Int32_System_Int32_" data-uid="X10D.Collections.ListExtensions.Fill``1(IList{``0},``0,System.Int32,System.Int32)">Fill&lt;T&gt;(IList&lt;T&gt;, T, Int32, Int32)</h4>
<div class="markdown level1 summary"><p>Assigns the given value to the elements of the list which are within the range of <code data-dev-comment-type="paramref" class="paramref">startIndex</code>
(inclusive) and the next <code data-dev-comment-type="paramref" class="paramref">count</code> number of indices.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static void Fill&lt;T&gt;(this IList&lt;T&gt; source, T value, int startIndex, int count)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">IList</span>&lt;T&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>The list to be filled.</p>
</td>
</tr>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to assign to each list element.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">startIndex</span></td>
<td><p>A 32-bit integer that represents the index in the list at which filling begins.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">count</span></td>
<td><p>The number of elements to fill.</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 the list.</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_Collections_ListExtensions_IndexOf__1_IReadOnlyList___0____0_.md&amp;value=---%0Auid%3A%20X10D.Collections.ListExtensions.IndexOf%60%601(IReadOnlyList%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/Collections/ListExtensions.cs/#L106">View Source</a>
</span>
<a id="X10D_Collections_ListExtensions_IndexOf_" data-uid="X10D.Collections.ListExtensions.IndexOf*"></a>
<h4 id="X10D_Collections_ListExtensions_IndexOf__1_IReadOnlyList___0____0_" data-uid="X10D.Collections.ListExtensions.IndexOf``1(IReadOnlyList{``0},``0)">IndexOf&lt;T&gt;(IReadOnlyList&lt;T&gt;, T)</h4>
<div class="markdown level1 summary"><p>Searches for the specified object and returns the zero-based index of the first occurrence within the entire
<see cref="!:IReadOnlyList&lt;T>"></see>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static int IndexOf&lt;T&gt;(this IReadOnlyList&lt;T&gt; source, T 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">IReadOnlyList</span>&lt;T&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>The list to search</p>
</td>
</tr>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">item</span></td>
<td><p>The object to locate in the <see cref="!:IReadOnlyList&lt;T>"></see>. The value can be <span class="xref">true</span> for reference
types.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>The zero-based index of the first occurrence of item within the entire <see cref="!:List&lt;T>"></see>, if found; otherwise,
-1.</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 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_Collections_ListExtensions_IndexOf__1_IReadOnlyList___0____0_System_Int32_.md&amp;value=---%0Auid%3A%20X10D.Collections.ListExtensions.IndexOf%60%601(IReadOnlyList%7B%60%600%7D%2C%60%600%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Collections/ListExtensions.cs/#L139">View Source</a>
</span>
<a id="X10D_Collections_ListExtensions_IndexOf_" data-uid="X10D.Collections.ListExtensions.IndexOf*"></a>
<h4 id="X10D_Collections_ListExtensions_IndexOf__1_IReadOnlyList___0____0_System_Int32_" data-uid="X10D.Collections.ListExtensions.IndexOf``1(IReadOnlyList{``0},``0,System.Int32)">IndexOf&lt;T&gt;(IReadOnlyList&lt;T&gt;, T, Int32)</h4>
<div class="markdown level1 summary"><p>Searches for the specified object and returns the zero-based index of the first occurrence within the range of
elements in the <see cref="!:IReadOnlyList&lt;T>"></see> that extends from the specified index to the last element.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static int IndexOf&lt;T&gt;(this IReadOnlyList&lt;T&gt; source, T item, int startIndex)</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">IReadOnlyList</span>&lt;T&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>The list to search</p>
</td>
</tr>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">item</span></td>
<td><p>The object to locate in the <see cref="!:IReadOnlyList&lt;T>"></see>. The value can be <span class="xref">true</span> for reference
types.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">startIndex</span></td>
<td><p>The zero-based starting index of the search. 0 (zero) is valid in an empty list.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>The zero-based index of the first occurrence of item within the range of elements in the
<see cref="!:IReadOnlyList&lt;T>"></see> that starts at index and contains count number of elements, if found; otherwise, -1.</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 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_Collections_ListExtensions_IndexOf__1_IReadOnlyList___0____0_System_Int32_System_Int32_.md&amp;value=---%0Auid%3A%20X10D.Collections.ListExtensions.IndexOf%60%601(IReadOnlyList%7B%60%600%7D%2C%60%600%2CSystem.Int32%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Collections/ListExtensions.cs/#L183">View Source</a>
</span>
<a id="X10D_Collections_ListExtensions_IndexOf_" data-uid="X10D.Collections.ListExtensions.IndexOf*"></a>
<h4 id="X10D_Collections_ListExtensions_IndexOf__1_IReadOnlyList___0____0_System_Int32_System_Int32_" data-uid="X10D.Collections.ListExtensions.IndexOf``1(IReadOnlyList{``0},``0,System.Int32,System.Int32)">IndexOf&lt;T&gt;(IReadOnlyList&lt;T&gt;, T, Int32, Int32)</h4>
<div class="markdown level1 summary"><p>Searches for the specified object and returns the zero-based index of the first occurrence within the range of
elements in the <see cref="!:IReadOnlyList&lt;T>"></see> that starts at the specified index and contains the specified number
of elements.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static int IndexOf&lt;T&gt;(this IReadOnlyList&lt;T&gt; source, T item, int startIndex, int count)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">IReadOnlyList</span>&lt;T&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>The list to search</p>
</td>
</tr>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">item</span></td>
<td><p>The object to locate in the <see cref="!:IReadOnlyList&lt;T>"></see>. The value can be <span class="xref">true</span> for reference
types.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">startIndex</span></td>
<td><p>The zero-based starting index of the search. 0 (zero) is valid in an empty list.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">count</span></td>
<td><p>The number of elements in the section to search.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>The zero-based index of the first occurrence of item within the range of elements in the
<see cref="!:IReadOnlyList&lt;T>"></see> that starts at index and contains count number of elements, if found; otherwise, -1.</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 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_Collections_ListExtensions_Random__1_IReadOnlyList___0__System_Nullable_Random__.md&amp;value=---%0Auid%3A%20X10D.Collections.ListExtensions.Random%60%601(IReadOnlyList%7B%60%600%7D%2CSystem.Nullable%7BRandom%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/Collections/ListExtensions.cs/#L233">View Source</a>
</span>
<a id="X10D_Collections_ListExtensions_Random_" data-uid="X10D.Collections.ListExtensions.Random*"></a>
<h4 id="X10D_Collections_ListExtensions_Random__1_IReadOnlyList___0__System_Nullable_Random__" data-uid="X10D.Collections.ListExtensions.Random``1(IReadOnlyList{``0},System.Nullable{Random})">Random&lt;T&gt;(IReadOnlyList&lt;T&gt;, Nullable&lt;Random&gt;)</h4>
<div class="markdown level1 summary"><p>Returns a random element from the current list using a specified <see cref="!:System.Random"></see> instance.</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 Random&lt;T&gt;(this IReadOnlyList&lt;T&gt; source, Random? random = null)</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">IReadOnlyList</span>&lt;T&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>The source collection from which to draw.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Nullable</span>&lt;<span class="xref">Random</span>&gt;</td>
<td><span class="parametername">random</span></td>
<td><p>The <see cref="!:System.Random"></see> instance to use for the shuffling. If <span class="xref">null</span> is specified, a shared
instance is used.</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">T</span></td>
<td><p>A random element of type <code data-dev-comment-type="typeparamref" class="typeparamref">T</code> from <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 element type.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="X10D_Collections_ListExtensions_Random__1_IReadOnlyList___0__System_Nullable_Random___examples">Examples</h5>
<pre><code>var list = new List&lt;int> { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
var number = list.Random();</code></pre>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Collections_ListExtensions_RemoveRange__1_IList___0__Range_.md&amp;value=---%0Auid%3A%20X10D.Collections.ListExtensions.RemoveRange%60%601(IList%7B%60%600%7D%2CRange)%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/Collections/ListExtensions.cs/#L261">View Source</a>
</span>
<a id="X10D_Collections_ListExtensions_RemoveRange_" data-uid="X10D.Collections.ListExtensions.RemoveRange*"></a>
<h4 id="X10D_Collections_ListExtensions_RemoveRange__1_IList___0__Range_" data-uid="X10D.Collections.ListExtensions.RemoveRange``1(IList{``0},Range)">RemoveRange&lt;T&gt;(IList&lt;T&gt;, Range)</h4>
<div class="markdown level1 summary"><p>Removes a range of elements from the list.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static void RemoveRange&lt;T&gt;(this IList&lt;T&gt; source, Range range)</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">IList</span>&lt;T&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>The list whose elements to remove.</p>
</td>
</tr>
<tr>
<td><span class="xref">Range</span></td>
<td><span class="parametername">range</span></td>
<td><p>The range of elements to remove.</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_Collections_ListExtensions_Shuffle__1_IList___0__System_Nullable_Random__.md&amp;value=---%0Auid%3A%20X10D.Collections.ListExtensions.Shuffle%60%601(IList%7B%60%600%7D%2CSystem.Nullable%7BRandom%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/Collections/ListExtensions.cs/#L301">View Source</a>
</span>
<a id="X10D_Collections_ListExtensions_Shuffle_" data-uid="X10D.Collections.ListExtensions.Shuffle*"></a>
<h4 id="X10D_Collections_ListExtensions_Shuffle__1_IList___0__System_Nullable_Random__" data-uid="X10D.Collections.ListExtensions.Shuffle``1(IList{``0},System.Nullable{Random})">Shuffle&lt;T&gt;(IList&lt;T&gt;, Nullable&lt;Random&gt;)</h4>
<div class="markdown level1 summary"><p>Reorganizes the elements in a list by implementing a Fisher-Yates shuffle.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static void Shuffle&lt;T&gt;(this IList&lt;T&gt; source, Random? random = null)</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">IList</span>&lt;T&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>The <see cref="!:IList&lt;T>"></see> to shuffle.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Nullable</span>&lt;<span class="xref">Random</span>&gt;</td>
<td><span class="parametername">random</span></td>
<td><p>The <see cref="!:System.Random"></see> instance to use for the shuffling. If <span class="xref">null</span> is specified, a shared
instance is used.</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 element type.</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_Collections_ListExtensions_Slice__1_IReadOnlyList___0__System_Int32_.md&amp;value=---%0Auid%3A%20X10D.Collections.ListExtensions.Slice%60%601(IReadOnlyList%7B%60%600%7D%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Collections/ListExtensions.cs/#L335">View Source</a>
</span>
<a id="X10D_Collections_ListExtensions_Slice_" data-uid="X10D.Collections.ListExtensions.Slice*"></a>
<h4 id="X10D_Collections_ListExtensions_Slice__1_IReadOnlyList___0__System_Int32_" data-uid="X10D.Collections.ListExtensions.Slice``1(IReadOnlyList{``0},System.Int32)">Slice&lt;T&gt;(IReadOnlyList&lt;T&gt;, Int32)</h4>
<div class="markdown level1 summary"><p>Forms a slice out of the current list that begins at a specified index.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static IReadOnlyList&lt;T&gt; Slice&lt;T&gt;(this IReadOnlyList&lt;T&gt; source, int start)</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">IReadOnlyList</span>&lt;T&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>The list to slice.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">start</span></td>
<td><p>The index at which to begin the slice.</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">IReadOnlyList</span>&lt;T&gt;</td>
<td><p>A list that consists of all elements of the current list from <code data-dev-comment-type="paramref" class="paramref">start</code> to the end of the list.</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 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_Collections_ListExtensions_Slice__1_IReadOnlyList___0__System_Int32_System_Int32_.md&amp;value=---%0Auid%3A%20X10D.Collections.ListExtensions.Slice%60%601(IReadOnlyList%7B%60%600%7D%2CSystem.Int32%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Collections/ListExtensions.cs/#L364">View Source</a>
</span>
<a id="X10D_Collections_ListExtensions_Slice_" data-uid="X10D.Collections.ListExtensions.Slice*"></a>
<h4 id="X10D_Collections_ListExtensions_Slice__1_IReadOnlyList___0__System_Int32_System_Int32_" data-uid="X10D.Collections.ListExtensions.Slice``1(IReadOnlyList{``0},System.Int32,System.Int32)">Slice&lt;T&gt;(IReadOnlyList&lt;T&gt;, Int32, Int32)</h4>
<div class="markdown level1 summary"><p>Forms a slice out of the current list that begins at a specified index for a specified length.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static IReadOnlyList&lt;T&gt; Slice&lt;T&gt;(this IReadOnlyList&lt;T&gt; source, int start, int length)</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">IReadOnlyList</span>&lt;T&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>The list to slice.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">start</span></td>
<td><p>The index at which to begin the slice.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">length</span></td>
<td><p>The desired length for the slice.</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">IReadOnlyList</span>&lt;T&gt;</td>
<td><p>A list that consists of all elements of the current list from <code data-dev-comment-type="paramref" class="paramref">start</code> to the end of the list.</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 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_Collections_ListExtensions_Swap__1_IList___0__IList___0__.md&amp;value=---%0Auid%3A%20X10D.Collections.ListExtensions.Swap%60%601(IList%7B%60%600%7D%2CIList%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/Collections/ListExtensions.cs/#L407">View Source</a>
</span>
<a id="X10D_Collections_ListExtensions_Swap_" data-uid="X10D.Collections.ListExtensions.Swap*"></a>
<h4 id="X10D_Collections_ListExtensions_Swap__1_IList___0__IList___0__" data-uid="X10D.Collections.ListExtensions.Swap``1(IList{``0},IList{``0})">Swap&lt;T&gt;(IList&lt;T&gt;, IList&lt;T&gt;)</h4>
<div class="markdown level1 summary"><p>Swaps all elements in a list with the elements in another list.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static void Swap&lt;T&gt;(this IList&lt;T&gt; source, IList&lt;T&gt; other)</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">IList</span>&lt;T&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>The first list.</p>
</td>
</tr>
<tr>
<td><span class="xref">IList</span>&lt;T&gt;</td>
<td><span class="parametername">other</span></td>
<td><p>The second list.</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> and <code data-dev-comment-type="paramref" class="paramref">other</code>.</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>

View File

@ -0,0 +1,702 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class SpanExtensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class SpanExtensions
| 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.Collections.SpanExtensions">
<h1 id="X10D_Collections_SpanExtensions" data-uid="X10D.Collections.SpanExtensions" class="text-break">Class SpanExtensions
</h1>
<div class="markdown level0 summary"><p>Extension methods for <see cref="!:Span&lt;T>"></see> and <see cref="!:ReadOnlySpan&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">SpanExtensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.Collections.html">X10D.Collections</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_Collections_SpanExtensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class SpanExtensions : 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_Collections_SpanExtensions_AsReadOnly__1_Span___0___.md&amp;value=---%0Auid%3A%20X10D.Collections.SpanExtensions.AsReadOnly%60%601(Span%7B%60%600%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/oliverbooth/X10D/blob/main/X10D/src/Collections/SpanExtensions.cs/#L51">View Source</a>
</span>
<a id="X10D_Collections_SpanExtensions_AsReadOnly_" data-uid="X10D.Collections.SpanExtensions.AsReadOnly*"></a>
<h4 id="X10D_Collections_SpanExtensions_AsReadOnly__1_Span___0___" data-uid="X10D.Collections.SpanExtensions.AsReadOnly``1(Span{``0}@)">AsReadOnly&lt;T&gt;(Span&lt;T&gt;)</h4>
<div class="markdown level1 summary"><p>Returns a read-only <see cref="!:ReadOnlySpan&lt;T>"></see> wrapper for the current span.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static ReadOnlySpan&lt;T&gt; AsReadOnly&lt;T&gt;(this in Span&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">Span</span>&lt;T&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>The source span.</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">ReadOnlySpan</span>&lt;T&gt;</td>
<td><p>A <see cref="!:ReadOnlySpan&lt;T>"></see> which wraps the elements 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 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_Collections_SpanExtensions_Count__1_ReadOnlySpan___0_____0_.md&amp;value=---%0Auid%3A%20X10D.Collections.SpanExtensions.Count%60%601(ReadOnlySpan%7B%60%600%7D%40%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/Collections/SpanExtensions.cs/#L28">View Source</a>
</span>
<a id="X10D_Collections_SpanExtensions_Count_" data-uid="X10D.Collections.SpanExtensions.Count*"></a>
<h4 id="X10D_Collections_SpanExtensions_Count__1_ReadOnlySpan___0_____0_" data-uid="X10D.Collections.SpanExtensions.Count``1(ReadOnlySpan{``0}@,``0)">Count&lt;T&gt;(ReadOnlySpan&lt;T&gt;, T)</h4>
<div class="markdown level1 summary"><p>Returns the number of times that a specified element appears in a read-only span of elements of the same type.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static int Count&lt;T&gt;(this in ReadOnlySpan&lt;T&gt; source, T element)
where T : IEquatable&lt;T&gt;</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">ReadOnlySpan</span>&lt;T&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>The source to search.</p>
</td>
</tr>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">element</span></td>
<td><p>The element to count.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>The number of times that <code data-dev-comment-type="paramref" class="paramref">element</code> appears 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 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_Collections_SpanExtensions_Count__1_Span___0_____0_.md&amp;value=---%0Auid%3A%20X10D.Collections.SpanExtensions.Count%60%601(Span%7B%60%600%7D%40%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/Collections/SpanExtensions.cs/#L15">View Source</a>
</span>
<a id="X10D_Collections_SpanExtensions_Count_" data-uid="X10D.Collections.SpanExtensions.Count*"></a>
<h4 id="X10D_Collections_SpanExtensions_Count__1_Span___0_____0_" data-uid="X10D.Collections.SpanExtensions.Count``1(Span{``0}@,``0)">Count&lt;T&gt;(Span&lt;T&gt;, T)</h4>
<div class="markdown level1 summary"><p>Returns the number of times that a specified element appears in a span of elements of the same type.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static int Count&lt;T&gt;(this in Span&lt;T&gt; source, T element)
where T : IEquatable&lt;T&gt;</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">Span</span>&lt;T&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>The source to search.</p>
</td>
</tr>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">element</span></td>
<td><p>The element to count.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>The number of times that <code data-dev-comment-type="paramref" class="paramref">element</code> appears 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 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_Collections_SpanExtensions_Replace__1_Span___0____0___0_.md&amp;value=---%0Auid%3A%20X10D.Collections.SpanExtensions.Replace%60%601(Span%7B%60%600%7D%2C%60%600%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/Collections/SpanExtensions.cs/#L63">View Source</a>
</span>
<a id="X10D_Collections_SpanExtensions_Replace_" data-uid="X10D.Collections.SpanExtensions.Replace*"></a>
<h4 id="X10D_Collections_SpanExtensions_Replace__1_Span___0____0___0_" data-uid="X10D.Collections.SpanExtensions.Replace``1(Span{``0},``0,``0)">Replace&lt;T&gt;(Span&lt;T&gt;, T, T)</h4>
<div class="markdown level1 summary"><p>Replaces all occurrences of a specified element in a span of elements with another specified element.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static void Replace&lt;T&gt;(this Span&lt;T&gt; haystack, T needle, T replacement)
where T : struct</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">Span</span>&lt;T&gt;</td>
<td><span class="parametername">haystack</span></td>
<td><p>The source span.</p>
</td>
</tr>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">needle</span></td>
<td><p>The element to replace.</p>
</td>
</tr>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">replacement</span></td>
<td><p>The replacement element.</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 elements in <code data-dev-comment-type="paramref" class="paramref">haystack</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_Collections_SpanExtensions_Split__1_ReadOnlySpan___0_____0_.md&amp;value=---%0Auid%3A%20X10D.Collections.SpanExtensions.Split%60%601(ReadOnlySpan%7B%60%600%7D%40%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/Collections/SpanExtensions.cs/#L100">View Source</a>
</span>
<a id="X10D_Collections_SpanExtensions_Split_" data-uid="X10D.Collections.SpanExtensions.Split*"></a>
<h4 id="X10D_Collections_SpanExtensions_Split__1_ReadOnlySpan___0_____0_" data-uid="X10D.Collections.SpanExtensions.Split``1(ReadOnlySpan{``0}@,``0)">Split&lt;T&gt;(ReadOnlySpan&lt;T&gt;, T)</h4>
<div class="markdown level1 summary"><p>Splits a span of elements into sub-spans based on a delimiting element.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static SpanSplitEnumerator&lt;T&gt; Split&lt;T&gt;(this in ReadOnlySpan&lt;T&gt; source, T delimiter)
where T : struct, IEquatable&lt;T&gt;</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">ReadOnlySpan</span>&lt;T&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>The span to split.</p>
</td>
</tr>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">delimiter</span></td>
<td><p>The delimiting 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><a class="xref" href="X10D.Collections.SpanSplitEnumerator-1.html">SpanSplitEnumerator</a>&lt;T&gt;</td>
<td><p>An enumerator which wraps <code data-dev-comment-type="paramref" class="paramref">source</code> and delimits the elements based on <code data-dev-comment-type="paramref" class="paramref">delimiter</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 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_Collections_SpanExtensions_Split__1_ReadOnlySpan___0___ReadOnlySpan___0___.md&amp;value=---%0Auid%3A%20X10D.Collections.SpanExtensions.Split%60%601(ReadOnlySpan%7B%60%600%7D%40%2CReadOnlySpan%7B%60%600%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/oliverbooth/X10D/blob/main/X10D/src/Collections/SpanExtensions.cs/#L130">View Source</a>
</span>
<a id="X10D_Collections_SpanExtensions_Split_" data-uid="X10D.Collections.SpanExtensions.Split*"></a>
<h4 id="X10D_Collections_SpanExtensions_Split__1_ReadOnlySpan___0___ReadOnlySpan___0___" data-uid="X10D.Collections.SpanExtensions.Split``1(ReadOnlySpan{``0}@,ReadOnlySpan{``0}@)">Split&lt;T&gt;(ReadOnlySpan&lt;T&gt;, ReadOnlySpan&lt;T&gt;)</h4>
<div class="markdown level1 summary"><p>Splits a span of elements into sub-spans based on a span of delimiting elements.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static SpanSplitEnumerator&lt;T&gt; Split&lt;T&gt;(this in ReadOnlySpan&lt;T&gt; source, in ReadOnlySpan&lt;T&gt; delimiter)
where T : struct, IEquatable&lt;T&gt;</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">ReadOnlySpan</span>&lt;T&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>The span to split.</p>
</td>
</tr>
<tr>
<td><span class="xref">ReadOnlySpan</span>&lt;T&gt;</td>
<td><span class="parametername">delimiter</span></td>
<td><p>The span of delimiting elements.</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="X10D.Collections.SpanSplitEnumerator-1.html">SpanSplitEnumerator</a>&lt;T&gt;</td>
<td><p>An enumerator which wraps <code data-dev-comment-type="paramref" class="paramref">source</code> and delimits the elements based on <code data-dev-comment-type="paramref" class="paramref">delimiter</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 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_Collections_SpanExtensions_Split__1_Span___0_____0_.md&amp;value=---%0Auid%3A%20X10D.Collections.SpanExtensions.Split%60%601(Span%7B%60%600%7D%40%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/Collections/SpanExtensions.cs/#L85">View Source</a>
</span>
<a id="X10D_Collections_SpanExtensions_Split_" data-uid="X10D.Collections.SpanExtensions.Split*"></a>
<h4 id="X10D_Collections_SpanExtensions_Split__1_Span___0_____0_" data-uid="X10D.Collections.SpanExtensions.Split``1(Span{``0}@,``0)">Split&lt;T&gt;(Span&lt;T&gt;, T)</h4>
<div class="markdown level1 summary"><p>Splits a span of elements into sub-spans based on a delimiting element.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static SpanSplitEnumerator&lt;T&gt; Split&lt;T&gt;(this in Span&lt;T&gt; source, T delimiter)
where T : struct, IEquatable&lt;T&gt;</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">Span</span>&lt;T&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>The span to split.</p>
</td>
</tr>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">delimiter</span></td>
<td><p>The delimiting 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><a class="xref" href="X10D.Collections.SpanSplitEnumerator-1.html">SpanSplitEnumerator</a>&lt;T&gt;</td>
<td><p>An enumerator which wraps <code data-dev-comment-type="paramref" class="paramref">source</code> and delimits the elements based on <code data-dev-comment-type="paramref" class="paramref">delimiter</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 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_Collections_SpanExtensions_Split__1_Span___0___ReadOnlySpan___0___.md&amp;value=---%0Auid%3A%20X10D.Collections.SpanExtensions.Split%60%601(Span%7B%60%600%7D%40%2CReadOnlySpan%7B%60%600%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/oliverbooth/X10D/blob/main/X10D/src/Collections/SpanExtensions.cs/#L115">View Source</a>
</span>
<a id="X10D_Collections_SpanExtensions_Split_" data-uid="X10D.Collections.SpanExtensions.Split*"></a>
<h4 id="X10D_Collections_SpanExtensions_Split__1_Span___0___ReadOnlySpan___0___" data-uid="X10D.Collections.SpanExtensions.Split``1(Span{``0}@,ReadOnlySpan{``0}@)">Split&lt;T&gt;(Span&lt;T&gt;, ReadOnlySpan&lt;T&gt;)</h4>
<div class="markdown level1 summary"><p>Splits a span of elements into sub-spans based on a span of delimiting elements.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static SpanSplitEnumerator&lt;T&gt; Split&lt;T&gt;(this in Span&lt;T&gt; source, in ReadOnlySpan&lt;T&gt; delimiter)
where T : struct, IEquatable&lt;T&gt;</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">Span</span>&lt;T&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>The span to split.</p>
</td>
</tr>
<tr>
<td><span class="xref">ReadOnlySpan</span>&lt;T&gt;</td>
<td><span class="parametername">delimiter</span></td>
<td><p>The span of delimiting elements.</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="X10D.Collections.SpanSplitEnumerator-1.html">SpanSplitEnumerator</a>&lt;T&gt;</td>
<td><p>An enumerator which wraps <code data-dev-comment-type="paramref" class="paramref">source</code> and delimits the elements based on <code data-dev-comment-type="paramref" class="paramref">delimiter</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 elements in <code data-dev-comment-type="paramref" class="paramref">source</code>.</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>

View File

@ -0,0 +1,332 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Struct SpanSplitEnumerator&lt;T&gt;
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Struct SpanSplitEnumerator&lt;T&gt;
| 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.Collections.SpanSplitEnumerator`1">
<h1 id="X10D_Collections_SpanSplitEnumerator_1" data-uid="X10D.Collections.SpanSplitEnumerator`1" class="text-break">Struct SpanSplitEnumerator&lt;T&gt;
</h1>
<div class="markdown level0 summary"><p>Enumerates the elements of a <see cref="!:ReadOnlySpan&lt;T>"></see>.</p>
</div>
<div class="markdown level0 conceptual"></div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.Collections.html">X10D.Collections</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_Collections_SpanSplitEnumerator_1_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public struct SpanSplitEnumerator&lt;T&gt;
where T : struct, IEquatable&lt;T&gt;</code></pre>
</div>
<h5 class="typeParameters">Type Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="parametername">T</span></td>
<td><p>The type of elements in the span.</p>
</td>
</tr>
</tbody>
</table>
<h3 id="constructors">Constructors
</h3>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Collections_SpanSplitEnumerator_1__ctor_ReadOnlySpan__0___0_.md&amp;value=---%0Auid%3A%20X10D.Collections.SpanSplitEnumerator%601.%23ctor(ReadOnlySpan%7B%600%7D%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/oliverbooth/X10D/blob/main/X10D/src/Collections/SpanSplitEnumerator.cs/#L33">View Source</a>
</span>
<a id="X10D_Collections_SpanSplitEnumerator_1__ctor_" data-uid="X10D.Collections.SpanSplitEnumerator`1.#ctor*"></a>
<h4 id="X10D_Collections_SpanSplitEnumerator_1__ctor_ReadOnlySpan__0___0_" data-uid="X10D.Collections.SpanSplitEnumerator`1.#ctor(ReadOnlySpan{`0},`0)">SpanSplitEnumerator(ReadOnlySpan&lt;T&gt;, T)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="X10D.Collections.SpanSplitEnumerator-1.html">SpanSplitEnumerator&lt;T&gt;</a> struct.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public SpanSplitEnumerator(ReadOnlySpan&lt;T&gt; source, T delimiter)</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">ReadOnlySpan</span>&lt;T&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>The source span.</p>
</td>
</tr>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">delimiter</span></td>
<td><p>The delimiting element.</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_Collections_SpanSplitEnumerator_1__ctor_ReadOnlySpan__0__ReadOnlySpan__0__.md&amp;value=---%0Auid%3A%20X10D.Collections.SpanSplitEnumerator%601.%23ctor(ReadOnlySpan%7B%600%7D%2CReadOnlySpan%7B%600%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Collections/SpanSplitEnumerator.cs/#L19">View Source</a>
</span>
<a id="X10D_Collections_SpanSplitEnumerator_1__ctor_" data-uid="X10D.Collections.SpanSplitEnumerator`1.#ctor*"></a>
<h4 id="X10D_Collections_SpanSplitEnumerator_1__ctor_ReadOnlySpan__0__ReadOnlySpan__0__" data-uid="X10D.Collections.SpanSplitEnumerator`1.#ctor(ReadOnlySpan{`0},ReadOnlySpan{`0})">SpanSplitEnumerator(ReadOnlySpan&lt;T&gt;, ReadOnlySpan&lt;T&gt;)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="X10D.Collections.SpanSplitEnumerator-1.html">SpanSplitEnumerator&lt;T&gt;</a> struct.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public SpanSplitEnumerator(ReadOnlySpan&lt;T&gt; source, ReadOnlySpan&lt;T&gt; delimiter)</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">ReadOnlySpan</span>&lt;T&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>The source span.</p>
</td>
</tr>
<tr>
<td><span class="xref">ReadOnlySpan</span>&lt;T&gt;</td>
<td><span class="parametername">delimiter</span></td>
<td><p>The delimiting span of elements.</p>
</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/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Collections_SpanSplitEnumerator_1_Current.md&amp;value=---%0Auid%3A%20X10D.Collections.SpanSplitEnumerator%601.Current%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/Collections/SpanSplitEnumerator.cs/#L46">View Source</a>
</span>
<a id="X10D_Collections_SpanSplitEnumerator_1_Current_" data-uid="X10D.Collections.SpanSplitEnumerator`1.Current*"></a>
<h4 id="X10D_Collections_SpanSplitEnumerator_1_Current" data-uid="X10D.Collections.SpanSplitEnumerator`1.Current">Current</h4>
<div class="markdown level1 summary"><p>Gets the element at the current position of the enumerator.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public ReadOnlySpan&lt;T&gt; Current { 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">ReadOnlySpan</span>&lt;T&gt;</td>
<td><p>The element in the <see cref="!:ReadOnlySpan&lt;T>"></see> at the current position of the enumerator.</p>
</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/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Collections_SpanSplitEnumerator_1_GetEnumerator.md&amp;value=---%0Auid%3A%20X10D.Collections.SpanSplitEnumerator%601.GetEnumerator%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/Collections/SpanSplitEnumerator.cs/#L56">View Source</a>
</span>
<a id="X10D_Collections_SpanSplitEnumerator_1_GetEnumerator_" data-uid="X10D.Collections.SpanSplitEnumerator`1.GetEnumerator*"></a>
<h4 id="X10D_Collections_SpanSplitEnumerator_1_GetEnumerator" data-uid="X10D.Collections.SpanSplitEnumerator`1.GetEnumerator">GetEnumerator()</h4>
<div class="markdown level1 summary"><p>Returns the current enumerator.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public SpanSplitEnumerator&lt;T&gt; GetEnumerator()</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="X10D.Collections.SpanSplitEnumerator-1.html">SpanSplitEnumerator</a>&lt;T&gt;</td>
<td><p>The current instance of <a class="xref" href="X10D.Collections.SpanSplitEnumerator-1.html">SpanSplitEnumerator&lt;T&gt;</a>.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="X10D_Collections_SpanSplitEnumerator_1_GetEnumerator_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method exists to provide the ability to enumerate within a <code>foreach</code> loop. It should not be called
manually.</p>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Collections_SpanSplitEnumerator_1_MoveNext.md&amp;value=---%0Auid%3A%20X10D.Collections.SpanSplitEnumerator%601.MoveNext%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/Collections/SpanSplitEnumerator.cs/#L68">View Source</a>
</span>
<a id="X10D_Collections_SpanSplitEnumerator_1_MoveNext_" data-uid="X10D.Collections.SpanSplitEnumerator`1.MoveNext*"></a>
<h4 id="X10D_Collections_SpanSplitEnumerator_1_MoveNext" data-uid="X10D.Collections.SpanSplitEnumerator`1.MoveNext">MoveNext()</h4>
<div class="markdown level1 summary"><p>Advances the enumerator to the next element of the <see cref="!:ReadOnlySpan&lt;T>"></see>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public bool MoveNext()</code></pre>
</div>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td><p><span class="xref">true</span> if the enumerator was successfully advanced to the next element; <span class="xref">false</span>
if the enumerator has passed the end of the span.</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>

161
api/X10D.Collections.html Normal file
View File

@ -0,0 +1,161 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Namespace X10D.Collections
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Namespace X10D.Collections
| 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.Collections">
<h1 id="X10D_Collections" data-uid="X10D.Collections" class="text-break">Namespace X10D.Collections
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>
<div class="markdown level0 remarks"></div>
<h3 id="classes">Classes
</h3>
<h5><a class="xref" href="X10D.Collections.ArrayExtensions.html">ArrayExtensions</a></h5>
<section><p>Extension methods for <see cref="!:Array"></see>.</p>
</section>
<h5><a class="xref" href="X10D.Collections.BoolListExtensions.html">BoolListExtensions</a></h5>
<section><p>Collection-related extension methods for <see cref="!:IReadOnlyList&lt;T>"></see> of <see cref="!:System.Boolean"></see>.</p>
</section>
<h5><a class="xref" href="X10D.Collections.ByteExtensions.html">ByteExtensions</a></h5>
<section><p>Collection-related extension methods for <see cref="!:System.Byte"></see>.</p>
</section>
<h5><a class="xref" href="X10D.Collections.CollectionExtensions.html">CollectionExtensions</a></h5>
<section><p>Collection-related extension methods for <see cref="!:ICollection&lt;T>"></see>.</p>
</section>
<h5><a class="xref" href="X10D.Collections.DictionaryExtensions.html">DictionaryExtensions</a></h5>
<section><p>Extension methods for <see cref="!:Dictionary&lt;TKey,TValue>"></see> and similar types.</p>
</section>
<h5><a class="xref" href="X10D.Collections.EnumerableExtensions.html">EnumerableExtensions</a></h5>
<section><p>Extension methods for <see cref="!:IEnumerable&lt;T>"></see>.</p>
</section>
<h5><a class="xref" href="X10D.Collections.Int16Extensions.html">Int16Extensions</a></h5>
<section><p>Collection-related extension methods for <see cref="!:System.Int16"></see>.</p>
</section>
<h5><a class="xref" href="X10D.Collections.Int32Extensions.html">Int32Extensions</a></h5>
<section><p>Collection-related extension methods for <see cref="!:System.Int32"></see>.</p>
</section>
<h5><a class="xref" href="X10D.Collections.Int64Extensions.html">Int64Extensions</a></h5>
<section><p>Collection-related extension methods for <see cref="!:System.Int64"></see>.</p>
</section>
<h5><a class="xref" href="X10D.Collections.ListExtensions.html">ListExtensions</a></h5>
<section><p>Extension methods for <see cref="!:IList&lt;T>"></see> and <see cref="!:IReadOnlyList&lt;T>"></see>.</p>
</section>
<h5><a class="xref" href="X10D.Collections.SpanExtensions.html">SpanExtensions</a></h5>
<section><p>Extension methods for <see cref="!:Span&lt;T>"></see> and <see cref="!:ReadOnlySpan&lt;T>"></see></p>
</section>
<h3 id="structs">Structs
</h3>
<h5><a class="xref" href="X10D.Collections.SpanSplitEnumerator-1.html">SpanSplitEnumerator&lt;T&gt;</a></h5>
<section><p>Enumerates the elements of a <see cref="!:ReadOnlySpan&lt;T>"></see>.</p>
</section>
</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>

View File

@ -0,0 +1,407 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class EnumExtensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class EnumExtensions
| 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.Core.EnumExtensions">
<h1 id="X10D_Core_EnumExtensions" data-uid="X10D.Core.EnumExtensions" class="text-break">Class EnumExtensions
</h1>
<div class="markdown level0 summary"><p>Extension methods for <span class="xref">langword_csharp_enum</span> types.</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">EnumExtensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.Core.html">X10D.Core</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_Core_EnumExtensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class EnumExtensions : 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_Core_EnumExtensions_Next__1___0_.md&amp;value=---%0Auid%3A%20X10D.Core.EnumExtensions.Next%60%601(%60%600)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Core/EnumExtensions.cs/#L19">View Source</a>
</span>
<a id="X10D_Core_EnumExtensions_Next_" data-uid="X10D.Core.EnumExtensions.Next*"></a>
<h4 id="X10D_Core_EnumExtensions_Next__1___0_" data-uid="X10D.Core.EnumExtensions.Next``1(``0)">Next&lt;T&gt;(T)</h4>
<div class="markdown level1 summary"><p>Returns the value which is defined proceeding this value in the enumeration.</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 Next&lt;T&gt;(this T value)
where T : struct, Enum</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose proceeding value to retrieve.</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">T</span></td>
<td><p>A value of <code data-dev-comment-type="typeparamref" class="typeparamref">T</code> that is considered to be the next value defined after <code data-dev-comment-type="paramref" class="paramref">value</code>,
or the first value if <code data-dev-comment-type="paramref" class="paramref">value</code> is the final field of the enumeration.</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 enumeration.</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_Core_EnumExtensions_NextUnchecked__1___0_.md&amp;value=---%0Auid%3A%20X10D.Core.EnumExtensions.NextUnchecked%60%601(%60%600)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Core/EnumExtensions.cs/#L43">View Source</a>
</span>
<a id="X10D_Core_EnumExtensions_NextUnchecked_" data-uid="X10D.Core.EnumExtensions.NextUnchecked*"></a>
<h4 id="X10D_Core_EnumExtensions_NextUnchecked__1___0_" data-uid="X10D.Core.EnumExtensions.NextUnchecked``1(``0)">NextUnchecked&lt;T&gt;(T)</h4>
<div class="markdown level1 summary"><p>Returns the value which is defined proceeding this value in the enumeration.</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 NextUnchecked&lt;T&gt;(this T value)
where T : struct, Enum</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose proceeding value to retrieve.</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">T</span></td>
<td><p>A value of <code data-dev-comment-type="typeparamref" class="typeparamref">T</code> that is considered to be the next value defined after
<code data-dev-comment-type="paramref" class="paramref">value</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 enumeration.</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_Core_EnumExtensions_Previous__1___0_.md&amp;value=---%0Auid%3A%20X10D.Core.EnumExtensions.Previous%60%601(%60%600)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Core/EnumExtensions.cs/#L65">View Source</a>
</span>
<a id="X10D_Core_EnumExtensions_Previous_" data-uid="X10D.Core.EnumExtensions.Previous*"></a>
<h4 id="X10D_Core_EnumExtensions_Previous__1___0_" data-uid="X10D.Core.EnumExtensions.Previous``1(``0)">Previous&lt;T&gt;(T)</h4>
<div class="markdown level1 summary"><p>Returns the value which is defined preceeding this value in the enumeration.</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 Previous&lt;T&gt;(this T value)
where T : struct, Enum</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose preceeding value to retrieve.</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">T</span></td>
<td><p>A value of <code data-dev-comment-type="typeparamref" class="typeparamref">T</code> that is considered to be the previous value defined after
<code data-dev-comment-type="paramref" class="paramref">value</code>, or the last value if <code data-dev-comment-type="paramref" class="paramref">value</code> is the first field of the enumeration.</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 enumeration.</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_Core_EnumExtensions_PreviousUnchecked__1___0_.md&amp;value=---%0Auid%3A%20X10D.Core.EnumExtensions.PreviousUnchecked%60%601(%60%600)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Core/EnumExtensions.cs/#L93">View Source</a>
</span>
<a id="X10D_Core_EnumExtensions_PreviousUnchecked_" data-uid="X10D.Core.EnumExtensions.PreviousUnchecked*"></a>
<h4 id="X10D_Core_EnumExtensions_PreviousUnchecked__1___0_" data-uid="X10D.Core.EnumExtensions.PreviousUnchecked``1(``0)">PreviousUnchecked&lt;T&gt;(T)</h4>
<div class="markdown level1 summary"><p>Returns the value which is defined preceeding this value in the enumeration.</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 PreviousUnchecked&lt;T&gt;(this T value)
where T : struct, Enum</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose preceeding value to retrieve.</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">T</span></td>
<td><p>A value of <code data-dev-comment-type="typeparamref" class="typeparamref">T</code> that is considered to be the previous value defined after
<code data-dev-comment-type="paramref" class="paramref">value</code>, or the last value if <code data-dev-comment-type="paramref" class="paramref">value</code> is the first field of the enumeration.</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 enumeration.</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>

View File

@ -0,0 +1,339 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class Extensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class Extensions
| 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.Core.Extensions">
<h1 id="X10D_Core_Extensions" data-uid="X10D.Core.Extensions" class="text-break">Class Extensions
</h1>
<div class="markdown level0 summary"><p>Extension methods which apply to all types.</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">Extensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.Core.html">X10D.Core</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_Core_Extensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class Extensions : 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_Core_Extensions_AsArrayValue__1___0_.md&amp;value=---%0Auid%3A%20X10D.Core.Extensions.AsArrayValue%60%601(%60%600)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Core/Extensions.cs/#L18">View Source</a>
</span>
<a id="X10D_Core_Extensions_AsArrayValue_" data-uid="X10D.Core.Extensions.AsArrayValue*"></a>
<h4 id="X10D_Core_Extensions_AsArrayValue__1___0_" data-uid="X10D.Core.Extensions.AsArrayValue``1(``0)">AsArrayValue&lt;T&gt;(T)</h4>
<div class="markdown level1 summary"><p>Returns an array containing the 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 T[] AsArrayValue&lt;T&gt;(this T value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to encapsulate.</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>T[]</td>
<td><p>An array of type <code data-dev-comment-type="typeparamref" class="typeparamref">T</code> with length 1, whose only element is <code data-dev-comment-type="paramref" class="paramref">value</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 <code data-dev-comment-type="paramref" class="paramref">value</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_Core_Extensions_AsEnumerableValue__1___0_.md&amp;value=---%0Auid%3A%20X10D.Core.Extensions.AsEnumerableValue%60%601(%60%600)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Core/Extensions.cs/#L32">View Source</a>
</span>
<a id="X10D_Core_Extensions_AsEnumerableValue_" data-uid="X10D.Core.Extensions.AsEnumerableValue*"></a>
<h4 id="X10D_Core_Extensions_AsEnumerableValue__1___0_" data-uid="X10D.Core.Extensions.AsEnumerableValue``1(``0)">AsEnumerableValue&lt;T&gt;(T)</h4>
<div class="markdown level1 summary"><p>Returns an enumerable collection containing the 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;T&gt; AsEnumerableValue&lt;T&gt;(this T value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to encapsulate.</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;T&gt;</td>
<td><p>An enumerable collection of type <code data-dev-comment-type="typeparamref" class="typeparamref">T</code>, whose only element is <code data-dev-comment-type="paramref" class="paramref">value</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 <code data-dev-comment-type="paramref" class="paramref">value</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_Core_Extensions_RepeatValue__1___0_System_Int32_.md&amp;value=---%0Auid%3A%20X10D.Core.Extensions.RepeatValue%60%601(%60%600%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Core/Extensions.cs/#L46">View Source</a>
</span>
<a id="X10D_Core_Extensions_RepeatValue_" data-uid="X10D.Core.Extensions.RepeatValue*"></a>
<h4 id="X10D_Core_Extensions_RepeatValue__1___0_System_Int32_" data-uid="X10D.Core.Extensions.RepeatValue``1(``0,System.Int32)">RepeatValue&lt;T&gt;(T, Int32)</h4>
<div class="markdown level1 summary"><p>Returns an enumerable collection containing the current value repeated a specified number of times.</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;T&gt; RepeatValue&lt;T&gt;(this T value, int count)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to repeat.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">count</span></td>
<td><p>The number of times to repeat <code data-dev-comment-type="paramref" class="paramref">value</code>.</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;T&gt;</td>
<td><p>An enumerable collection containing <code data-dev-comment-type="paramref" class="paramref">value</code> repeated <code data-dev-comment-type="paramref" class="paramref">count</code> times.</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 <code data-dev-comment-type="paramref" class="paramref">value</code>.</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>

View File

@ -0,0 +1,212 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class NullableExtensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class NullableExtensions
| 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.Core.NullableExtensions">
<h1 id="X10D_Core_NullableExtensions" data-uid="X10D.Core.NullableExtensions" class="text-break">Class NullableExtensions
</h1>
<div class="markdown level0 summary"><p>Extension methods for <see cref="!:Nullable&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">NullableExtensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.Core.html">X10D.Core</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_Core_NullableExtensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class NullableExtensions : 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_Core_NullableExtensions_TryGetValue__1_System_Nullable___0____0__.md&amp;value=---%0Auid%3A%20X10D.Core.NullableExtensions.TryGetValue%60%601(System.Nullable%7B%60%600%7D%2C%60%600%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/oliverbooth/X10D/blob/main/X10D/src/Core/NullableExtensions.cs/#L23">View Source</a>
</span>
<a id="X10D_Core_NullableExtensions_TryGetValue_" data-uid="X10D.Core.NullableExtensions.TryGetValue*"></a>
<h4 id="X10D_Core_NullableExtensions_TryGetValue__1_System_Nullable___0____0__" data-uid="X10D.Core.NullableExtensions.TryGetValue``1(System.Nullable{``0},``0@)">TryGetValue&lt;T&gt;(Nullable&lt;T&gt;, out T)</h4>
<div class="markdown level1 summary"><p>Attempts to get the value of a <see cref="!:Nullable&lt;T>"></see>, and returns a value indicating the success of the
operation.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool TryGetValue&lt;T&gt;(this T? value, out T result)
where T : struct</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.Nullable</span>&lt;T&gt;</td>
<td><span class="parametername">value</span></td>
<td><p>The nullable value.</p>
</td>
</tr>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">result</span></td>
<td><p>When this method returns, contains the result of <see cref="!:Nullable&lt;T>.Value"></see>, if
<see cref="!:Nullable&lt;T>.HasValue"></see> is <span class="xref">true</span>; otherwise, returns the default value for
<code data-dev-comment-type="typeparamref" class="typeparamref">T</code>.</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><span class="xref">true</span> if the value's <see cref="!:Nullable&lt;T>.HasValue"></see> is <span class="xref">true</span>; otherwise,
<span class="xref">false</span>.</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 value.</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>

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,684 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class SpanExtensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class SpanExtensions
| 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.Core.SpanExtensions">
<h1 id="X10D_Core_SpanExtensions" data-uid="X10D.Core.SpanExtensions" class="text-break">Class SpanExtensions
</h1>
<div class="markdown level0 summary"><p>Extension methods for <see cref="!:Span&lt;T>"></see> and <see cref="!:ReadOnlySpan&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">SpanExtensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.Core.html">X10D.Core</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_Core_SpanExtensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class SpanExtensions : 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_Core_SpanExtensions_Contains__1_ReadOnlySpan___0____0_.md&amp;value=---%0Auid%3A%20X10D.Core.SpanExtensions.Contains%60%601(ReadOnlySpan%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/Core/SpanExtensions.cs/#L70">View Source</a>
</span>
<a id="X10D_Core_SpanExtensions_Contains_" data-uid="X10D.Core.SpanExtensions.Contains*"></a>
<h4 id="X10D_Core_SpanExtensions_Contains__1_ReadOnlySpan___0____0_" data-uid="X10D.Core.SpanExtensions.Contains``1(ReadOnlySpan{``0},``0)">Contains&lt;T&gt;(ReadOnlySpan&lt;T&gt;, T)</h4>
<div class="markdown level1 summary"><p>Returns a value indicating whether a specific enumeration value is contained with the current readonly span of
elements.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool Contains&lt;T&gt;(this ReadOnlySpan&lt;T&gt; span, T value)
where T : struct, Enum</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">ReadOnlySpan</span>&lt;T&gt;</td>
<td><span class="parametername">span</span></td>
<td><p>The readonly span of elements.</p>
</td>
</tr>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to search for.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td><p><span class="xref">true</span> if <code data-dev-comment-type="paramref" class="paramref">value</code> is contained with <code data-dev-comment-type="paramref" class="paramref">span</code>; otherwise,
<span class="xref">false</span>.</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">span</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_Core_SpanExtensions_Contains__1_Span___0____0_.md&amp;value=---%0Auid%3A%20X10D.Core.SpanExtensions.Contains%60%601(Span%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/Core/SpanExtensions.cs/#L51">View Source</a>
</span>
<a id="X10D_Core_SpanExtensions_Contains_" data-uid="X10D.Core.SpanExtensions.Contains*"></a>
<h4 id="X10D_Core_SpanExtensions_Contains__1_Span___0____0_" data-uid="X10D.Core.SpanExtensions.Contains``1(Span{``0},``0)">Contains&lt;T&gt;(Span&lt;T&gt;, T)</h4>
<div class="markdown level1 summary"><p>Returns a value indicating whether a specific enumeration value is contained with the current span of elements.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool Contains&lt;T&gt;(this Span&lt;T&gt; span, T value)
where T : struct, Enum</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">Span</span>&lt;T&gt;</td>
<td><span class="parametername">span</span></td>
<td><p>The span of elements.</p>
</td>
</tr>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to search for.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td><p><span class="xref">true</span> if <code data-dev-comment-type="paramref" class="paramref">value</code> is contained with <code data-dev-comment-type="paramref" class="paramref">span</code>; otherwise,
<span class="xref">false</span>.</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">span</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_Core_SpanExtensions_PackByte_ReadOnlySpan_System_Boolean__.md&amp;value=---%0Auid%3A%20X10D.Core.SpanExtensions.PackByte(ReadOnlySpan%7BSystem.Boolean%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/Core/SpanExtensions.cs/#L149">View Source</a>
</span>
<a id="X10D_Core_SpanExtensions_PackByte_" data-uid="X10D.Core.SpanExtensions.PackByte*"></a>
<h4 id="X10D_Core_SpanExtensions_PackByte_ReadOnlySpan_System_Boolean__" data-uid="X10D.Core.SpanExtensions.PackByte(ReadOnlySpan{System.Boolean})">PackByte(ReadOnlySpan&lt;Boolean&gt;)</h4>
<div class="markdown level1 summary"><p>Packs a <see cref="!:ReadOnlySpan&lt;T>"></see> of booleans into a <see cref="!:System.Byte"></see>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static byte PackByte(this ReadOnlySpan&lt;bool&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">ReadOnlySpan</span>&lt;<span class="xref">System.Boolean</span>&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>The span of booleans to pack.</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.Byte</span></td>
<td><p>An 8-bit unsigned integer containing the packed booleans.</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_Core_SpanExtensions_PackByte_Span_System_Boolean__.md&amp;value=---%0Auid%3A%20X10D.Core.SpanExtensions.PackByte(Span%7BSystem.Boolean%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/Core/SpanExtensions.cs/#L136">View Source</a>
</span>
<a id="X10D_Core_SpanExtensions_PackByte_" data-uid="X10D.Core.SpanExtensions.PackByte*"></a>
<h4 id="X10D_Core_SpanExtensions_PackByte_Span_System_Boolean__" data-uid="X10D.Core.SpanExtensions.PackByte(Span{System.Boolean})">PackByte(Span&lt;Boolean&gt;)</h4>
<div class="markdown level1 summary"><p>Packs a <see cref="!:Span&lt;T>"></see> of booleans into a <see cref="!:System.Byte"></see>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static byte PackByte(this Span&lt;bool&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">Span</span>&lt;<span class="xref">System.Boolean</span>&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>The span of booleans to pack.</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.Byte</span></td>
<td><p>An 8-bit unsigned integer containing the packed booleans.</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_Core_SpanExtensions_PackInt16_ReadOnlySpan_System_Boolean__.md&amp;value=---%0Auid%3A%20X10D.Core.SpanExtensions.PackInt16(ReadOnlySpan%7BSystem.Boolean%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/Core/SpanExtensions.cs/#L203">View Source</a>
</span>
<a id="X10D_Core_SpanExtensions_PackInt16_" data-uid="X10D.Core.SpanExtensions.PackInt16*"></a>
<h4 id="X10D_Core_SpanExtensions_PackInt16_ReadOnlySpan_System_Boolean__" data-uid="X10D.Core.SpanExtensions.PackInt16(ReadOnlySpan{System.Boolean})">PackInt16(ReadOnlySpan&lt;Boolean&gt;)</h4>
<div class="markdown level1 summary"><p>Packs a <see cref="!:ReadOnlySpan&lt;T>"></see> of booleans into a <see cref="!:System.Int16"></see>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static short PackInt16(this ReadOnlySpan&lt;bool&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">ReadOnlySpan</span>&lt;<span class="xref">System.Boolean</span>&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>The span of booleans to pack.</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.Int16</span></td>
<td><p>A 16-bit signed integer containing the packed booleans.</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_Core_SpanExtensions_PackInt16_Span_System_Boolean__.md&amp;value=---%0Auid%3A%20X10D.Core.SpanExtensions.PackInt16(Span%7BSystem.Boolean%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/Core/SpanExtensions.cs/#L190">View Source</a>
</span>
<a id="X10D_Core_SpanExtensions_PackInt16_" data-uid="X10D.Core.SpanExtensions.PackInt16*"></a>
<h4 id="X10D_Core_SpanExtensions_PackInt16_Span_System_Boolean__" data-uid="X10D.Core.SpanExtensions.PackInt16(Span{System.Boolean})">PackInt16(Span&lt;Boolean&gt;)</h4>
<div class="markdown level1 summary"><p>Packs a <see cref="!:Span&lt;T>"></see> of booleans into a <see cref="!:System.Int16"></see>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static short PackInt16(this Span&lt;bool&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">Span</span>&lt;<span class="xref">System.Boolean</span>&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>The span of booleans to pack.</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.Int16</span></td>
<td><p>A 16-bit signed integer containing the packed booleans.</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_Core_SpanExtensions_PackInt32_ReadOnlySpan_System_Boolean__.md&amp;value=---%0Auid%3A%20X10D.Core.SpanExtensions.PackInt32(ReadOnlySpan%7BSystem.Boolean%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/Core/SpanExtensions.cs/#L255">View Source</a>
</span>
<a id="X10D_Core_SpanExtensions_PackInt32_" data-uid="X10D.Core.SpanExtensions.PackInt32*"></a>
<h4 id="X10D_Core_SpanExtensions_PackInt32_ReadOnlySpan_System_Boolean__" data-uid="X10D.Core.SpanExtensions.PackInt32(ReadOnlySpan{System.Boolean})">PackInt32(ReadOnlySpan&lt;Boolean&gt;)</h4>
<div class="markdown level1 summary"><p>Packs a <see cref="!:ReadOnlySpan&lt;T>"></see> of booleans into a <see cref="!:System.Int32"></see>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static int PackInt32(this ReadOnlySpan&lt;bool&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">ReadOnlySpan</span>&lt;<span class="xref">System.Boolean</span>&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>The span of booleans to pack.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>A 32-bit signed integer containing the packed booleans.</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_Core_SpanExtensions_PackInt32_Span_System_Boolean__.md&amp;value=---%0Auid%3A%20X10D.Core.SpanExtensions.PackInt32(Span%7BSystem.Boolean%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/Core/SpanExtensions.cs/#L242">View Source</a>
</span>
<a id="X10D_Core_SpanExtensions_PackInt32_" data-uid="X10D.Core.SpanExtensions.PackInt32*"></a>
<h4 id="X10D_Core_SpanExtensions_PackInt32_Span_System_Boolean__" data-uid="X10D.Core.SpanExtensions.PackInt32(Span{System.Boolean})">PackInt32(Span&lt;Boolean&gt;)</h4>
<div class="markdown level1 summary"><p>Packs a <see cref="!:Span&lt;T>"></see> of booleans into a <see cref="!:System.Int32"></see>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static int PackInt32(this Span&lt;bool&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">Span</span>&lt;<span class="xref">System.Boolean</span>&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>The span of booleans to pack.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>A 32-bit signed integer containing the packed booleans.</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_Core_SpanExtensions_PackInt64_ReadOnlySpan_System_Boolean__.md&amp;value=---%0Auid%3A%20X10D.Core.SpanExtensions.PackInt64(ReadOnlySpan%7BSystem.Boolean%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/Core/SpanExtensions.cs/#L319">View Source</a>
</span>
<a id="X10D_Core_SpanExtensions_PackInt64_" data-uid="X10D.Core.SpanExtensions.PackInt64*"></a>
<h4 id="X10D_Core_SpanExtensions_PackInt64_ReadOnlySpan_System_Boolean__" data-uid="X10D.Core.SpanExtensions.PackInt64(ReadOnlySpan{System.Boolean})">PackInt64(ReadOnlySpan&lt;Boolean&gt;)</h4>
<div class="markdown level1 summary"><p>Packs a <see cref="!:ReadOnlySpan&lt;T>"></see> of booleans into a <see cref="!:System.Int64"></see>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static long PackInt64(this ReadOnlySpan&lt;bool&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">ReadOnlySpan</span>&lt;<span class="xref">System.Boolean</span>&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>The span of booleans to pack.</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.Int64</span></td>
<td><p>A 64-bit signed integer containing the packed booleans.</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_Core_SpanExtensions_PackInt64_Span_System_Boolean__.md&amp;value=---%0Auid%3A%20X10D.Core.SpanExtensions.PackInt64(Span%7BSystem.Boolean%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/Core/SpanExtensions.cs/#L306">View Source</a>
</span>
<a id="X10D_Core_SpanExtensions_PackInt64_" data-uid="X10D.Core.SpanExtensions.PackInt64*"></a>
<h4 id="X10D_Core_SpanExtensions_PackInt64_Span_System_Boolean__" data-uid="X10D.Core.SpanExtensions.PackInt64(Span{System.Boolean})">PackInt64(Span&lt;Boolean&gt;)</h4>
<div class="markdown level1 summary"><p>Packs a <see cref="!:Span&lt;T>"></see> of booleans into a <see cref="!:System.Int64"></see>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static long PackInt64(this Span&lt;bool&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">Span</span>&lt;<span class="xref">System.Boolean</span>&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>The span of booleans to pack.</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.Int64</span></td>
<td><p>A 64-bit signed integer containing the packed booleans.</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>

138
api/X10D.Core.html Normal file
View File

@ -0,0 +1,138 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Namespace X10D.Core
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Namespace X10D.Core
| 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.Core">
<h1 id="X10D_Core" data-uid="X10D.Core" class="text-break">Namespace X10D.Core
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>
<div class="markdown level0 remarks"></div>
<h3 id="classes">Classes
</h3>
<h5><a class="xref" href="X10D.Core.EnumExtensions.html">EnumExtensions</a></h5>
<section><p>Extension methods for <span class="xref">langword_csharp_enum</span> types.</p>
</section>
<h5><a class="xref" href="X10D.Core.Extensions.html">Extensions</a></h5>
<section><p>Extension methods which apply to all types.</p>
</section>
<h5><a class="xref" href="X10D.Core.NullableExtensions.html">NullableExtensions</a></h5>
<section><p>Extension methods for <see cref="!:Nullable&lt;T>"></see></p>
</section>
<h5><a class="xref" href="X10D.Core.RandomExtensions.html">RandomExtensions</a></h5>
<section><p>Extension methods for <see cref="!:System.Random"></see>.</p>
</section>
<h5><a class="xref" href="X10D.Core.SpanExtensions.html">SpanExtensions</a></h5>
<section><p>Extension methods for <see cref="!:Span&lt;T>"></see> and <see cref="!:ReadOnlySpan&lt;T>"></see>.</p>
</section>
</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>

1225
api/X10D.Drawing.Circle.html Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,581 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class ColorExtensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class ColorExtensions
| 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.Drawing.ColorExtensions">
<h1 id="X10D_Drawing_ColorExtensions" data-uid="X10D.Drawing.ColorExtensions" class="text-break">Class ColorExtensions
</h1>
<div class="markdown level0 summary"><p>Drawing-related extensions for <see cref="!:Color"></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">ColorExtensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.Drawing.html">X10D.Drawing</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_Drawing_ColorExtensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class ColorExtensions : 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_Drawing_ColorExtensions_Deconstruct_Color_System_Byte__System_Byte__System_Byte__.md&amp;value=---%0Auid%3A%20X10D.Drawing.ColorExtensions.Deconstruct(Color%2CSystem.Byte%40%2CSystem.Byte%40%2CSystem.Byte%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/oliverbooth/X10D/blob/main/X10D/src/Drawing/ColorExtensions.cs/#L50">View Source</a>
</span>
<a id="X10D_Drawing_ColorExtensions_Deconstruct_" data-uid="X10D.Drawing.ColorExtensions.Deconstruct*"></a>
<h4 id="X10D_Drawing_ColorExtensions_Deconstruct_Color_System_Byte__System_Byte__System_Byte__" data-uid="X10D.Drawing.ColorExtensions.Deconstruct(Color,System.Byte@,System.Byte@,System.Byte@)">Deconstruct(Color, out Byte, out Byte, out Byte)</h4>
<div class="markdown level1 summary"><p>Deconstructs the current color into its RGB components.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static void Deconstruct(this Color color, out byte r, out byte g, out byte b)</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">Color</span></td>
<td><span class="parametername">color</span></td>
<td><p>The source color.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Byte</span></td>
<td><span class="parametername">r</span></td>
<td><p>When this method returns, contains the <see cref="!:Color.R"></see> component of <code data-dev-comment-type="paramref" class="paramref">color</code>.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Byte</span></td>
<td><span class="parametername">g</span></td>
<td><p>When this method returns, contains the <see cref="!:Color.G"></see> component of <code data-dev-comment-type="paramref" class="paramref">color</code>.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Byte</span></td>
<td><span class="parametername">b</span></td>
<td><p>When this method returns, contains the <see cref="!:Color.B"></see> component of <code data-dev-comment-type="paramref" class="paramref">color</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_Drawing_ColorExtensions_Deconstruct_Color_System_Byte__System_Byte__System_Byte__System_Byte__.md&amp;value=---%0Auid%3A%20X10D.Drawing.ColorExtensions.Deconstruct(Color%2CSystem.Byte%40%2CSystem.Byte%40%2CSystem.Byte%40%2CSystem.Byte%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/oliverbooth/X10D/blob/main/X10D/src/Drawing/ColorExtensions.cs/#L29">View Source</a>
</span>
<a id="X10D_Drawing_ColorExtensions_Deconstruct_" data-uid="X10D.Drawing.ColorExtensions.Deconstruct*"></a>
<h4 id="X10D_Drawing_ColorExtensions_Deconstruct_Color_System_Byte__System_Byte__System_Byte__System_Byte__" data-uid="X10D.Drawing.ColorExtensions.Deconstruct(Color,System.Byte@,System.Byte@,System.Byte@,System.Byte@)">Deconstruct(Color, out Byte, out Byte, out Byte, out Byte)</h4>
<div class="markdown level1 summary"><p>Deconstructs the current color into its ARGB components.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static void Deconstruct(this Color color, out byte a, out byte r, out byte g, out byte b)</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">Color</span></td>
<td><span class="parametername">color</span></td>
<td><p>The source color.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Byte</span></td>
<td><span class="parametername">a</span></td>
<td><p>When this method returns, contains the <see cref="!:Color.A"></see> component of <code data-dev-comment-type="paramref" class="paramref">color</code>.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Byte</span></td>
<td><span class="parametername">r</span></td>
<td><p>When this method returns, contains the <see cref="!:Color.R"></see> component of <code data-dev-comment-type="paramref" class="paramref">color</code>.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Byte</span></td>
<td><span class="parametername">g</span></td>
<td><p>When this method returns, contains the <see cref="!:Color.G"></see> component of <code data-dev-comment-type="paramref" class="paramref">color</code>.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Byte</span></td>
<td><span class="parametername">b</span></td>
<td><p>When this method returns, contains the <see cref="!:Color.B"></see> component of <code data-dev-comment-type="paramref" class="paramref">color</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_Drawing_ColorExtensions_GetClosestConsoleColor_Color_.md&amp;value=---%0Auid%3A%20X10D.Drawing.ColorExtensions.GetClosestConsoleColor(Color)%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/Drawing/ColorExtensions.cs/#L65">View Source</a>
</span>
<a id="X10D_Drawing_ColorExtensions_GetClosestConsoleColor_" data-uid="X10D.Drawing.ColorExtensions.GetClosestConsoleColor*"></a>
<h4 id="X10D_Drawing_ColorExtensions_GetClosestConsoleColor_Color_" data-uid="X10D.Drawing.ColorExtensions.GetClosestConsoleColor(Color)">GetClosestConsoleColor(Color)</h4>
<div class="markdown level1 summary"><p>Returns a <see cref="!:ConsoleColor"></see> which most closely resembles the current color.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static ConsoleColor GetClosestConsoleColor(this Color color)</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">Color</span></td>
<td><span class="parametername">color</span></td>
<td><p>The source color.</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">ConsoleColor</span></td>
<td><p>The closest <see cref="!:ConsoleColor"></see>.</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_Drawing_ColorExtensions_Inverted_Color_.md&amp;value=---%0Auid%3A%20X10D.Drawing.ColorExtensions.Inverted(Color)%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/Drawing/ColorExtensions.cs/#L112">View Source</a>
</span>
<a id="X10D_Drawing_ColorExtensions_Inverted_" data-uid="X10D.Drawing.ColorExtensions.Inverted*"></a>
<h4 id="X10D_Drawing_ColorExtensions_Inverted_Color_" data-uid="X10D.Drawing.ColorExtensions.Inverted(Color)">Inverted(Color)</h4>
<div class="markdown level1 summary"><p>Returns a new <see cref="!:Color"></see> with the red, green, and blue components inverted. Alpha is not affected.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static Color Inverted(this Color color)</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">Color</span></td>
<td><span class="parametername">color</span></td>
<td><p>The color to invert.</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">Color</span></td>
<td><p>The inverted color.</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_Drawing_ColorExtensions_WithA_Color_System_Int32_.md&amp;value=---%0Auid%3A%20X10D.Drawing.ColorExtensions.WithA(Color%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Drawing/ColorExtensions.cs/#L130">View Source</a>
</span>
<a id="X10D_Drawing_ColorExtensions_WithA_" data-uid="X10D.Drawing.ColorExtensions.WithA*"></a>
<h4 id="X10D_Drawing_ColorExtensions_WithA_Color_System_Int32_" data-uid="X10D.Drawing.ColorExtensions.WithA(Color,System.Int32)">WithA(Color, Int32)</h4>
<div class="markdown level1 summary"><p>Returns a vector whose red, green, and blue components are the same as the specified color, and whose alpha component
is a new 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 Color WithA(this Color color, int a)</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">Color</span></td>
<td><span class="parametername">color</span></td>
<td><p>The color to copy.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">a</span></td>
<td><p>The new alpha component value.</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">Color</span></td>
<td><p>A new instance of <see cref="!:Color"></see> whose <see cref="!:Color.R"></see>, <see cref="!:Color.G"></see>, and
<see cref="!:Color.B"></see> components are the same as that of <code data-dev-comment-type="paramref" class="paramref">color</code>, and whose
<see cref="!:Color.A"></see> component is <code data-dev-comment-type="paramref" class="paramref">a</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_Drawing_ColorExtensions_WithB_Color_System_Int32_.md&amp;value=---%0Auid%3A%20X10D.Drawing.ColorExtensions.WithB(Color%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Drawing/ColorExtensions.cs/#L148">View Source</a>
</span>
<a id="X10D_Drawing_ColorExtensions_WithB_" data-uid="X10D.Drawing.ColorExtensions.WithB*"></a>
<h4 id="X10D_Drawing_ColorExtensions_WithB_Color_System_Int32_" data-uid="X10D.Drawing.ColorExtensions.WithB(Color,System.Int32)">WithB(Color, Int32)</h4>
<div class="markdown level1 summary"><p>Returns a vector whose red, green, and alpha components are the same as the specified color, and whose blue component
is a new 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 Color WithB(this Color color, int b)</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">Color</span></td>
<td><span class="parametername">color</span></td>
<td><p>The color to copy.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">b</span></td>
<td><p>The new blue component value.</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">Color</span></td>
<td><p>A new instance of <see cref="!:Color"></see> whose <see cref="!:Color.R"></see>, <see cref="!:Color.G"></see>, and
<see cref="!:Color.A"></see> components are the same as that of <code data-dev-comment-type="paramref" class="paramref">color</code>, and whose
<see cref="!:Color.B"></see> component is <code data-dev-comment-type="paramref" class="paramref">b</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_Drawing_ColorExtensions_WithG_Color_System_Int32_.md&amp;value=---%0Auid%3A%20X10D.Drawing.ColorExtensions.WithG(Color%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Drawing/ColorExtensions.cs/#L166">View Source</a>
</span>
<a id="X10D_Drawing_ColorExtensions_WithG_" data-uid="X10D.Drawing.ColorExtensions.WithG*"></a>
<h4 id="X10D_Drawing_ColorExtensions_WithG_Color_System_Int32_" data-uid="X10D.Drawing.ColorExtensions.WithG(Color,System.Int32)">WithG(Color, Int32)</h4>
<div class="markdown level1 summary"><p>Returns a vector whose red, blue, and alpha components are the same as the specified color, and whose green component
is a new 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 Color WithG(this Color color, int g)</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">Color</span></td>
<td><span class="parametername">color</span></td>
<td><p>The color to copy.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">g</span></td>
<td><p>The new green component value.</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">Color</span></td>
<td><p>A new instance of <see cref="!:Color"></see> whose <see cref="!:Color.R"></see>, <see cref="!:Color.B"></see>, and
<see cref="!:Color.A"></see> components are the same as that of <code data-dev-comment-type="paramref" class="paramref">color</code>, and whose
<see cref="!:Color.G"></see> component is <code data-dev-comment-type="paramref" class="paramref">g</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_Drawing_ColorExtensions_WithR_Color_System_Int32_.md&amp;value=---%0Auid%3A%20X10D.Drawing.ColorExtensions.WithR(Color%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Drawing/ColorExtensions.cs/#L184">View Source</a>
</span>
<a id="X10D_Drawing_ColorExtensions_WithR_" data-uid="X10D.Drawing.ColorExtensions.WithR*"></a>
<h4 id="X10D_Drawing_ColorExtensions_WithR_Color_System_Int32_" data-uid="X10D.Drawing.ColorExtensions.WithR(Color,System.Int32)">WithR(Color, Int32)</h4>
<div class="markdown level1 summary"><p>Returns a vector whose green, blue, and alpha components are the same as the specified color, and whose red component
is a new 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 Color WithR(this Color color, int r)</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">Color</span></td>
<td><span class="parametername">color</span></td>
<td><p>The color to copy.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">r</span></td>
<td><p>The new red component value.</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">Color</span></td>
<td><p>A new instance of <see cref="!:Color"></see> whose <see cref="!:Color.G"></see>, <see cref="!:Color.B"></see>, and
<see cref="!:Color.A"></see> components are the same as that of <code data-dev-comment-type="paramref" class="paramref">color</code>, and whose
<see cref="!:Color.R"></see> component is <code data-dev-comment-type="paramref" class="paramref">r</code>.</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>

1532
api/X10D.Drawing.Cuboid.html Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

1246
api/X10D.Drawing.Line.html Normal file

File diff suppressed because it is too large Load Diff

1276
api/X10D.Drawing.Line3D.html Normal file

File diff suppressed because it is too large Load Diff

1286
api/X10D.Drawing.LineF.html Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,468 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class PointExtensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class PointExtensions
| 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.Drawing.PointExtensions">
<h1 id="X10D_Drawing_PointExtensions" data-uid="X10D.Drawing.PointExtensions" class="text-break">Class PointExtensions
</h1>
<div class="markdown level0 summary"><p>Drawing-related extension methods for <see cref="!:Point"></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">PointExtensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.Drawing.html">X10D.Drawing</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_Drawing_PointExtensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class PointExtensions : 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_Drawing_PointExtensions_IsOnLine_Point_PointF_PointF_.md&amp;value=---%0Auid%3A%20X10D.Drawing.PointExtensions.IsOnLine(Point%2CPointF%2CPointF)%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/Drawing/PointExtensions.cs/#L40">View Source</a>
</span>
<a id="X10D_Drawing_PointExtensions_IsOnLine_" data-uid="X10D.Drawing.PointExtensions.IsOnLine*"></a>
<h4 id="X10D_Drawing_PointExtensions_IsOnLine_Point_PointF_PointF_" data-uid="X10D.Drawing.PointExtensions.IsOnLine(Point,PointF,PointF)">IsOnLine(Point, PointF, PointF)</h4>
<div class="markdown level1 summary"><p>Determines if the current <see cref="!:Point"></see> lies on the specified line.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool IsOnLine(this Point point, PointF start, PointF end)</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">Point</span></td>
<td><span class="parametername">point</span></td>
<td><p>The point to check.</p>
</td>
</tr>
<tr>
<td><span class="xref">PointF</span></td>
<td><span class="parametername">start</span></td>
<td><p>The starting point of the line.</p>
</td>
</tr>
<tr>
<td><span class="xref">PointF</span></td>
<td><span class="parametername">end</span></td>
<td><p>The ending point of the line.</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><span class="xref">true</span> if <code data-dev-comment-type="paramref" class="paramref">point</code> lies on the line defined by <code data-dev-comment-type="paramref" class="paramref">start</code> and
<code data-dev-comment-type="paramref" class="paramref">end</code>; otherwise <span class="xref">false</span>.</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_Drawing_PointExtensions_IsOnLine_Point_Vector2_Vector2_.md&amp;value=---%0Auid%3A%20X10D.Drawing.PointExtensions.IsOnLine(Point%2CVector2%2CVector2)%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/Drawing/PointExtensions.cs/#L57">View Source</a>
</span>
<a id="X10D_Drawing_PointExtensions_IsOnLine_" data-uid="X10D.Drawing.PointExtensions.IsOnLine*"></a>
<h4 id="X10D_Drawing_PointExtensions_IsOnLine_Point_Vector2_Vector2_" data-uid="X10D.Drawing.PointExtensions.IsOnLine(Point,Vector2,Vector2)">IsOnLine(Point, Vector2, Vector2)</h4>
<div class="markdown level1 summary"><p>Determines if the current <see cref="!:Point"></see> lies on the specified line.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool IsOnLine(this Point point, Vector2 start, Vector2 end)</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">Point</span></td>
<td><span class="parametername">point</span></td>
<td><p>The point to check.</p>
</td>
</tr>
<tr>
<td><span class="xref">Vector2</span></td>
<td><span class="parametername">start</span></td>
<td><p>The starting point of the line.</p>
</td>
</tr>
<tr>
<td><span class="xref">Vector2</span></td>
<td><span class="parametername">end</span></td>
<td><p>The ending point of the line.</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><span class="xref">true</span> if <code data-dev-comment-type="paramref" class="paramref">point</code> lies on the line defined by <code data-dev-comment-type="paramref" class="paramref">start</code> and
<code data-dev-comment-type="paramref" class="paramref">end</code>; otherwise <span class="xref">false</span>.</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_Drawing_PointExtensions_IsOnLine_Point_X10D_Drawing_LineF_.md&amp;value=---%0Auid%3A%20X10D.Drawing.PointExtensions.IsOnLine(Point%2CX10D.Drawing.LineF)%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/Drawing/PointExtensions.cs/#L23">View Source</a>
</span>
<a id="X10D_Drawing_PointExtensions_IsOnLine_" data-uid="X10D.Drawing.PointExtensions.IsOnLine*"></a>
<h4 id="X10D_Drawing_PointExtensions_IsOnLine_Point_X10D_Drawing_LineF_" data-uid="X10D.Drawing.PointExtensions.IsOnLine(Point,X10D.Drawing.LineF)">IsOnLine(Point, LineF)</h4>
<div class="markdown level1 summary"><p>Determines if the current <see cref="!:Point"></see> lies on the specified <a class="xref" href="X10D.Drawing.LineF.html">LineF</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool IsOnLine(this Point point, LineF line)</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">Point</span></td>
<td><span class="parametername">point</span></td>
<td><p>The point to check.</p>
</td>
</tr>
<tr>
<td><a class="xref" href="X10D.Drawing.LineF.html">LineF</a></td>
<td><span class="parametername">line</span></td>
<td><p>The line on which the point may lie.</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><span class="xref">true</span> if <code data-dev-comment-type="paramref" class="paramref">point</code> lies on the line defined by <code data-dev-comment-type="paramref" class="paramref">line</code>; otherwise
<span class="xref">false</span>.</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_Drawing_PointExtensions_ToSize_Point_.md&amp;value=---%0Auid%3A%20X10D.Drawing.PointExtensions.ToSize(Point)%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/Drawing/PointExtensions.cs/#L69">View Source</a>
</span>
<a id="X10D_Drawing_PointExtensions_ToSize_" data-uid="X10D.Drawing.PointExtensions.ToSize*"></a>
<h4 id="X10D_Drawing_PointExtensions_ToSize_Point_" data-uid="X10D.Drawing.PointExtensions.ToSize(Point)">ToSize(Point)</h4>
<div class="markdown level1 summary"><p>Converts the current <see cref="!:Point"></see> to a <see cref="!:Size"></see>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static Size ToSize(this Point point)</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">Point</span></td>
<td><span class="parametername">point</span></td>
<td><p>The point to convert.</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">Size</span></td>
<td><p>The resulting <see cref="!:Size"></see>.</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_Drawing_PointExtensions_ToSizeF_Point_.md&amp;value=---%0Auid%3A%20X10D.Drawing.PointExtensions.ToSizeF(Point)%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/Drawing/PointExtensions.cs/#L81">View Source</a>
</span>
<a id="X10D_Drawing_PointExtensions_ToSizeF_" data-uid="X10D.Drawing.PointExtensions.ToSizeF*"></a>
<h4 id="X10D_Drawing_PointExtensions_ToSizeF_Point_" data-uid="X10D.Drawing.PointExtensions.ToSizeF(Point)">ToSizeF(Point)</h4>
<div class="markdown level1 summary"><p>Converts the current <see cref="!:Point"></see> to a <see cref="!:SizeF"></see>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static SizeF ToSizeF(this Point point)</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">Point</span></td>
<td><span class="parametername">point</span></td>
<td><p>The point to convert.</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">SizeF</span></td>
<td><p>The resulting <see cref="!:SizeF"></see>.</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_Drawing_PointExtensions_ToVector2_Point_.md&amp;value=---%0Auid%3A%20X10D.Drawing.PointExtensions.ToVector2(Point)%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/Drawing/PointExtensions.cs/#L93">View Source</a>
</span>
<a id="X10D_Drawing_PointExtensions_ToVector2_" data-uid="X10D.Drawing.PointExtensions.ToVector2*"></a>
<h4 id="X10D_Drawing_PointExtensions_ToVector2_Point_" data-uid="X10D.Drawing.PointExtensions.ToVector2(Point)">ToVector2(Point)</h4>
<div class="markdown level1 summary"><p>Converts the current <see cref="!:Point"></see> to a <see cref="!:Vector2"></see>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static Vector2 ToVector2(this Point point)</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">Point</span></td>
<td><span class="parametername">point</span></td>
<td><p>The point to convert.</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">Vector2</span></td>
<td><p>The resulting <see cref="!:Vector2"></see>.</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>

View File

@ -0,0 +1,524 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class PointFExtensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class PointFExtensions
| 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.Drawing.PointFExtensions">
<h1 id="X10D_Drawing_PointFExtensions" data-uid="X10D.Drawing.PointFExtensions" class="text-break">Class PointFExtensions
</h1>
<div class="markdown level0 summary"><p>Drawing-related extension methods for <see cref="!:PointF"></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">PointFExtensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.Drawing.html">X10D.Drawing</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_Drawing_PointFExtensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class PointFExtensions : 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_Drawing_PointFExtensions_IsOnLine_PointF_PointF_PointF_.md&amp;value=---%0Auid%3A%20X10D.Drawing.PointFExtensions.IsOnLine(PointF%2CPointF%2CPointF)%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/Drawing/PointFExtensions.cs/#L44">View Source</a>
</span>
<a id="X10D_Drawing_PointFExtensions_IsOnLine_" data-uid="X10D.Drawing.PointFExtensions.IsOnLine*"></a>
<h4 id="X10D_Drawing_PointFExtensions_IsOnLine_PointF_PointF_PointF_" data-uid="X10D.Drawing.PointFExtensions.IsOnLine(PointF,PointF,PointF)">IsOnLine(PointF, PointF, PointF)</h4>
<div class="markdown level1 summary"><p>Determines if the current <see cref="!:PointF"></see> lies on the specified <a class="xref" href="X10D.Drawing.LineF.html">LineF</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool IsOnLine(this PointF point, PointF start, PointF end)</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">PointF</span></td>
<td><span class="parametername">point</span></td>
<td><p>The point to check.</p>
</td>
</tr>
<tr>
<td><span class="xref">PointF</span></td>
<td><span class="parametername">start</span></td>
<td><p>The starting point of the line.</p>
</td>
</tr>
<tr>
<td><span class="xref">PointF</span></td>
<td><span class="parametername">end</span></td>
<td><p>The ending point of the line.</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><span class="xref">true</span> if <code data-dev-comment-type="paramref" class="paramref">point</code> lies on the line defined by <code data-dev-comment-type="paramref" class="paramref">start</code> and
<code data-dev-comment-type="paramref" class="paramref">end</code>; otherwise <span class="xref">false</span>.</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_Drawing_PointFExtensions_IsOnLine_PointF_Vector2_Vector2_.md&amp;value=---%0Auid%3A%20X10D.Drawing.PointFExtensions.IsOnLine(PointF%2CVector2%2CVector2)%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/Drawing/PointFExtensions.cs/#L61">View Source</a>
</span>
<a id="X10D_Drawing_PointFExtensions_IsOnLine_" data-uid="X10D.Drawing.PointFExtensions.IsOnLine*"></a>
<h4 id="X10D_Drawing_PointFExtensions_IsOnLine_PointF_Vector2_Vector2_" data-uid="X10D.Drawing.PointFExtensions.IsOnLine(PointF,Vector2,Vector2)">IsOnLine(PointF, Vector2, Vector2)</h4>
<div class="markdown level1 summary"><p>Determines if the current <see cref="!:PointF"></see> lies on the specified <a class="xref" href="X10D.Drawing.LineF.html">LineF</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool IsOnLine(this PointF point, Vector2 start, Vector2 end)</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">PointF</span></td>
<td><span class="parametername">point</span></td>
<td><p>The point to check.</p>
</td>
</tr>
<tr>
<td><span class="xref">Vector2</span></td>
<td><span class="parametername">start</span></td>
<td><p>The starting point of the line.</p>
</td>
</tr>
<tr>
<td><span class="xref">Vector2</span></td>
<td><span class="parametername">end</span></td>
<td><p>The ending point of the line.</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><span class="xref">true</span> if <code data-dev-comment-type="paramref" class="paramref">point</code> lies on the line defined by <code data-dev-comment-type="paramref" class="paramref">start</code> and
<code data-dev-comment-type="paramref" class="paramref">end</code>; otherwise <span class="xref">false</span>.</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_Drawing_PointFExtensions_IsOnLine_PointF_X10D_Drawing_LineF_.md&amp;value=---%0Auid%3A%20X10D.Drawing.PointFExtensions.IsOnLine(PointF%2CX10D.Drawing.LineF)%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/Drawing/PointFExtensions.cs/#L24">View Source</a>
</span>
<a id="X10D_Drawing_PointFExtensions_IsOnLine_" data-uid="X10D.Drawing.PointFExtensions.IsOnLine*"></a>
<h4 id="X10D_Drawing_PointFExtensions_IsOnLine_PointF_X10D_Drawing_LineF_" data-uid="X10D.Drawing.PointFExtensions.IsOnLine(PointF,X10D.Drawing.LineF)">IsOnLine(PointF, LineF)</h4>
<div class="markdown level1 summary"><p>Determines if the current <see cref="!:PointF"></see> lies on the specified <a class="xref" href="X10D.Drawing.LineF.html">LineF</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool IsOnLine(this PointF point, LineF line)</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">PointF</span></td>
<td><span class="parametername">point</span></td>
<td><p>The point to check.</p>
</td>
</tr>
<tr>
<td><a class="xref" href="X10D.Drawing.LineF.html">LineF</a></td>
<td><span class="parametername">line</span></td>
<td><p>The line on which the point may lie.</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><span class="xref">true</span> if <code data-dev-comment-type="paramref" class="paramref">point</code> lies on the line defined by <code data-dev-comment-type="paramref" class="paramref">line</code>; otherwise
<span class="xref">false</span>.</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_Drawing_PointFExtensions_Round_PointF_.md&amp;value=---%0Auid%3A%20X10D.Drawing.PointFExtensions.Round(PointF)%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/Drawing/PointFExtensions.cs/#L73">View Source</a>
</span>
<a id="X10D_Drawing_PointFExtensions_Round_" data-uid="X10D.Drawing.PointFExtensions.Round*"></a>
<h4 id="X10D_Drawing_PointFExtensions_Round_PointF_" data-uid="X10D.Drawing.PointFExtensions.Round(PointF)">Round(PointF)</h4>
<div class="markdown level1 summary"><p>Rounds the components in the current <see cref="!:PointF"></see> to the nearest integer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static PointF Round(this PointF point)</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">PointF</span></td>
<td><span class="parametername">point</span></td>
<td><p>The point whose components to round.</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">PointF</span></td>
<td><p>The rounded point.</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_Drawing_PointFExtensions_Round_PointF_System_Single_.md&amp;value=---%0Auid%3A%20X10D.Drawing.PointFExtensions.Round(PointF%2CSystem.Single)%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/Drawing/PointFExtensions.cs/#L86">View Source</a>
</span>
<a id="X10D_Drawing_PointFExtensions_Round_" data-uid="X10D.Drawing.PointFExtensions.Round*"></a>
<h4 id="X10D_Drawing_PointFExtensions_Round_PointF_System_Single_" data-uid="X10D.Drawing.PointFExtensions.Round(PointF,System.Single)">Round(PointF, Single)</h4>
<div class="markdown level1 summary"><p>Rounds the components in the current <see cref="!:PointF"></see> to the nearest multiple of a specified number.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static PointF Round(this PointF point, float nearest)</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">PointF</span></td>
<td><span class="parametername">point</span></td>
<td><p>The point whose components to round.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Single</span></td>
<td><span class="parametername">nearest</span></td>
<td><p>The nearest multiple to which the components should be rounded.</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">PointF</span></td>
<td><p>The rounded point.</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_Drawing_PointFExtensions_ToSizeF_PointF_.md&amp;value=---%0Auid%3A%20X10D.Drawing.PointFExtensions.ToSizeF(PointF)%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/Drawing/PointFExtensions.cs/#L100">View Source</a>
</span>
<a id="X10D_Drawing_PointFExtensions_ToSizeF_" data-uid="X10D.Drawing.PointFExtensions.ToSizeF*"></a>
<h4 id="X10D_Drawing_PointFExtensions_ToSizeF_PointF_" data-uid="X10D.Drawing.PointFExtensions.ToSizeF(PointF)">ToSizeF(PointF)</h4>
<div class="markdown level1 summary"><p>Converts the current <see cref="!:PointF"></see> to a <see cref="!:SizeF"></see>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static SizeF ToSizeF(this PointF point)</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">PointF</span></td>
<td><span class="parametername">point</span></td>
<td><p>The point to convert.</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">SizeF</span></td>
<td><p>The resulting <see cref="!:SizeF"></see>.</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_Drawing_PointFExtensions_ToVector2_PointF_.md&amp;value=---%0Auid%3A%20X10D.Drawing.PointFExtensions.ToVector2(PointF)%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/Drawing/PointFExtensions.cs/#L113">View Source</a>
</span>
<a id="X10D_Drawing_PointFExtensions_ToVector2_" data-uid="X10D.Drawing.PointFExtensions.ToVector2*"></a>
<h4 id="X10D_Drawing_PointFExtensions_ToVector2_PointF_" data-uid="X10D.Drawing.PointFExtensions.ToVector2(PointF)">ToVector2(PointF)</h4>
<div class="markdown level1 summary"><p>Converts the current <see cref="!:PointF"></see> to a <see cref="!:Vector2"></see>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static Vector2 ToVector2(this PointF point)</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">PointF</span></td>
<td><span class="parametername">point</span></td>
<td><p>The point to convert.</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">Vector2</span></td>
<td><p>The resulting <see cref="!:Vector2"></see>.</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>

View File

@ -0,0 +1,794 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class Polygon
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class Polygon
| 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.Drawing.Polygon">
<h1 id="X10D_Drawing_Polygon" data-uid="X10D.Drawing.Polygon" class="text-break">Class Polygon
</h1>
<div class="markdown level0 summary"><p>Represents a 2D polygon composed of 32-bit signed integer vertices.</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">Polygon</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.Drawing.html">X10D.Drawing</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_Drawing_Polygon_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public class Polygon : IEquatable&lt;Polygon&gt;</code></pre>
</div>
<h3 id="constructors">Constructors
</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_Drawing_Polygon__ctor.md&amp;value=---%0Auid%3A%20X10D.Drawing.Polygon.%23ctor%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/Drawing/Polygon.cs/#L16">View Source</a>
</span>
<a id="X10D_Drawing_Polygon__ctor_" data-uid="X10D.Drawing.Polygon.#ctor*"></a>
<h4 id="X10D_Drawing_Polygon__ctor" data-uid="X10D.Drawing.Polygon.#ctor">Polygon()</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="X10D.Drawing.Polygon.html">Polygon</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Polygon()</code></pre>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Drawing_Polygon__ctor_IEnumerable_Point__.md&amp;value=---%0Auid%3A%20X10D.Drawing.Polygon.%23ctor(IEnumerable%7BPoint%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/Drawing/Polygon.cs/#L46">View Source</a>
</span>
<a id="X10D_Drawing_Polygon__ctor_" data-uid="X10D.Drawing.Polygon.#ctor*"></a>
<h4 id="X10D_Drawing_Polygon__ctor_IEnumerable_Point__" data-uid="X10D.Drawing.Polygon.#ctor(IEnumerable{Point})">Polygon(IEnumerable&lt;Point&gt;)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="X10D.Drawing.Polygon.html">Polygon</a> class by constructing it from the specified vertices.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Polygon(IEnumerable&lt;Point&gt; vertices)</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;<span class="xref">Point</span>&gt;</td>
<td><span class="parametername">vertices</span></td>
<td><p>An enumerable collection of vertices from which the polygon should be constructed.</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_Drawing_Polygon__ctor_X10D_Drawing_Polygon_.md&amp;value=---%0Auid%3A%20X10D.Drawing.Polygon.%23ctor(X10D.Drawing.Polygon)%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/Drawing/Polygon.cs/#L23">View Source</a>
</span>
<a id="X10D_Drawing_Polygon__ctor_" data-uid="X10D.Drawing.Polygon.#ctor*"></a>
<h4 id="X10D_Drawing_Polygon__ctor_X10D_Drawing_Polygon_" data-uid="X10D.Drawing.Polygon.#ctor(X10D.Drawing.Polygon)">Polygon(Polygon)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="X10D.Drawing.Polygon.html">Polygon</a> class by copying the specified polygon.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Polygon(Polygon polygon)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="X10D.Drawing.Polygon.html">Polygon</a></td>
<td><span class="parametername">polygon</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/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Drawing_Polygon_Empty.md&amp;value=---%0Auid%3A%20X10D.Drawing.Polygon.Empty%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/Drawing/Polygon.cs/#L64">View Source</a>
</span>
<a id="X10D_Drawing_Polygon_Empty_" data-uid="X10D.Drawing.Polygon.Empty*"></a>
<h4 id="X10D_Drawing_Polygon_Empty" data-uid="X10D.Drawing.Polygon.Empty">Empty</h4>
<div class="markdown level1 summary"><p>Gets an empty polygon. That is, a polygon with no vertices.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static Polygon Empty { 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="X10D.Drawing.Polygon.html">Polygon</a></td>
<td><p>An empty polygon.</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_Drawing_Polygon_IsConvex.md&amp;value=---%0Auid%3A%20X10D.Drawing.Polygon.IsConvex%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/Drawing/Polygon.cs/#L73">View Source</a>
</span>
<a id="X10D_Drawing_Polygon_IsConvex_" data-uid="X10D.Drawing.Polygon.IsConvex*"></a>
<h4 id="X10D_Drawing_Polygon_IsConvex" data-uid="X10D.Drawing.Polygon.IsConvex">IsConvex</h4>
<div class="markdown level1 summary"><p>Returns a value indicating whether this polygon is convex.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public bool IsConvex { get; }</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td><p><span class="xref">true</span> if this polygon is convex; otherwise, <span class="xref">false</span>.</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_Drawing_Polygon_VertexCount.md&amp;value=---%0Auid%3A%20X10D.Drawing.Polygon.VertexCount%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/Drawing/Polygon.cs/#L116">View Source</a>
</span>
<a id="X10D_Drawing_Polygon_VertexCount_" data-uid="X10D.Drawing.Polygon.VertexCount*"></a>
<h4 id="X10D_Drawing_Polygon_VertexCount" data-uid="X10D.Drawing.Polygon.VertexCount">VertexCount</h4>
<div class="markdown level1 summary"><p>Gets the number of vertices in this polygon.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public int VertexCount { get; }</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>An <see cref="!:System.Int32"></see> value, representing the number of vertices in this polygon.</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_Drawing_Polygon_Vertices.md&amp;value=---%0Auid%3A%20X10D.Drawing.Polygon.Vertices%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/Drawing/Polygon.cs/#L127">View Source</a>
</span>
<a id="X10D_Drawing_Polygon_Vertices_" data-uid="X10D.Drawing.Polygon.Vertices*"></a>
<h4 id="X10D_Drawing_Polygon_Vertices" data-uid="X10D.Drawing.Polygon.Vertices">Vertices</h4>
<div class="markdown level1 summary"><p>Gets a read-only view of the vertices in this polygon.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public IReadOnlyList&lt;Point&gt; Vertices { 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">IReadOnlyList</span>&lt;<span class="xref">Point</span>&gt;</td>
<td><p>A <see cref="!:IReadOnlyList&lt;T>"></see> of <see cref="!:Point"></see> values, representing the vertices of this polygon.</p>
</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/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Drawing_Polygon_AddVertex_Point_.md&amp;value=---%0Auid%3A%20X10D.Drawing.Polygon.AddVertex(Point)%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/Drawing/Polygon.cs/#L202">View Source</a>
</span>
<a id="X10D_Drawing_Polygon_AddVertex_" data-uid="X10D.Drawing.Polygon.AddVertex*"></a>
<h4 id="X10D_Drawing_Polygon_AddVertex_Point_" data-uid="X10D.Drawing.Polygon.AddVertex(Point)">AddVertex(Point)</h4>
<div class="markdown level1 summary"><p>Adds a vertex to this polygon.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public void AddVertex(Point vertex)</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">Point</span></td>
<td><span class="parametername">vertex</span></td>
<td><p>The vertex to add.</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_Drawing_Polygon_AddVertices_IEnumerable_Point__.md&amp;value=---%0Auid%3A%20X10D.Drawing.Polygon.AddVertices(IEnumerable%7BPoint%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/Drawing/Polygon.cs/#L212">View Source</a>
</span>
<a id="X10D_Drawing_Polygon_AddVertices_" data-uid="X10D.Drawing.Polygon.AddVertices*"></a>
<h4 id="X10D_Drawing_Polygon_AddVertices_IEnumerable_Point__" data-uid="X10D.Drawing.Polygon.AddVertices(IEnumerable{Point})">AddVertices(IEnumerable&lt;Point&gt;)</h4>
<div class="markdown level1 summary"><p>Adds a collection of vertices to this polygon.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public void AddVertices(IEnumerable&lt;Point&gt; vertices)</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;<span class="xref">Point</span>&gt;</td>
<td><span class="parametername">vertices</span></td>
<td><p>An enumerable collection of vertices to add.</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_Drawing_Polygon_ClearVertices.md&amp;value=---%0Auid%3A%20X10D.Drawing.Polygon.ClearVertices%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/Drawing/Polygon.cs/#L232">View Source</a>
</span>
<a id="X10D_Drawing_Polygon_ClearVertices_" data-uid="X10D.Drawing.Polygon.ClearVertices*"></a>
<h4 id="X10D_Drawing_Polygon_ClearVertices" data-uid="X10D.Drawing.Polygon.ClearVertices">ClearVertices()</h4>
<div class="markdown level1 summary"><p>Clears all vertices from this polygon.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public void ClearVertices()</code></pre>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Drawing_Polygon_Equals_System_Nullable_System_Object__.md&amp;value=---%0Auid%3A%20X10D.Drawing.Polygon.Equals(System.Nullable%7BSystem.Object%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/Drawing/Polygon.cs/#L238">View Source</a>
</span>
<a id="X10D_Drawing_Polygon_Equals_" data-uid="X10D.Drawing.Polygon.Equals*"></a>
<h4 id="X10D_Drawing_Polygon_Equals_System_Nullable_System_Object__" data-uid="X10D.Drawing.Polygon.Equals(System.Nullable{System.Object})">Equals(Nullable&lt;Object&gt;)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public override bool Equals(object? obj)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Nullable</span>&lt;<span class="xref">System.Object</span>&gt;</td>
<td><span class="parametername">obj</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td></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_Drawing_Polygon_Equals_X10D_Drawing_Polygon_.md&amp;value=---%0Auid%3A%20X10D.Drawing.Polygon.Equals(X10D.Drawing.Polygon)%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/Drawing/Polygon.cs/#L251">View Source</a>
</span>
<a id="X10D_Drawing_Polygon_Equals_" data-uid="X10D.Drawing.Polygon.Equals*"></a>
<h4 id="X10D_Drawing_Polygon_Equals_X10D_Drawing_Polygon_" data-uid="X10D.Drawing.Polygon.Equals(X10D.Drawing.Polygon)">Equals(Polygon)</h4>
<div class="markdown level1 summary"><p>Returns a value indicating whether this instance and another instance are equal.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public bool Equals(Polygon other)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="X10D.Drawing.Polygon.html">Polygon</a></td>
<td><span class="parametername">other</span></td>
<td><p>The instance with which to compare.</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><span class="xref">true</span> if this instance and <code data-dev-comment-type="paramref" class="paramref">other</code> are considered equal; otherwise,
<span class="xref">false</span>.</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_Drawing_Polygon_FromPolygonF_X10D_Drawing_PolygonF_.md&amp;value=---%0Auid%3A%20X10D.Drawing.Polygon.FromPolygonF(X10D.Drawing.PolygonF)%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/Drawing/Polygon.cs/#L177">View Source</a>
</span>
<a id="X10D_Drawing_Polygon_FromPolygonF_" data-uid="X10D.Drawing.Polygon.FromPolygonF*"></a>
<h4 id="X10D_Drawing_Polygon_FromPolygonF_X10D_Drawing_PolygonF_" data-uid="X10D.Drawing.Polygon.FromPolygonF(X10D.Drawing.PolygonF)">FromPolygonF(PolygonF)</h4>
<div class="markdown level1 summary"><p>Explicitly converts a <a class="xref" href="X10D.Drawing.Polygon.html">Polygon</a> to a <a class="xref" href="X10D.Drawing.PolygonF.html">PolygonF</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static Polygon FromPolygonF(PolygonF polygon)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="X10D.Drawing.PolygonF.html">PolygonF</a></td>
<td><span class="parametername">polygon</span></td>
<td><p>The polygon to convert.</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="X10D.Drawing.Polygon.html">Polygon</a></td>
<td><p>The converted polygon.</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_Drawing_Polygon_GetHashCode.md&amp;value=---%0Auid%3A%20X10D.Drawing.Polygon.GetHashCode%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/Drawing/Polygon.cs/#L257">View Source</a>
</span>
<a id="X10D_Drawing_Polygon_GetHashCode_" data-uid="X10D.Drawing.Polygon.GetHashCode*"></a>
<h4 id="X10D_Drawing_Polygon_GetHashCode" data-uid="X10D.Drawing.Polygon.GetHashCode">GetHashCode()</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public override int GetHashCode()</code></pre>
</div>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td></td>
</tr>
</tbody>
</table>
<h3 id="operators">Operators
</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_Drawing_Polygon_op_Equality_X10D_Drawing_Polygon_X10D_Drawing_Polygon_.md&amp;value=---%0Auid%3A%20X10D.Drawing.Polygon.op_Equality(X10D.Drawing.Polygon%2CX10D.Drawing.Polygon)%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/Drawing/Polygon.cs/#L141">View Source</a>
</span>
<a id="X10D_Drawing_Polygon_op_Equality_" data-uid="X10D.Drawing.Polygon.op_Equality*"></a>
<h4 id="X10D_Drawing_Polygon_op_Equality_X10D_Drawing_Polygon_X10D_Drawing_Polygon_" data-uid="X10D.Drawing.Polygon.op_Equality(X10D.Drawing.Polygon,X10D.Drawing.Polygon)">Equality(Polygon, Polygon)</h4>
<div class="markdown level1 summary"><p>Returns a value indicating whether two instances of <a class="xref" href="X10D.Drawing.Polygon.html">Polygon</a> are equal.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool operator ==(Polygon left, Polygon right)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="X10D.Drawing.Polygon.html">Polygon</a></td>
<td><span class="parametername">left</span></td>
<td><p>The first instance.</p>
</td>
</tr>
<tr>
<td><a class="xref" href="X10D.Drawing.Polygon.html">Polygon</a></td>
<td><span class="parametername">right</span></td>
<td><p>The second instance.</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><span class="xref">true</span> if <code data-dev-comment-type="paramref" class="paramref">left</code> and <code data-dev-comment-type="paramref" class="paramref">right</code> are considered equal; otherwise,
<span class="xref">false</span>.</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_Drawing_Polygon_op_Explicit_X10D_Drawing_PolygonF__X10D_Drawing_Polygon.md&amp;value=---%0Auid%3A%20X10D.Drawing.Polygon.op_Explicit(X10D.Drawing.PolygonF)~X10D.Drawing.Polygon%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/Drawing/Polygon.cs/#L165">View Source</a>
</span>
<a id="X10D_Drawing_Polygon_op_Explicit_" data-uid="X10D.Drawing.Polygon.op_Explicit*"></a>
<h4 id="X10D_Drawing_Polygon_op_Explicit_X10D_Drawing_PolygonF__X10D_Drawing_Polygon" data-uid="X10D.Drawing.Polygon.op_Explicit(X10D.Drawing.PolygonF)~X10D.Drawing.Polygon">Explicit(PolygonF to Polygon)</h4>
<div class="markdown level1 summary"><p>Explicitly converts a <a class="xref" href="X10D.Drawing.Polygon.html">Polygon</a> to a <a class="xref" href="X10D.Drawing.PolygonF.html">PolygonF</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static explicit operator Polygon(PolygonF polygon)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="X10D.Drawing.PolygonF.html">PolygonF</a></td>
<td><span class="parametername">polygon</span></td>
<td><p>The polygon to convert.</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="X10D.Drawing.Polygon.html">Polygon</a></td>
<td><p>The converted polygon.</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_Drawing_Polygon_op_Inequality_X10D_Drawing_Polygon_X10D_Drawing_Polygon_.md&amp;value=---%0Auid%3A%20X10D.Drawing.Polygon.op_Inequality(X10D.Drawing.Polygon%2CX10D.Drawing.Polygon)%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/Drawing/Polygon.cs/#L155">View Source</a>
</span>
<a id="X10D_Drawing_Polygon_op_Inequality_" data-uid="X10D.Drawing.Polygon.op_Inequality*"></a>
<h4 id="X10D_Drawing_Polygon_op_Inequality_X10D_Drawing_Polygon_X10D_Drawing_Polygon_" data-uid="X10D.Drawing.Polygon.op_Inequality(X10D.Drawing.Polygon,X10D.Drawing.Polygon)">Inequality(Polygon, Polygon)</h4>
<div class="markdown level1 summary"><p>Returns a value indicating whether two instances of <a class="xref" href="X10D.Drawing.Polygon.html">Polygon</a> are not equal.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool operator !=(Polygon left, Polygon right)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="X10D.Drawing.Polygon.html">Polygon</a></td>
<td><span class="parametername">left</span></td>
<td><p>The first instance.</p>
</td>
</tr>
<tr>
<td><a class="xref" href="X10D.Drawing.Polygon.html">Polygon</a></td>
<td><span class="parametername">right</span></td>
<td><p>The second instance.</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><span class="xref">true</span> if <code data-dev-comment-type="paramref" class="paramref">left</code> and <code data-dev-comment-type="paramref" class="paramref">right</code> are considered not equal; otherwise,
<span class="xref">false</span>.</p>
</td>
</tr>
</tbody>
</table>
<h3 id="extensionmethods">Extension Methods</h3>
<div>
<a class="xref" href="X10D.Core.Extensions.html#X10D_Core_Extensions_AsArrayValue__1___0_">Extensions.AsArrayValue&lt;T&gt;(T)</a>
</div>
<div>
<a class="xref" href="X10D.Core.Extensions.html#X10D_Core_Extensions_AsEnumerableValue__1___0_">Extensions.AsEnumerableValue&lt;T&gt;(T)</a>
</div>
<div>
<a class="xref" href="X10D.Core.Extensions.html#X10D_Core_Extensions_RepeatValue__1___0_System_Int32_">Extensions.RepeatValue&lt;T&gt;(T, Int32)</a>
</div>
<div>
<a class="xref" href="X10D.Unity.Drawing.PolygonExtensions.html#X10D_Unity_Drawing_PolygonExtensions_AddVertex_X10D_Drawing_Polygon_Vector2Int_">PolygonExtensions.AddVertex(Polygon, Vector2Int)</a>
</div>
<div>
<a class="xref" href="X10D.Unity.Drawing.PolygonExtensions.html#X10D_Unity_Drawing_PolygonExtensions_AddVertices_X10D_Drawing_Polygon_IEnumerable_Vector2Int__">PolygonExtensions.AddVertices(Polygon, IEnumerable&lt;Vector2Int&gt;)</a>
</div>
</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>

View File

@ -0,0 +1,902 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class PolygonF
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class PolygonF
| 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.Drawing.PolygonF">
<h1 id="X10D_Drawing_PolygonF" data-uid="X10D.Drawing.PolygonF" class="text-break">Class PolygonF
</h1>
<div class="markdown level0 summary"><p>Represents a 2D polygon composed of single-precision floating-vertex vertices.</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">PolygonF</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.Drawing.html">X10D.Drawing</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_Drawing_PolygonF_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public class PolygonF : object</code></pre>
</div>
<h3 id="constructors">Constructors
</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_Drawing_PolygonF__ctor.md&amp;value=---%0Auid%3A%20X10D.Drawing.PolygonF.%23ctor%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/Drawing/PolygonF.cs/#L18">View Source</a>
</span>
<a id="X10D_Drawing_PolygonF__ctor_" data-uid="X10D.Drawing.PolygonF.#ctor*"></a>
<h4 id="X10D_Drawing_PolygonF__ctor" data-uid="X10D.Drawing.PolygonF.#ctor">PolygonF()</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="X10D.Drawing.PolygonF.html">PolygonF</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public PolygonF()</code></pre>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Drawing_PolygonF__ctor_IEnumerable_PointF__.md&amp;value=---%0Auid%3A%20X10D.Drawing.PolygonF.%23ctor(IEnumerable%7BPointF%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/Drawing/PolygonF.cs/#L72">View Source</a>
</span>
<a id="X10D_Drawing_PolygonF__ctor_" data-uid="X10D.Drawing.PolygonF.#ctor*"></a>
<h4 id="X10D_Drawing_PolygonF__ctor_IEnumerable_PointF__" data-uid="X10D.Drawing.PolygonF.#ctor(IEnumerable{PointF})">PolygonF(IEnumerable&lt;PointF&gt;)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="X10D.Drawing.PolygonF.html">PolygonF</a> class by constructing it from the specified vertices.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public PolygonF(IEnumerable&lt;PointF&gt; vertices)</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;<span class="xref">PointF</span>&gt;</td>
<td><span class="parametername">vertices</span></td>
<td><p>An enumerable collection of vertices from which the polygon should be constructed.</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_Drawing_PolygonF__ctor_IEnumerable_Vector2__.md&amp;value=---%0Auid%3A%20X10D.Drawing.PolygonF.%23ctor(IEnumerable%7BVector2%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/Drawing/PolygonF.cs/#L49">View Source</a>
</span>
<a id="X10D_Drawing_PolygonF__ctor_" data-uid="X10D.Drawing.PolygonF.#ctor*"></a>
<h4 id="X10D_Drawing_PolygonF__ctor_IEnumerable_Vector2__" data-uid="X10D.Drawing.PolygonF.#ctor(IEnumerable{Vector2})">PolygonF(IEnumerable&lt;Vector2&gt;)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="X10D.Drawing.PolygonF.html">PolygonF</a> class by constructing it from the specified vertices.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public PolygonF(IEnumerable&lt;Vector2&gt; vertices)</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;<span class="xref">Vector2</span>&gt;</td>
<td><span class="parametername">vertices</span></td>
<td><p>An enumerable collection of vertices from which the polygon should be constructed.</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_Drawing_PolygonF__ctor_X10D_Drawing_PolygonF_.md&amp;value=---%0Auid%3A%20X10D.Drawing.PolygonF.%23ctor(X10D.Drawing.PolygonF)%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/Drawing/PolygonF.cs/#L26">View Source</a>
</span>
<a id="X10D_Drawing_PolygonF__ctor_" data-uid="X10D.Drawing.PolygonF.#ctor*"></a>
<h4 id="X10D_Drawing_PolygonF__ctor_X10D_Drawing_PolygonF_" data-uid="X10D.Drawing.PolygonF.#ctor(X10D.Drawing.PolygonF)">PolygonF(PolygonF)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="X10D.Drawing.PolygonF.html">PolygonF</a> class by copying the specified polygon.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public PolygonF(PolygonF polygon)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="X10D.Drawing.PolygonF.html">PolygonF</a></td>
<td><span class="parametername">polygon</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/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Drawing_PolygonF_Empty.md&amp;value=---%0Auid%3A%20X10D.Drawing.PolygonF.Empty%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/Drawing/PolygonF.cs/#L90">View Source</a>
</span>
<a id="X10D_Drawing_PolygonF_Empty_" data-uid="X10D.Drawing.PolygonF.Empty*"></a>
<h4 id="X10D_Drawing_PolygonF_Empty" data-uid="X10D.Drawing.PolygonF.Empty">Empty</h4>
<div class="markdown level1 summary"><p>Gets an empty polygon. That is, a polygon with no vertices.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static PolygonF Empty { 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="X10D.Drawing.PolygonF.html">PolygonF</a></td>
<td><p>An empty polygon.</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_Drawing_PolygonF_IsConvex.md&amp;value=---%0Auid%3A%20X10D.Drawing.PolygonF.IsConvex%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/Drawing/PolygonF.cs/#L99">View Source</a>
</span>
<a id="X10D_Drawing_PolygonF_IsConvex_" data-uid="X10D.Drawing.PolygonF.IsConvex*"></a>
<h4 id="X10D_Drawing_PolygonF_IsConvex" data-uid="X10D.Drawing.PolygonF.IsConvex">IsConvex</h4>
<div class="markdown level1 summary"><p>Returns a value indicating whether this polygon is convex.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public bool IsConvex { get; }</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td><p><span class="xref">true</span> if this polygon is convex; otherwise, <span class="xref">false</span>.</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_Drawing_PolygonF_VertexCount.md&amp;value=---%0Auid%3A%20X10D.Drawing.PolygonF.VertexCount%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/Drawing/PolygonF.cs/#L142">View Source</a>
</span>
<a id="X10D_Drawing_PolygonF_VertexCount_" data-uid="X10D.Drawing.PolygonF.VertexCount*"></a>
<h4 id="X10D_Drawing_PolygonF_VertexCount" data-uid="X10D.Drawing.PolygonF.VertexCount">VertexCount</h4>
<div class="markdown level1 summary"><p>Gets the number of vertices in this polygon.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public int VertexCount { get; }</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>An <see cref="!:System.Int32"></see> value, representing the number of vertices in this polygon.</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_Drawing_PolygonF_Vertices.md&amp;value=---%0Auid%3A%20X10D.Drawing.PolygonF.Vertices%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/Drawing/PolygonF.cs/#L153">View Source</a>
</span>
<a id="X10D_Drawing_PolygonF_Vertices_" data-uid="X10D.Drawing.PolygonF.Vertices*"></a>
<h4 id="X10D_Drawing_PolygonF_Vertices" data-uid="X10D.Drawing.PolygonF.Vertices">Vertices</h4>
<div class="markdown level1 summary"><p>Gets a read-only view of the vertices in this polygon.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public IReadOnlyList&lt;PointF&gt; Vertices { 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">IReadOnlyList</span>&lt;<span class="xref">PointF</span>&gt;</td>
<td><p>A <see cref="!:IReadOnlyList&lt;T>"></see> of <see cref="!:PointF"></see> values, representing the vertices of this polygon.</p>
</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/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Drawing_PolygonF_AddVertex_PointF_.md&amp;value=---%0Auid%3A%20X10D.Drawing.PolygonF.AddVertex(PointF)%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/Drawing/PolygonF.cs/#L228">View Source</a>
</span>
<a id="X10D_Drawing_PolygonF_AddVertex_" data-uid="X10D.Drawing.PolygonF.AddVertex*"></a>
<h4 id="X10D_Drawing_PolygonF_AddVertex_PointF_" data-uid="X10D.Drawing.PolygonF.AddVertex(PointF)">AddVertex(PointF)</h4>
<div class="markdown level1 summary"><p>Adds a vertex to this polygon.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public void AddVertex(PointF vertex)</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">PointF</span></td>
<td><span class="parametername">vertex</span></td>
<td><p>The vertex to add.</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_Drawing_PolygonF_AddVertex_Vector2_.md&amp;value=---%0Auid%3A%20X10D.Drawing.PolygonF.AddVertex(Vector2)%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/Drawing/PolygonF.cs/#L237">View Source</a>
</span>
<a id="X10D_Drawing_PolygonF_AddVertex_" data-uid="X10D.Drawing.PolygonF.AddVertex*"></a>
<h4 id="X10D_Drawing_PolygonF_AddVertex_Vector2_" data-uid="X10D.Drawing.PolygonF.AddVertex(Vector2)">AddVertex(Vector2)</h4>
<div class="markdown level1 summary"><p>Adds a vertex to this polygon.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public void AddVertex(Vector2 vertex)</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">Vector2</span></td>
<td><span class="parametername">vertex</span></td>
<td><p>The vertex to add.</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_Drawing_PolygonF_AddVertices_IEnumerable_PointF__.md&amp;value=---%0Auid%3A%20X10D.Drawing.PolygonF.AddVertices(IEnumerable%7BPointF%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/Drawing/PolygonF.cs/#L247">View Source</a>
</span>
<a id="X10D_Drawing_PolygonF_AddVertices_" data-uid="X10D.Drawing.PolygonF.AddVertices*"></a>
<h4 id="X10D_Drawing_PolygonF_AddVertices_IEnumerable_PointF__" data-uid="X10D.Drawing.PolygonF.AddVertices(IEnumerable{PointF})">AddVertices(IEnumerable&lt;PointF&gt;)</h4>
<div class="markdown level1 summary"><p>Adds a collection of vertices to this polygon.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public void AddVertices(IEnumerable&lt;PointF&gt; vertices)</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;<span class="xref">PointF</span>&gt;</td>
<td><span class="parametername">vertices</span></td>
<td><p>An enumerable collection of vertices to add.</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_Drawing_PolygonF_AddVertices_IEnumerable_Vector2__.md&amp;value=---%0Auid%3A%20X10D.Drawing.PolygonF.AddVertices(IEnumerable%7BVector2%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/Drawing/PolygonF.cs/#L269">View Source</a>
</span>
<a id="X10D_Drawing_PolygonF_AddVertices_" data-uid="X10D.Drawing.PolygonF.AddVertices*"></a>
<h4 id="X10D_Drawing_PolygonF_AddVertices_IEnumerable_Vector2__" data-uid="X10D.Drawing.PolygonF.AddVertices(IEnumerable{Vector2})">AddVertices(IEnumerable&lt;Vector2&gt;)</h4>
<div class="markdown level1 summary"><p>Adds a collection of vertices to this polygon.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public void AddVertices(IEnumerable&lt;Vector2&gt; vertices)</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;<span class="xref">Vector2</span>&gt;</td>
<td><span class="parametername">vertices</span></td>
<td><p>An enumerable collection of vertices to add.</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_Drawing_PolygonF_ClearVertices.md&amp;value=---%0Auid%3A%20X10D.Drawing.PolygonF.ClearVertices%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/Drawing/PolygonF.cs/#L289">View Source</a>
</span>
<a id="X10D_Drawing_PolygonF_ClearVertices_" data-uid="X10D.Drawing.PolygonF.ClearVertices*"></a>
<h4 id="X10D_Drawing_PolygonF_ClearVertices" data-uid="X10D.Drawing.PolygonF.ClearVertices">ClearVertices()</h4>
<div class="markdown level1 summary"><p>Clears all vertices from this polygon.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public void ClearVertices()</code></pre>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Drawing_PolygonF_Equals_System_Nullable_System_Object__.md&amp;value=---%0Auid%3A%20X10D.Drawing.PolygonF.Equals(System.Nullable%7BSystem.Object%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/Drawing/PolygonF.cs/#L295">View Source</a>
</span>
<a id="X10D_Drawing_PolygonF_Equals_" data-uid="X10D.Drawing.PolygonF.Equals*"></a>
<h4 id="X10D_Drawing_PolygonF_Equals_System_Nullable_System_Object__" data-uid="X10D.Drawing.PolygonF.Equals(System.Nullable{System.Object})">Equals(Nullable&lt;Object&gt;)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public override bool Equals(object? obj)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Nullable</span>&lt;<span class="xref">System.Object</span>&gt;</td>
<td><span class="parametername">obj</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td></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_Drawing_PolygonF_Equals_X10D_Drawing_PolygonF_.md&amp;value=---%0Auid%3A%20X10D.Drawing.PolygonF.Equals(X10D.Drawing.PolygonF)%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/Drawing/PolygonF.cs/#L308">View Source</a>
</span>
<a id="X10D_Drawing_PolygonF_Equals_" data-uid="X10D.Drawing.PolygonF.Equals*"></a>
<h4 id="X10D_Drawing_PolygonF_Equals_X10D_Drawing_PolygonF_" data-uid="X10D.Drawing.PolygonF.Equals(X10D.Drawing.PolygonF)">Equals(PolygonF)</h4>
<div class="markdown level1 summary"><p>Returns a value indicating whether this instance and another instance are equal.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public bool Equals(PolygonF other)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="X10D.Drawing.PolygonF.html">PolygonF</a></td>
<td><span class="parametername">other</span></td>
<td><p>The instance with which to compare.</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><span class="xref">true</span> if this instance and <code data-dev-comment-type="paramref" class="paramref">other</code> are considered equal; otherwise,
<span class="xref">false</span>.</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_Drawing_PolygonF_FromPolygon_X10D_Drawing_Polygon_.md&amp;value=---%0Auid%3A%20X10D.Drawing.PolygonF.FromPolygon(X10D.Drawing.Polygon)%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/Drawing/PolygonF.cs/#L203">View Source</a>
</span>
<a id="X10D_Drawing_PolygonF_FromPolygon_" data-uid="X10D.Drawing.PolygonF.FromPolygon*"></a>
<h4 id="X10D_Drawing_PolygonF_FromPolygon_X10D_Drawing_Polygon_" data-uid="X10D.Drawing.PolygonF.FromPolygon(X10D.Drawing.Polygon)">FromPolygon(Polygon)</h4>
<div class="markdown level1 summary"><p>Implicitly converts a <a class="xref" href="X10D.Drawing.Polygon.html">Polygon</a> to a <a class="xref" href="X10D.Drawing.PolygonF.html">PolygonF</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static PolygonF FromPolygon(Polygon polygon)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="X10D.Drawing.Polygon.html">Polygon</a></td>
<td><span class="parametername">polygon</span></td>
<td><p>The polygon to convert.</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="X10D.Drawing.PolygonF.html">PolygonF</a></td>
<td><p>The converted polygon.</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_Drawing_PolygonF_GetHashCode.md&amp;value=---%0Auid%3A%20X10D.Drawing.PolygonF.GetHashCode%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/Drawing/PolygonF.cs/#L314">View Source</a>
</span>
<a id="X10D_Drawing_PolygonF_GetHashCode_" data-uid="X10D.Drawing.PolygonF.GetHashCode*"></a>
<h4 id="X10D_Drawing_PolygonF_GetHashCode" data-uid="X10D.Drawing.PolygonF.GetHashCode">GetHashCode()</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public override int GetHashCode()</code></pre>
</div>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td></td>
</tr>
</tbody>
</table>
<h3 id="operators">Operators
</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_Drawing_PolygonF_op_Equality_X10D_Drawing_PolygonF_X10D_Drawing_PolygonF_.md&amp;value=---%0Auid%3A%20X10D.Drawing.PolygonF.op_Equality(X10D.Drawing.PolygonF%2CX10D.Drawing.PolygonF)%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/Drawing/PolygonF.cs/#L167">View Source</a>
</span>
<a id="X10D_Drawing_PolygonF_op_Equality_" data-uid="X10D.Drawing.PolygonF.op_Equality*"></a>
<h4 id="X10D_Drawing_PolygonF_op_Equality_X10D_Drawing_PolygonF_X10D_Drawing_PolygonF_" data-uid="X10D.Drawing.PolygonF.op_Equality(X10D.Drawing.PolygonF,X10D.Drawing.PolygonF)">Equality(PolygonF, PolygonF)</h4>
<div class="markdown level1 summary"><p>Returns a value indicating whether two instances of <a class="xref" href="X10D.Drawing.PolygonF.html">PolygonF</a> are equal.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool operator ==(PolygonF left, PolygonF right)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="X10D.Drawing.PolygonF.html">PolygonF</a></td>
<td><span class="parametername">left</span></td>
<td><p>The first instance.</p>
</td>
</tr>
<tr>
<td><a class="xref" href="X10D.Drawing.PolygonF.html">PolygonF</a></td>
<td><span class="parametername">right</span></td>
<td><p>The second instance.</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><span class="xref">true</span> if <code data-dev-comment-type="paramref" class="paramref">left</code> and <code data-dev-comment-type="paramref" class="paramref">right</code> are considered equal; otherwise,
<span class="xref">false</span>.</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_Drawing_PolygonF_op_Implicit_X10D_Drawing_Polygon__X10D_Drawing_PolygonF.md&amp;value=---%0Auid%3A%20X10D.Drawing.PolygonF.op_Implicit(X10D.Drawing.Polygon)~X10D.Drawing.PolygonF%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/Drawing/PolygonF.cs/#L191">View Source</a>
</span>
<a id="X10D_Drawing_PolygonF_op_Implicit_" data-uid="X10D.Drawing.PolygonF.op_Implicit*"></a>
<h4 id="X10D_Drawing_PolygonF_op_Implicit_X10D_Drawing_Polygon__X10D_Drawing_PolygonF" data-uid="X10D.Drawing.PolygonF.op_Implicit(X10D.Drawing.Polygon)~X10D.Drawing.PolygonF">Implicit(Polygon to PolygonF)</h4>
<div class="markdown level1 summary"><p>Implicitly converts a <a class="xref" href="X10D.Drawing.Polygon.html">Polygon</a> to a <a class="xref" href="X10D.Drawing.PolygonF.html">PolygonF</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static implicit operator PolygonF(Polygon polygon)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="X10D.Drawing.Polygon.html">Polygon</a></td>
<td><span class="parametername">polygon</span></td>
<td><p>The polygon to convert.</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="X10D.Drawing.PolygonF.html">PolygonF</a></td>
<td><p>The converted polygon.</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_Drawing_PolygonF_op_Inequality_X10D_Drawing_PolygonF_X10D_Drawing_PolygonF_.md&amp;value=---%0Auid%3A%20X10D.Drawing.PolygonF.op_Inequality(X10D.Drawing.PolygonF%2CX10D.Drawing.PolygonF)%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/Drawing/PolygonF.cs/#L181">View Source</a>
</span>
<a id="X10D_Drawing_PolygonF_op_Inequality_" data-uid="X10D.Drawing.PolygonF.op_Inequality*"></a>
<h4 id="X10D_Drawing_PolygonF_op_Inequality_X10D_Drawing_PolygonF_X10D_Drawing_PolygonF_" data-uid="X10D.Drawing.PolygonF.op_Inequality(X10D.Drawing.PolygonF,X10D.Drawing.PolygonF)">Inequality(PolygonF, PolygonF)</h4>
<div class="markdown level1 summary"><p>Returns a value indicating whether two instances of <a class="xref" href="X10D.Drawing.PolygonF.html">PolygonF</a> are not equal.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool operator !=(PolygonF left, PolygonF right)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="X10D.Drawing.PolygonF.html">PolygonF</a></td>
<td><span class="parametername">left</span></td>
<td><p>The first instance.</p>
</td>
</tr>
<tr>
<td><a class="xref" href="X10D.Drawing.PolygonF.html">PolygonF</a></td>
<td><span class="parametername">right</span></td>
<td><p>The second instance.</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><span class="xref">true</span> if <code data-dev-comment-type="paramref" class="paramref">left</code> and <code data-dev-comment-type="paramref" class="paramref">right</code> are considered not equal; otherwise,
<span class="xref">false</span>.</p>
</td>
</tr>
</tbody>
</table>
<h3 id="extensionmethods">Extension Methods</h3>
<div>
<a class="xref" href="X10D.Core.Extensions.html#X10D_Core_Extensions_AsArrayValue__1___0_">Extensions.AsArrayValue&lt;T&gt;(T)</a>
</div>
<div>
<a class="xref" href="X10D.Core.Extensions.html#X10D_Core_Extensions_AsEnumerableValue__1___0_">Extensions.AsEnumerableValue&lt;T&gt;(T)</a>
</div>
<div>
<a class="xref" href="X10D.Core.Extensions.html#X10D_Core_Extensions_RepeatValue__1___0_System_Int32_">Extensions.RepeatValue&lt;T&gt;(T, Int32)</a>
</div>
<div>
<a class="xref" href="X10D.Unity.Drawing.PolygonFExtensions.html#X10D_Unity_Drawing_PolygonFExtensions_AddVertex_X10D_Drawing_PolygonF_Vector2Int_">PolygonFExtensions.AddVertex(PolygonF, Vector2Int)</a>
</div>
<div>
<a class="xref" href="X10D.Unity.Drawing.PolygonFExtensions.html#X10D_Unity_Drawing_PolygonFExtensions_AddVertex_X10D_Drawing_PolygonF_Vector2_">PolygonFExtensions.AddVertex(PolygonF, Vector2)</a>
</div>
<div>
<a class="xref" href="X10D.Unity.Drawing.PolygonFExtensions.html#X10D_Unity_Drawing_PolygonFExtensions_AddVertices_X10D_Drawing_PolygonF_IEnumerable_Vector2Int__">PolygonFExtensions.AddVertices(PolygonF, IEnumerable&lt;Vector2Int&gt;)</a>
</div>
<div>
<a class="xref" href="X10D.Unity.Drawing.PolygonFExtensions.html#X10D_Unity_Drawing_PolygonFExtensions_AddVertices_X10D_Drawing_PolygonF_IEnumerable_Vector2__">PolygonFExtensions.AddVertices(PolygonF, IEnumerable&lt;Vector2&gt;)</a>
</div>
</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>

View File

@ -0,0 +1,868 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class Polyhedron
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class Polyhedron
| 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.Drawing.Polyhedron">
<h1 id="X10D_Drawing_Polyhedron" data-uid="X10D.Drawing.Polyhedron" class="text-break">Class Polyhedron
</h1>
<div class="markdown level0 summary"><p>Represents a 3D polyhedron composed of single-precision floating-point points.</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">Polyhedron</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.Drawing.html">X10D.Drawing</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_Drawing_Polyhedron_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public class Polyhedron : IEquatable&lt;Polyhedron&gt;</code></pre>
</div>
<h3 id="constructors">Constructors
</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_Drawing_Polyhedron__ctor.md&amp;value=---%0Auid%3A%20X10D.Drawing.Polyhedron.%23ctor%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/Drawing/Polyhedron.cs/#L17">View Source</a>
</span>
<a id="X10D_Drawing_Polyhedron__ctor_" data-uid="X10D.Drawing.Polyhedron.#ctor*"></a>
<h4 id="X10D_Drawing_Polyhedron__ctor" data-uid="X10D.Drawing.Polyhedron.#ctor">Polyhedron()</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="X10D.Drawing.Polyhedron.html">Polyhedron</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Polyhedron()</code></pre>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Drawing_Polyhedron__ctor_IEnumerable_Vector3__.md&amp;value=---%0Auid%3A%20X10D.Drawing.Polyhedron.%23ctor(IEnumerable%7BVector3%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/Drawing/Polyhedron.cs/#L35">View Source</a>
</span>
<a id="X10D_Drawing_Polyhedron__ctor_" data-uid="X10D.Drawing.Polyhedron.#ctor*"></a>
<h4 id="X10D_Drawing_Polyhedron__ctor_IEnumerable_Vector3__" data-uid="X10D.Drawing.Polyhedron.#ctor(IEnumerable{Vector3})">Polyhedron(IEnumerable&lt;Vector3&gt;)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="X10D.Drawing.Polyhedron.html">Polyhedron</a> class by constructing it from the specified vertices.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Polyhedron(IEnumerable&lt;Vector3&gt; vertices)</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;<span class="xref">Vector3</span>&gt;</td>
<td><span class="parametername">vertices</span></td>
<td><p>An enumerable collection of vertices from which the polyhedron should be constructed.</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_Drawing_Polyhedron__ctor_X10D_Drawing_Polyhedron_.md&amp;value=---%0Auid%3A%20X10D.Drawing.Polyhedron.%23ctor(X10D.Drawing.Polyhedron)%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/Drawing/Polyhedron.cs/#L25">View Source</a>
</span>
<a id="X10D_Drawing_Polyhedron__ctor_" data-uid="X10D.Drawing.Polyhedron.#ctor*"></a>
<h4 id="X10D_Drawing_Polyhedron__ctor_X10D_Drawing_Polyhedron_" data-uid="X10D.Drawing.Polyhedron.#ctor(X10D.Drawing.Polyhedron)">Polyhedron(Polyhedron)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="X10D.Drawing.Polyhedron.html">Polyhedron</a> class by copying the specified polyhedron.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Polyhedron(Polyhedron polyhedron)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="X10D.Drawing.Polyhedron.html">Polyhedron</a></td>
<td><span class="parametername">polyhedron</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/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Drawing_Polyhedron_Empty.md&amp;value=---%0Auid%3A%20X10D.Drawing.Polyhedron.Empty%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/Drawing/Polyhedron.cs/#L53">View Source</a>
</span>
<a id="X10D_Drawing_Polyhedron_Empty_" data-uid="X10D.Drawing.Polyhedron.Empty*"></a>
<h4 id="X10D_Drawing_Polyhedron_Empty" data-uid="X10D.Drawing.Polyhedron.Empty">Empty</h4>
<div class="markdown level1 summary"><p>Gets an empty polyhedron. That is, a polygon with no vertices.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static Polyhedron Empty { 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="X10D.Drawing.Polyhedron.html">Polyhedron</a></td>
<td><p>An empty polyhedron.</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_Drawing_Polyhedron_VertexCount.md&amp;value=---%0Auid%3A%20X10D.Drawing.Polyhedron.VertexCount%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/Drawing/Polyhedron.cs/#L62">View Source</a>
</span>
<a id="X10D_Drawing_Polyhedron_VertexCount_" data-uid="X10D.Drawing.Polyhedron.VertexCount*"></a>
<h4 id="X10D_Drawing_Polyhedron_VertexCount" data-uid="X10D.Drawing.Polyhedron.VertexCount">VertexCount</h4>
<div class="markdown level1 summary"><p>Gets the number of vertices in this polyhedron.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public int VertexCount { get; }</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>An <see cref="!:System.Int32"></see> value, representing the number of vertices in this polyhedron.</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_Drawing_Polyhedron_Vertices.md&amp;value=---%0Auid%3A%20X10D.Drawing.Polyhedron.Vertices%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/Drawing/Polyhedron.cs/#L73">View Source</a>
</span>
<a id="X10D_Drawing_Polyhedron_Vertices_" data-uid="X10D.Drawing.Polyhedron.Vertices*"></a>
<h4 id="X10D_Drawing_Polyhedron_Vertices" data-uid="X10D.Drawing.Polyhedron.Vertices">Vertices</h4>
<div class="markdown level1 summary"><p>Gets a read-only view of the vertices in this polyhedron.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public IReadOnlyList&lt;Vector3&gt; Vertices { 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">IReadOnlyList</span>&lt;<span class="xref">Vector3</span>&gt;</td>
<td><p>A <see cref="!:IReadOnlyList&lt;T>"></see> of <see cref="!:Vector3"></see> values, representing the vertices of this polyhedron.</p>
</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/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Drawing_Polyhedron_AddVertex_Vector3_.md&amp;value=---%0Auid%3A%20X10D.Drawing.Polyhedron.AddVertex(Vector3)%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/Drawing/Polyhedron.cs/#L190">View Source</a>
</span>
<a id="X10D_Drawing_Polyhedron_AddVertex_" data-uid="X10D.Drawing.Polyhedron.AddVertex*"></a>
<h4 id="X10D_Drawing_Polyhedron_AddVertex_Vector3_" data-uid="X10D.Drawing.Polyhedron.AddVertex(Vector3)">AddVertex(Vector3)</h4>
<div class="markdown level1 summary"><p>Adds a vertex to this polyhedron.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public void AddVertex(Vector3 vertex)</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">Vector3</span></td>
<td><span class="parametername">vertex</span></td>
<td><p>The vertex to add.</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_Drawing_Polyhedron_AddVertices_IEnumerable_Vector3__.md&amp;value=---%0Auid%3A%20X10D.Drawing.Polyhedron.AddVertices(IEnumerable%7BVector3%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/Drawing/Polyhedron.cs/#L200">View Source</a>
</span>
<a id="X10D_Drawing_Polyhedron_AddVertices_" data-uid="X10D.Drawing.Polyhedron.AddVertices*"></a>
<h4 id="X10D_Drawing_Polyhedron_AddVertices_IEnumerable_Vector3__" data-uid="X10D.Drawing.Polyhedron.AddVertices(IEnumerable{Vector3})">AddVertices(IEnumerable&lt;Vector3&gt;)</h4>
<div class="markdown level1 summary"><p>Adds a collection of vertices to this polyhedron.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public void AddVertices(IEnumerable&lt;Vector3&gt; vertices)</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;<span class="xref">Vector3</span>&gt;</td>
<td><span class="parametername">vertices</span></td>
<td><p>An enumerable collection of vertices to add.</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_Drawing_Polyhedron_ClearVertices.md&amp;value=---%0Auid%3A%20X10D.Drawing.Polyhedron.ClearVertices%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/Drawing/Polyhedron.cs/#L220">View Source</a>
</span>
<a id="X10D_Drawing_Polyhedron_ClearVertices_" data-uid="X10D.Drawing.Polyhedron.ClearVertices*"></a>
<h4 id="X10D_Drawing_Polyhedron_ClearVertices" data-uid="X10D.Drawing.Polyhedron.ClearVertices">ClearVertices()</h4>
<div class="markdown level1 summary"><p>Clears all vertices from this polyhedron.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public void ClearVertices()</code></pre>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Drawing_Polyhedron_Equals_System_Nullable_System_Object__.md&amp;value=---%0Auid%3A%20X10D.Drawing.Polyhedron.Equals(System.Nullable%7BSystem.Object%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/Drawing/Polyhedron.cs/#L226">View Source</a>
</span>
<a id="X10D_Drawing_Polyhedron_Equals_" data-uid="X10D.Drawing.Polyhedron.Equals*"></a>
<h4 id="X10D_Drawing_Polyhedron_Equals_System_Nullable_System_Object__" data-uid="X10D.Drawing.Polyhedron.Equals(System.Nullable{System.Object})">Equals(Nullable&lt;Object&gt;)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public override bool Equals(object? obj)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Nullable</span>&lt;<span class="xref">System.Object</span>&gt;</td>
<td><span class="parametername">obj</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td></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_Drawing_Polyhedron_Equals_X10D_Drawing_Polyhedron_.md&amp;value=---%0Auid%3A%20X10D.Drawing.Polyhedron.Equals(X10D.Drawing.Polyhedron)%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/Drawing/Polyhedron.cs/#L239">View Source</a>
</span>
<a id="X10D_Drawing_Polyhedron_Equals_" data-uid="X10D.Drawing.Polyhedron.Equals*"></a>
<h4 id="X10D_Drawing_Polyhedron_Equals_X10D_Drawing_Polyhedron_" data-uid="X10D.Drawing.Polyhedron.Equals(X10D.Drawing.Polyhedron)">Equals(Polyhedron)</h4>
<div class="markdown level1 summary"><p>Returns a value indicating whether this instance and another instance are equal.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public bool Equals(Polyhedron other)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="X10D.Drawing.Polyhedron.html">Polyhedron</a></td>
<td><span class="parametername">other</span></td>
<td><p>The instance with which to compare.</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><span class="xref">true</span> if this instance and <code data-dev-comment-type="paramref" class="paramref">other</code> are considered equal; otherwise,
<span class="xref">false</span>.</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_Drawing_Polyhedron_FromPolygon_X10D_Drawing_Polygon_.md&amp;value=---%0Auid%3A%20X10D.Drawing.Polyhedron.FromPolygon(X10D.Drawing.Polygon)%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/Drawing/Polyhedron.cs/#L138">View Source</a>
</span>
<a id="X10D_Drawing_Polyhedron_FromPolygon_" data-uid="X10D.Drawing.Polyhedron.FromPolygon*"></a>
<h4 id="X10D_Drawing_Polyhedron_FromPolygon_X10D_Drawing_Polygon_" data-uid="X10D.Drawing.Polyhedron.FromPolygon(X10D.Drawing.Polygon)">FromPolygon(Polygon)</h4>
<div class="markdown level1 summary"><p>Converts a <a class="xref" href="X10D.Drawing.Polygon.html">Polygon</a> to a <a class="xref" href="X10D.Drawing.Polyhedron.html">Polyhedron</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static Polyhedron FromPolygon(Polygon polygon)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="X10D.Drawing.Polygon.html">Polygon</a></td>
<td><span class="parametername">polygon</span></td>
<td><p>The polyhedron to convert.</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="X10D.Drawing.Polyhedron.html">Polyhedron</a></td>
<td><p>The converted polyhedron.</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_Drawing_Polyhedron_FromPolygonF_X10D_Drawing_PolygonF_.md&amp;value=---%0Auid%3A%20X10D.Drawing.Polyhedron.FromPolygonF(X10D.Drawing.PolygonF)%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/Drawing/Polyhedron.cs/#L165">View Source</a>
</span>
<a id="X10D_Drawing_Polyhedron_FromPolygonF_" data-uid="X10D.Drawing.Polyhedron.FromPolygonF*"></a>
<h4 id="X10D_Drawing_Polyhedron_FromPolygonF_X10D_Drawing_PolygonF_" data-uid="X10D.Drawing.Polyhedron.FromPolygonF(X10D.Drawing.PolygonF)">FromPolygonF(PolygonF)</h4>
<div class="markdown level1 summary"><p>Converts a <a class="xref" href="X10D.Drawing.PolygonF.html">PolygonF</a> to a <a class="xref" href="X10D.Drawing.Polyhedron.html">Polyhedron</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static Polyhedron FromPolygonF(PolygonF polygon)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="X10D.Drawing.PolygonF.html">PolygonF</a></td>
<td><span class="parametername">polygon</span></td>
<td><p>The polyhedron to convert.</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="X10D.Drawing.Polyhedron.html">Polyhedron</a></td>
<td><p>The converted polyhedron.</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_Drawing_Polyhedron_GetHashCode.md&amp;value=---%0Auid%3A%20X10D.Drawing.Polyhedron.GetHashCode%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/Drawing/Polyhedron.cs/#L245">View Source</a>
</span>
<a id="X10D_Drawing_Polyhedron_GetHashCode_" data-uid="X10D.Drawing.Polyhedron.GetHashCode*"></a>
<h4 id="X10D_Drawing_Polyhedron_GetHashCode" data-uid="X10D.Drawing.Polyhedron.GetHashCode">GetHashCode()</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public override int GetHashCode()</code></pre>
</div>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td></td>
</tr>
</tbody>
</table>
<h3 id="operators">Operators
</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_Drawing_Polyhedron_op_Equality_X10D_Drawing_Polyhedron_X10D_Drawing_Polyhedron_.md&amp;value=---%0Auid%3A%20X10D.Drawing.Polyhedron.op_Equality(X10D.Drawing.Polyhedron%2CX10D.Drawing.Polyhedron)%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/Drawing/Polyhedron.cs/#L87">View Source</a>
</span>
<a id="X10D_Drawing_Polyhedron_op_Equality_" data-uid="X10D.Drawing.Polyhedron.op_Equality*"></a>
<h4 id="X10D_Drawing_Polyhedron_op_Equality_X10D_Drawing_Polyhedron_X10D_Drawing_Polyhedron_" data-uid="X10D.Drawing.Polyhedron.op_Equality(X10D.Drawing.Polyhedron,X10D.Drawing.Polyhedron)">Equality(Polyhedron, Polyhedron)</h4>
<div class="markdown level1 summary"><p>Returns a value indicating whether two instances of <a class="xref" href="X10D.Drawing.Polyhedron.html">Polyhedron</a> are equal.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool operator ==(Polyhedron left, Polyhedron right)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="X10D.Drawing.Polyhedron.html">Polyhedron</a></td>
<td><span class="parametername">left</span></td>
<td><p>The first instance.</p>
</td>
</tr>
<tr>
<td><a class="xref" href="X10D.Drawing.Polyhedron.html">Polyhedron</a></td>
<td><span class="parametername">right</span></td>
<td><p>The second instance.</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><span class="xref">true</span> if <code data-dev-comment-type="paramref" class="paramref">left</code> and <code data-dev-comment-type="paramref" class="paramref">right</code> are considered equal; otherwise,
<span class="xref">false</span>.</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_Drawing_Polyhedron_op_Implicit_X10D_Drawing_Polygon__X10D_Drawing_Polyhedron.md&amp;value=---%0Auid%3A%20X10D.Drawing.Polyhedron.op_Implicit(X10D.Drawing.Polygon)~X10D.Drawing.Polyhedron%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/Drawing/Polyhedron.cs/#L113">View Source</a>
</span>
<a id="X10D_Drawing_Polyhedron_op_Implicit_" data-uid="X10D.Drawing.Polyhedron.op_Implicit*"></a>
<h4 id="X10D_Drawing_Polyhedron_op_Implicit_X10D_Drawing_Polygon__X10D_Drawing_Polyhedron" data-uid="X10D.Drawing.Polyhedron.op_Implicit(X10D.Drawing.Polygon)~X10D.Drawing.Polyhedron">Implicit(Polygon to Polyhedron)</h4>
<div class="markdown level1 summary"><p>Implicitly converts a <a class="xref" href="X10D.Drawing.Polygon.html">Polygon</a> to a <a class="xref" href="X10D.Drawing.Polyhedron.html">Polyhedron</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static implicit operator Polyhedron(Polygon polygon)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="X10D.Drawing.Polygon.html">Polygon</a></td>
<td><span class="parametername">polygon</span></td>
<td><p>The polyhedron to convert.</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="X10D.Drawing.Polyhedron.html">Polyhedron</a></td>
<td><p>The converted polyhedron, or <span class="xref">null</span> if <code data-dev-comment-type="paramref" class="paramref">polygon</code> is <span class="xref">null</span>.</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_Drawing_Polyhedron_op_Implicit_X10D_Drawing_PolygonF__X10D_Drawing_Polyhedron.md&amp;value=---%0Auid%3A%20X10D.Drawing.Polyhedron.op_Implicit(X10D.Drawing.PolygonF)~X10D.Drawing.Polyhedron%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/Drawing/Polyhedron.cs/#L126">View Source</a>
</span>
<a id="X10D_Drawing_Polyhedron_op_Implicit_" data-uid="X10D.Drawing.Polyhedron.op_Implicit*"></a>
<h4 id="X10D_Drawing_Polyhedron_op_Implicit_X10D_Drawing_PolygonF__X10D_Drawing_Polyhedron" data-uid="X10D.Drawing.Polyhedron.op_Implicit(X10D.Drawing.PolygonF)~X10D.Drawing.Polyhedron">Implicit(PolygonF to Polyhedron)</h4>
<div class="markdown level1 summary"><p>Implicitly converts a <a class="xref" href="X10D.Drawing.PolygonF.html">PolygonF</a> to a <a class="xref" href="X10D.Drawing.Polyhedron.html">Polyhedron</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static implicit operator Polyhedron(PolygonF polygon)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="X10D.Drawing.PolygonF.html">PolygonF</a></td>
<td><span class="parametername">polygon</span></td>
<td><p>The polyhedron to convert.</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="X10D.Drawing.Polyhedron.html">Polyhedron</a></td>
<td><p>The converted polyhedron, or <span class="xref">null</span> if <code data-dev-comment-type="paramref" class="paramref">polygon</code> is <span class="xref">null</span>.</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_Drawing_Polyhedron_op_Inequality_X10D_Drawing_Polyhedron_X10D_Drawing_Polyhedron_.md&amp;value=---%0Auid%3A%20X10D.Drawing.Polyhedron.op_Inequality(X10D.Drawing.Polyhedron%2CX10D.Drawing.Polyhedron)%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/Drawing/Polyhedron.cs/#L101">View Source</a>
</span>
<a id="X10D_Drawing_Polyhedron_op_Inequality_" data-uid="X10D.Drawing.Polyhedron.op_Inequality*"></a>
<h4 id="X10D_Drawing_Polyhedron_op_Inequality_X10D_Drawing_Polyhedron_X10D_Drawing_Polyhedron_" data-uid="X10D.Drawing.Polyhedron.op_Inequality(X10D.Drawing.Polyhedron,X10D.Drawing.Polyhedron)">Inequality(Polyhedron, Polyhedron)</h4>
<div class="markdown level1 summary"><p>Returns a value indicating whether two instances of <a class="xref" href="X10D.Drawing.Polyhedron.html">Polyhedron</a> are not equal.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool operator !=(Polyhedron left, Polyhedron right)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="X10D.Drawing.Polyhedron.html">Polyhedron</a></td>
<td><span class="parametername">left</span></td>
<td><p>The first instance.</p>
</td>
</tr>
<tr>
<td><a class="xref" href="X10D.Drawing.Polyhedron.html">Polyhedron</a></td>
<td><span class="parametername">right</span></td>
<td><p>The second instance.</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><span class="xref">true</span> if <code data-dev-comment-type="paramref" class="paramref">left</code> and <code data-dev-comment-type="paramref" class="paramref">right</code> are considered not equal; otherwise,
<span class="xref">false</span>.</p>
</td>
</tr>
</tbody>
</table>
<h3 id="extensionmethods">Extension Methods</h3>
<div>
<a class="xref" href="X10D.Core.Extensions.html#X10D_Core_Extensions_AsArrayValue__1___0_">Extensions.AsArrayValue&lt;T&gt;(T)</a>
</div>
<div>
<a class="xref" href="X10D.Core.Extensions.html#X10D_Core_Extensions_AsEnumerableValue__1___0_">Extensions.AsEnumerableValue&lt;T&gt;(T)</a>
</div>
<div>
<a class="xref" href="X10D.Core.Extensions.html#X10D_Core_Extensions_RepeatValue__1___0_System_Int32_">Extensions.RepeatValue&lt;T&gt;(T, Int32)</a>
</div>
<div>
<a class="xref" href="X10D.Unity.Drawing.PolyhedronExtensions.html#X10D_Unity_Drawing_PolyhedronExtensions_AddVertex_X10D_Drawing_Polyhedron_Vector3Int_">PolyhedronExtensions.AddVertex(Polyhedron, Vector3Int)</a>
</div>
<div>
<a class="xref" href="X10D.Unity.Drawing.PolyhedronExtensions.html#X10D_Unity_Drawing_PolyhedronExtensions_AddVertex_X10D_Drawing_Polyhedron_Vector3_">PolyhedronExtensions.AddVertex(Polyhedron, Vector3)</a>
</div>
<div>
<a class="xref" href="X10D.Unity.Drawing.PolyhedronExtensions.html#X10D_Unity_Drawing_PolyhedronExtensions_AddVertices_X10D_Drawing_Polyhedron_IEnumerable_Vector3Int__">PolyhedronExtensions.AddVertices(Polyhedron, IEnumerable&lt;Vector3Int&gt;)</a>
</div>
<div>
<a class="xref" href="X10D.Unity.Drawing.PolyhedronExtensions.html#X10D_Unity_Drawing_PolyhedronExtensions_AddVertices_X10D_Drawing_Polyhedron_IEnumerable_Vector3__">PolyhedronExtensions.AddVertices(Polyhedron, IEnumerable&lt;Vector3&gt;)</a>
</div>
</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>

View File

@ -0,0 +1,235 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class RandomExtensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class RandomExtensions
| 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.Drawing.RandomExtensions">
<h1 id="X10D_Drawing_RandomExtensions" data-uid="X10D.Drawing.RandomExtensions" class="text-break">Class RandomExtensions
</h1>
<div class="markdown level0 summary"><p>Extension methods for <see cref="!:Random"></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">RandomExtensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.Drawing.html">X10D.Drawing</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_Drawing_RandomExtensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class RandomExtensions : 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_Drawing_RandomExtensions_NextColorArgb_Random_.md&amp;value=---%0Auid%3A%20X10D.Drawing.RandomExtensions.NextColorArgb(Random)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Drawing/RandomExtensions.cs/#L39">View Source</a>
</span>
<a id="X10D_Drawing_RandomExtensions_NextColorArgb_" data-uid="X10D.Drawing.RandomExtensions.NextColorArgb*"></a>
<h4 id="X10D_Drawing_RandomExtensions_NextColorArgb_Random_" data-uid="X10D.Drawing.RandomExtensions.NextColorArgb(Random)">NextColorArgb(Random)</h4>
<div class="markdown level1 summary"><p>Returns a color composed of random components for apha, red, green, and blue.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static Color NextColorArgb(this Random random)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Random</span></td>
<td><span class="parametername">random</span></td>
<td><p>The <see cref="!:System.Random"></see> instance.</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">Color</span></td>
<td><p>A <see cref="!:Color"></see> whose alpha, red, green, and blue components are all random.</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_Drawing_RandomExtensions_NextColorRgb_Random_.md&amp;value=---%0Auid%3A%20X10D.Drawing.RandomExtensions.NextColorRgb(Random)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Drawing/RandomExtensions.cs/#L18">View Source</a>
</span>
<a id="X10D_Drawing_RandomExtensions_NextColorRgb_" data-uid="X10D.Drawing.RandomExtensions.NextColorRgb*"></a>
<h4 id="X10D_Drawing_RandomExtensions_NextColorRgb_Random_" data-uid="X10D.Drawing.RandomExtensions.NextColorRgb(Random)">NextColorRgb(Random)</h4>
<div class="markdown level1 summary"><p>Returns a color of random components for red, green, and blue.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static Color NextColorRgb(this Random random)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Random</span></td>
<td><span class="parametername">random</span></td>
<td><p>The <see cref="!:System.Random"></see> instance.</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">Color</span></td>
<td><p>A <see cref="!:Color"></see> whose red, green, and blue components are all random, and whose alpha is 255</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>

View File

@ -0,0 +1,285 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class SizeExtensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class SizeExtensions
| 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.Drawing.SizeExtensions">
<h1 id="X10D_Drawing_SizeExtensions" data-uid="X10D.Drawing.SizeExtensions" class="text-break">Class SizeExtensions
</h1>
<div class="markdown level0 summary"><p>Drawing-related extension methods for <see cref="!:Size"></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">SizeExtensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.Drawing.html">X10D.Drawing</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_Drawing_SizeExtensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class SizeExtensions : 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_Drawing_SizeExtensions_ToPoint_Size_.md&amp;value=---%0Auid%3A%20X10D.Drawing.SizeExtensions.ToPoint(Size)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Drawing/SizeExtensions.cs/#L19">View Source</a>
</span>
<a id="X10D_Drawing_SizeExtensions_ToPoint_" data-uid="X10D.Drawing.SizeExtensions.ToPoint*"></a>
<h4 id="X10D_Drawing_SizeExtensions_ToPoint_Size_" data-uid="X10D.Drawing.SizeExtensions.ToPoint(Size)">ToPoint(Size)</h4>
<div class="markdown level1 summary"><p>Converts the current <see cref="!:Size"></see> to a <see cref="!:Point"></see>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static Point ToPoint(this Size size)</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">Size</span></td>
<td><span class="parametername">size</span></td>
<td><p>The size to convert.</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">Point</span></td>
<td><p>The resulting <see cref="!:Point"></see>.</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_Drawing_SizeExtensions_ToPointF_Size_.md&amp;value=---%0Auid%3A%20X10D.Drawing.SizeExtensions.ToPointF(Size)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Drawing/SizeExtensions.cs/#L31">View Source</a>
</span>
<a id="X10D_Drawing_SizeExtensions_ToPointF_" data-uid="X10D.Drawing.SizeExtensions.ToPointF*"></a>
<h4 id="X10D_Drawing_SizeExtensions_ToPointF_Size_" data-uid="X10D.Drawing.SizeExtensions.ToPointF(Size)">ToPointF(Size)</h4>
<div class="markdown level1 summary"><p>Converts the current <see cref="!:Size"></see> to a <see cref="!:PointF"></see>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static PointF ToPointF(this Size size)</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">Size</span></td>
<td><span class="parametername">size</span></td>
<td><p>The size to convert.</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">PointF</span></td>
<td><p>The resulting <see cref="!:PointF"></see>.</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_Drawing_SizeExtensions_ToVector2_Size_.md&amp;value=---%0Auid%3A%20X10D.Drawing.SizeExtensions.ToVector2(Size)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Drawing/SizeExtensions.cs/#L43">View Source</a>
</span>
<a id="X10D_Drawing_SizeExtensions_ToVector2_" data-uid="X10D.Drawing.SizeExtensions.ToVector2*"></a>
<h4 id="X10D_Drawing_SizeExtensions_ToVector2_Size_" data-uid="X10D.Drawing.SizeExtensions.ToVector2(Size)">ToVector2(Size)</h4>
<div class="markdown level1 summary"><p>Converts the current <see cref="!:Size"></see> to a <see cref="!:Vector2"></see>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static Vector2 ToVector2(this Size size)</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">Size</span></td>
<td><span class="parametername">size</span></td>
<td><p>The size to convert.</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">Vector2</span></td>
<td><p>The resulting <see cref="!:Vector2"></see>.</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>

1161
api/X10D.Drawing.Sphere.html Normal file

File diff suppressed because it is too large Load Diff

176
api/X10D.Drawing.html Normal file
View File

@ -0,0 +1,176 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Namespace X10D.Drawing
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Namespace X10D.Drawing
| 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.Drawing">
<h1 id="X10D_Drawing" data-uid="X10D.Drawing" class="text-break">Namespace X10D.Drawing
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>
<div class="markdown level0 remarks"></div>
<h3 id="classes">Classes
</h3>
<h5><a class="xref" href="X10D.Drawing.ColorExtensions.html">ColorExtensions</a></h5>
<section><p>Drawing-related extensions for <see cref="!:Color"></see>.</p>
</section>
<h5><a class="xref" href="X10D.Drawing.PointExtensions.html">PointExtensions</a></h5>
<section><p>Drawing-related extension methods for <see cref="!:Point"></see>.</p>
</section>
<h5><a class="xref" href="X10D.Drawing.PointFExtensions.html">PointFExtensions</a></h5>
<section><p>Drawing-related extension methods for <see cref="!:PointF"></see>.</p>
</section>
<h5><a class="xref" href="X10D.Drawing.Polygon.html">Polygon</a></h5>
<section><p>Represents a 2D polygon composed of 32-bit signed integer vertices.</p>
</section>
<h5><a class="xref" href="X10D.Drawing.PolygonF.html">PolygonF</a></h5>
<section><p>Represents a 2D polygon composed of single-precision floating-vertex vertices.</p>
</section>
<h5><a class="xref" href="X10D.Drawing.Polyhedron.html">Polyhedron</a></h5>
<section><p>Represents a 3D polyhedron composed of single-precision floating-point points.</p>
</section>
<h5><a class="xref" href="X10D.Drawing.RandomExtensions.html">RandomExtensions</a></h5>
<section><p>Extension methods for <see cref="!:Random"></see>.</p>
</section>
<h5><a class="xref" href="X10D.Drawing.SizeExtensions.html">SizeExtensions</a></h5>
<section><p>Drawing-related extension methods for <see cref="!:Size"></see>.</p>
</section>
<h3 id="structs">Structs
</h3>
<h5><a class="xref" href="X10D.Drawing.Circle.html">Circle</a></h5>
<section><p>Represents a circle that is composed of a 32-bit signed integer center point and radius.</p>
</section>
<h5><a class="xref" href="X10D.Drawing.CircleF.html">CircleF</a></h5>
<section><p>Represents a circle that is composed of a single-precision floating-point center point and radius.</p>
</section>
<h5><a class="xref" href="X10D.Drawing.Cuboid.html">Cuboid</a></h5>
<section><p>Represents a cuboid in 3D space, which uses single-precision floating-point numbers for its coordinates.</p>
</section>
<h5><a class="xref" href="X10D.Drawing.Ellipse.html">Ellipse</a></h5>
<section><p>Represents an ellipse that is composed of a 32-bit signed integer center point and radius.</p>
</section>
<h5><a class="xref" href="X10D.Drawing.EllipseF.html">EllipseF</a></h5>
<section><p>Represents an ellipse that is composed of a single-precision floating-point center point and radius.</p>
</section>
<h5><a class="xref" href="X10D.Drawing.Line.html">Line</a></h5>
<section><p>Represents a line in 2D space that is composed of 32-bit signed integer X and Y coordinates.</p>
</section>
<h5><a class="xref" href="X10D.Drawing.Line3D.html">Line3D</a></h5>
<section><p>Represents a line in 3D space that is composed of 32-bit signed integer X, Y and Z coordinates.</p>
</section>
<h5><a class="xref" href="X10D.Drawing.LineF.html">LineF</a></h5>
<section><p>Represents a line in 2D space that is composed of single-precision floating-point X and Y coordinates.</p>
</section>
<h5><a class="xref" href="X10D.Drawing.Sphere.html">Sphere</a></h5>
<section><p>Represents a sphere in 3D space, which uses single-precision floating-point numbers for its coordinates.</p>
</section>
</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>

160
api/X10D.Endianness.html Normal file
View File

@ -0,0 +1,160 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Enum Endianness
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Enum Endianness
| 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.Endianness">
<h1 id="X10D_Endianness" data-uid="X10D.Endianness" class="text-break">Enum Endianness
</h1>
<div class="markdown level0 summary"><p>Represents an enumeration of endianness values.</p>
</div>
<div class="markdown level0 conceptual"></div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.html">X10D</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_Endianness_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public enum Endianness : int</code></pre>
</div>
<h3 id="fields">Fields
</h3>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
<thead>
<tbody>
<tr>
<td id="X10D_Endianness_BigEndian">BigEndian</td>
<td><p>The value should be read as though it uses big endian encoding.</p>
</td>
</tr>
<tr>
<td id="X10D_Endianness_LittleEndian">LittleEndian</td>
<td><p>The value should be read as though it uses little endian encoding.</p>
</td>
</tr>
</tbody>
</thead></thead></table>
<h3 id="extensionmethods">Extension Methods</h3>
<div>
<a class="xref" href="X10D.Core.Extensions.html#X10D_Core_Extensions_AsArrayValue__1___0_">Extensions.AsArrayValue&lt;Endianness&gt;()</a>
</div>
<div>
<a class="xref" href="X10D.Core.Extensions.html#X10D_Core_Extensions_AsEnumerableValue__1___0_">Extensions.AsEnumerableValue&lt;Endianness&gt;()</a>
</div>
<div>
<a class="xref" href="X10D.Core.Extensions.html#X10D_Core_Extensions_RepeatValue__1___0_System_Int32_">Extensions.RepeatValue&lt;Endianness&gt;(Int32)</a>
</div>
</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>

View File

@ -0,0 +1,392 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class ServiceCollectionExtensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class ServiceCollectionExtensions
| 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.Hosting.DependencyInjection.ServiceCollectionExtensions">
<h1 id="X10D_Hosting_DependencyInjection_ServiceCollectionExtensions" data-uid="X10D.Hosting.DependencyInjection.ServiceCollectionExtensions" class="text-break">Class ServiceCollectionExtensions
</h1>
<div class="markdown level0 summary"><p>Dependency injection extensions for <see cref="!:IServiceCollection"></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">ServiceCollectionExtensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.Hosting.DependencyInjection.html">X10D.Hosting.DependencyInjection</a></h6>
<h6><strong>Assembly</strong>: X10D.Hosting.dll</h6>
<h5 id="X10D_Hosting_DependencyInjection_ServiceCollectionExtensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class ServiceCollectionExtensions : 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_Hosting_DependencyInjection_ServiceCollectionExtensions_AddHostedSingleton_IServiceCollection_Type_.md&amp;value=---%0Auid%3A%20X10D.Hosting.DependencyInjection.ServiceCollectionExtensions.AddHostedSingleton(IServiceCollection%2CType)%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.Hosting/src/DependencyInjection/ServiceCollectionExtensions.cs/#L46">View Source</a>
</span>
<a id="X10D_Hosting_DependencyInjection_ServiceCollectionExtensions_AddHostedSingleton_" data-uid="X10D.Hosting.DependencyInjection.ServiceCollectionExtensions.AddHostedSingleton*"></a>
<h4 id="X10D_Hosting_DependencyInjection_ServiceCollectionExtensions_AddHostedSingleton_IServiceCollection_Type_" data-uid="X10D.Hosting.DependencyInjection.ServiceCollectionExtensions.AddHostedSingleton(IServiceCollection,Type)">AddHostedSingleton(IServiceCollection, Type)</h4>
<div class="markdown level1 summary"><p>Adds an <see cref="!:IHostedService"></see> registration for the given type, while simultaneously adding it as a singleton.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static IServiceCollection AddHostedSingleton(this IServiceCollection services, Type type)</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">IServiceCollection</span></td>
<td><span class="parametername">services</span></td>
<td><p>The <see cref="!:IServiceCollection"></see> to add the service to.</p>
</td>
</tr>
<tr>
<td><span class="xref">Type</span></td>
<td><span class="parametername">type</span></td>
<td><p>The type of the service to register and the implementation to use.</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">IServiceCollection</span></td>
<td><p>A reference to this instance after the operation has completed.</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_Hosting_DependencyInjection_ServiceCollectionExtensions_AddHostedSingleton_IServiceCollection_Type_Type_.md&amp;value=---%0Auid%3A%20X10D.Hosting.DependencyInjection.ServiceCollectionExtensions.AddHostedSingleton(IServiceCollection%2CType%2CType)%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.Hosting/src/DependencyInjection/ServiceCollectionExtensions.cs/#L59">View Source</a>
</span>
<a id="X10D_Hosting_DependencyInjection_ServiceCollectionExtensions_AddHostedSingleton_" data-uid="X10D.Hosting.DependencyInjection.ServiceCollectionExtensions.AddHostedSingleton*"></a>
<h4 id="X10D_Hosting_DependencyInjection_ServiceCollectionExtensions_AddHostedSingleton_IServiceCollection_Type_Type_" data-uid="X10D.Hosting.DependencyInjection.ServiceCollectionExtensions.AddHostedSingleton(IServiceCollection,Type,Type)">AddHostedSingleton(IServiceCollection, Type, Type)</h4>
<div class="markdown level1 summary"><p>Adds an <see cref="!:IHostedService"></see> registration for the given type, while simultaneously adding it as a singleton.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static IServiceCollection AddHostedSingleton(this IServiceCollection services, Type serviceType, Type implementationType)</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">IServiceCollection</span></td>
<td><span class="parametername">services</span></td>
<td><p>The <see cref="!:IServiceCollection"></see> to add the service to.</p>
</td>
</tr>
<tr>
<td><span class="xref">Type</span></td>
<td><span class="parametername">serviceType</span></td>
<td><p>The type of the service to register.</p>
</td>
</tr>
<tr>
<td><span class="xref">Type</span></td>
<td><span class="parametername">implementationType</span></td>
<td><p>The type of the implementation to use.</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">IServiceCollection</span></td>
<td><p>A reference to this instance after the operation has completed.</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_Hosting_DependencyInjection_ServiceCollectionExtensions_AddHostedSingleton__1_IServiceCollection_.md&amp;value=---%0Auid%3A%20X10D.Hosting.DependencyInjection.ServiceCollectionExtensions.AddHostedSingleton%60%601(IServiceCollection)%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.Hosting/src/DependencyInjection/ServiceCollectionExtensions.cs/#L17">View Source</a>
</span>
<a id="X10D_Hosting_DependencyInjection_ServiceCollectionExtensions_AddHostedSingleton_" data-uid="X10D.Hosting.DependencyInjection.ServiceCollectionExtensions.AddHostedSingleton*"></a>
<h4 id="X10D_Hosting_DependencyInjection_ServiceCollectionExtensions_AddHostedSingleton__1_IServiceCollection_" data-uid="X10D.Hosting.DependencyInjection.ServiceCollectionExtensions.AddHostedSingleton``1(IServiceCollection)">AddHostedSingleton&lt;TService&gt;(IServiceCollection)</h4>
<div class="markdown level1 summary"><p>Adds an <see cref="!:IHostedService"></see> registration for the given type, while simultaneously adding it as a singleton.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static IServiceCollection AddHostedSingleton&lt;TService&gt;(this IServiceCollection services)
where TService : class, IHostedService</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">IServiceCollection</span></td>
<td><span class="parametername">services</span></td>
<td><p>The <see cref="!:IServiceCollection"></see> to add the service to.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">IServiceCollection</span></td>
<td><p>A reference to this instance after the operation has completed.</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">TService</span></td>
<td><p>The type of the service to add.</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_Hosting_DependencyInjection_ServiceCollectionExtensions_AddHostedSingleton__2_IServiceCollection_.md&amp;value=---%0Auid%3A%20X10D.Hosting.DependencyInjection.ServiceCollectionExtensions.AddHostedSingleton%60%602(IServiceCollection)%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.Hosting/src/DependencyInjection/ServiceCollectionExtensions.cs/#L31">View Source</a>
</span>
<a id="X10D_Hosting_DependencyInjection_ServiceCollectionExtensions_AddHostedSingleton_" data-uid="X10D.Hosting.DependencyInjection.ServiceCollectionExtensions.AddHostedSingleton*"></a>
<h4 id="X10D_Hosting_DependencyInjection_ServiceCollectionExtensions_AddHostedSingleton__2_IServiceCollection_" data-uid="X10D.Hosting.DependencyInjection.ServiceCollectionExtensions.AddHostedSingleton``2(IServiceCollection)">AddHostedSingleton&lt;TService, TImplementation&gt;(IServiceCollection)</h4>
<div class="markdown level1 summary"><p>Adds an <see cref="!:IHostedService"></see> registration for the given type, while simultaneously adding it as a singleton.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static IServiceCollection AddHostedSingleton&lt;TService, TImplementation&gt;(this IServiceCollection services)
where TService : class where TImplementation : class, TService, IHostedService</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">IServiceCollection</span></td>
<td><span class="parametername">services</span></td>
<td><p>The <see cref="!:IServiceCollection"></see> to add the service to.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">IServiceCollection</span></td>
<td><p>A reference to this instance after the operation has completed.</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">TService</span></td>
<td><p>The type of the service to add.</p>
</td>
</tr>
<tr>
<td><span class="parametername">TImplementation</span></td>
<td><p>The type of the implementation to use.</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>

View File

@ -0,0 +1,126 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Namespace X10D.Hosting.DependencyInjection
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Namespace X10D.Hosting.DependencyInjection
| 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.Hosting.DependencyInjection">
<h1 id="X10D_Hosting_DependencyInjection" data-uid="X10D.Hosting.DependencyInjection" class="text-break">Namespace X10D.Hosting.DependencyInjection
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>
<div class="markdown level0 remarks"></div>
<h3 id="classes">Classes
</h3>
<h5><a class="xref" href="X10D.Hosting.DependencyInjection.ServiceCollectionExtensions.html">ServiceCollectionExtensions</a></h5>
<section><p>Dependency injection extensions for <see cref="!:IServiceCollection"></see>.</p>
</section>
</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>

View File

@ -0,0 +1,241 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class BooleanExtensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class BooleanExtensions
| 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.IO.BooleanExtensions">
<h1 id="X10D_IO_BooleanExtensions" data-uid="X10D.IO.BooleanExtensions" class="text-break">Class BooleanExtensions
</h1>
<div class="markdown level0 summary"><p>Extension methods for <see cref="!:System.Boolean"></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">BooleanExtensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.IO.html">X10D.IO</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_IO_BooleanExtensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class BooleanExtensions : 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_IO_BooleanExtensions_GetBytes_System_Boolean_.md&amp;value=---%0Auid%3A%20X10D.IO.BooleanExtensions.GetBytes(System.Boolean)%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/IO/BooleanExtensions.cs/#L15">View Source</a>
</span>
<a id="X10D_IO_BooleanExtensions_GetBytes_" data-uid="X10D.IO.BooleanExtensions.GetBytes*"></a>
<h4 id="X10D_IO_BooleanExtensions_GetBytes_System_Boolean_" data-uid="X10D.IO.BooleanExtensions.GetBytes(System.Boolean)">GetBytes(Boolean)</h4>
<div class="markdown level1 summary"><p>Returns the current boolean value as an array of bytes.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static byte[] GetBytes(this bool value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to convert.</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.Byte</span>[]</td>
<td><p>An array of bytes with length 1.</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_IO_BooleanExtensions_TryWriteBytes_System_Boolean_Span_System_Byte__.md&amp;value=---%0Auid%3A%20X10D.IO.BooleanExtensions.TryWriteBytes(System.Boolean%2CSpan%7BSystem.Byte%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/IO/BooleanExtensions.cs/#L27">View Source</a>
</span>
<a id="X10D_IO_BooleanExtensions_TryWriteBytes_" data-uid="X10D.IO.BooleanExtensions.TryWriteBytes*"></a>
<h4 id="X10D_IO_BooleanExtensions_TryWriteBytes_System_Boolean_Span_System_Byte__" data-uid="X10D.IO.BooleanExtensions.TryWriteBytes(System.Boolean,Span{System.Byte})">TryWriteBytes(Boolean, Span&lt;Byte&gt;)</h4>
<div class="markdown level1 summary"><p>Converts a <see cref="!:System.Boolean"></see> into a span of bytes.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool TryWriteBytes(this bool value, Span&lt;byte&gt; destination)</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.Boolean</span></td>
<td><span class="parametername">value</span></td>
<td><p>The <see cref="!:System.Boolean"></see> value.</p>
</td>
</tr>
<tr>
<td><span class="xref">Span</span>&lt;<span class="xref">System.Byte</span>&gt;</td>
<td><span class="parametername">destination</span></td>
<td><p>When this method returns, the bytes representing the converted <see cref="!:System.Boolean"></see>.</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><span class="xref">true</span> if the conversion was successful; otherwise, <span class="xref">false</span>.</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>

View File

@ -0,0 +1,241 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class ByteExtensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class ByteExtensions
| 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.IO.ByteExtensions">
<h1 id="X10D_IO_ByteExtensions" data-uid="X10D.IO.ByteExtensions" class="text-break">Class ByteExtensions
</h1>
<div class="markdown level0 summary"><p>IO-related extension methods for <see cref="!:System.Byte"></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">ByteExtensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.IO.html">X10D.IO</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_IO_ByteExtensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class ByteExtensions : 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_IO_ByteExtensions_GetBytes_System_Byte_.md&amp;value=---%0Auid%3A%20X10D.IO.ByteExtensions.GetBytes(System.Byte)%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/IO/ByteExtensions.cs/#L16">View Source</a>
</span>
<a id="X10D_IO_ByteExtensions_GetBytes_" data-uid="X10D.IO.ByteExtensions.GetBytes*"></a>
<h4 id="X10D_IO_ByteExtensions_GetBytes_System_Byte_" data-uid="X10D.IO.ByteExtensions.GetBytes(System.Byte)">GetBytes(Byte)</h4>
<div class="markdown level1 summary"><p>Returns the current 8-bit unsigned integer value as an array of bytes.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static byte[] GetBytes(this byte value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Byte</span></td>
<td><span class="parametername">value</span></td>
<td><p>The number to convert.</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.Byte</span>[]</td>
<td><p>An array of bytes with length 1.</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_IO_ByteExtensions_TryWriteBytes_System_Byte_Span_System_Byte__.md&amp;value=---%0Auid%3A%20X10D.IO.ByteExtensions.TryWriteBytes(System.Byte%2CSpan%7BSystem.Byte%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/IO/ByteExtensions.cs/#L28">View Source</a>
</span>
<a id="X10D_IO_ByteExtensions_TryWriteBytes_" data-uid="X10D.IO.ByteExtensions.TryWriteBytes*"></a>
<h4 id="X10D_IO_ByteExtensions_TryWriteBytes_System_Byte_Span_System_Byte__" data-uid="X10D.IO.ByteExtensions.TryWriteBytes(System.Byte,Span{System.Byte})">TryWriteBytes(Byte, Span&lt;Byte&gt;)</h4>
<div class="markdown level1 summary"><p>Converts a <see cref="!:System.Byte"></see> into a span of bytes.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool TryWriteBytes(this byte value, Span&lt;byte&gt; destination)</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.Byte</span></td>
<td><span class="parametername">value</span></td>
<td><p>The <see cref="!:System.Byte"></see> value.</p>
</td>
</tr>
<tr>
<td><span class="xref">Span</span>&lt;<span class="xref">System.Byte</span>&gt;</td>
<td><span class="parametername">destination</span></td>
<td><p>When this method returns, the bytes representing the converted <see cref="!:System.Byte"></see>.</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><span class="xref">true</span> if the conversion was successful; otherwise, <span class="xref">false</span>.</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>

View File

@ -0,0 +1,169 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class DirectoryInfoExtensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class DirectoryInfoExtensions
| 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.IO.DirectoryInfoExtensions">
<h1 id="X10D_IO_DirectoryInfoExtensions" data-uid="X10D.IO.DirectoryInfoExtensions" class="text-break">Class DirectoryInfoExtensions
</h1>
<div class="markdown level0 summary"><p>IO-related extension methods for <see cref="!:DirectoryInfo"></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">DirectoryInfoExtensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.IO.html">X10D.IO</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_IO_DirectoryInfoExtensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class DirectoryInfoExtensions : 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_IO_DirectoryInfoExtensions_Clear_DirectoryInfo_.md&amp;value=---%0Auid%3A%20X10D.IO.DirectoryInfoExtensions.Clear(DirectoryInfo)%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/IO/DirectoryInfoExtensions.cs/#L34">View Source</a>
</span>
<a id="X10D_IO_DirectoryInfoExtensions_Clear_" data-uid="X10D.IO.DirectoryInfoExtensions.Clear*"></a>
<h4 id="X10D_IO_DirectoryInfoExtensions_Clear_DirectoryInfo_" data-uid="X10D.IO.DirectoryInfoExtensions.Clear(DirectoryInfo)">Clear(DirectoryInfo)</h4>
<div class="markdown level1 summary"><p>Removes all files and subdirectories in this directory, recursively, without deleting this directory.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static void Clear(this DirectoryInfo directory)</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">DirectoryInfo</span></td>
<td><span class="parametername">directory</span></td>
<td><p>The directory to clear.</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>

View File

@ -0,0 +1,359 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class DoubleExtensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class DoubleExtensions
| 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.IO.DoubleExtensions">
<h1 id="X10D_IO_DoubleExtensions" data-uid="X10D.IO.DoubleExtensions" class="text-break">Class DoubleExtensions
</h1>
<div class="markdown level0 summary"><p>IO-related extension methods for <see cref="!:System.Double"></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">DoubleExtensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.IO.html">X10D.IO</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_IO_DoubleExtensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class DoubleExtensions : 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_IO_DoubleExtensions_GetBytes_System_Double_.md&amp;value=---%0Auid%3A%20X10D.IO.DoubleExtensions.GetBytes(System.Double)%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/IO/DoubleExtensions.cs/#L17">View Source</a>
</span>
<a id="X10D_IO_DoubleExtensions_GetBytes_" data-uid="X10D.IO.DoubleExtensions.GetBytes*"></a>
<h4 id="X10D_IO_DoubleExtensions_GetBytes_System_Double_" data-uid="X10D.IO.DoubleExtensions.GetBytes(System.Double)">GetBytes(Double)</h4>
<div class="markdown level1 summary"><p>Returns the current double-precision floating-point value as an array of bytes.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static byte[] GetBytes(this double value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Double</span></td>
<td><span class="parametername">value</span></td>
<td><p>The number to convert.</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.Byte</span>[]</td>
<td><p>An array of bytes with length 8.</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_IO_DoubleExtensions_GetBytes_System_Double_X10D_Endianness_.md&amp;value=---%0Auid%3A%20X10D.IO.DoubleExtensions.GetBytes(System.Double%2CX10D.Endianness)%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/IO/DoubleExtensions.cs/#L31">View Source</a>
</span>
<a id="X10D_IO_DoubleExtensions_GetBytes_" data-uid="X10D.IO.DoubleExtensions.GetBytes*"></a>
<h4 id="X10D_IO_DoubleExtensions_GetBytes_System_Double_X10D_Endianness_" data-uid="X10D.IO.DoubleExtensions.GetBytes(System.Double,X10D.Endianness)">GetBytes(Double, Endianness)</h4>
<div class="markdown level1 summary"><p>Returns the current double-precision floating-point value as an array of bytes.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static byte[] GetBytes(this double value, Endianness endianness)</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.Double</span></td>
<td><span class="parametername">value</span></td>
<td><p>The number to convert.</p>
</td>
</tr>
<tr>
<td><a class="xref" href="X10D.Endianness.html">Endianness</a></td>
<td><span class="parametername">endianness</span></td>
<td><p>The endianness with which to write the bytes.</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.Byte</span>[]</td>
<td><p>An array of bytes with length 8.</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_IO_DoubleExtensions_TryWriteBytes_System_Double_Span_System_Byte__.md&amp;value=---%0Auid%3A%20X10D.IO.DoubleExtensions.TryWriteBytes(System.Double%2CSpan%7BSystem.Byte%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/IO/DoubleExtensions.cs/#L45">View Source</a>
</span>
<a id="X10D_IO_DoubleExtensions_TryWriteBytes_" data-uid="X10D.IO.DoubleExtensions.TryWriteBytes*"></a>
<h4 id="X10D_IO_DoubleExtensions_TryWriteBytes_System_Double_Span_System_Byte__" data-uid="X10D.IO.DoubleExtensions.TryWriteBytes(System.Double,Span{System.Byte})">TryWriteBytes(Double, Span&lt;Byte&gt;)</h4>
<div class="markdown level1 summary"><p>Converts the current double-precision floating-point into a span of bytes.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool TryWriteBytes(this double value, Span&lt;byte&gt; destination)</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.Double</span></td>
<td><span class="parametername">value</span></td>
<td><p>The <see cref="!:System.Double"></see> value.</p>
</td>
</tr>
<tr>
<td><span class="xref">Span</span>&lt;<span class="xref">System.Byte</span>&gt;</td>
<td><span class="parametername">destination</span></td>
<td><p>When this method returns, the bytes representing the converted <see cref="!:System.Double"></see>.</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><span class="xref">true</span> if the conversion was successful; otherwise, <span class="xref">false</span>.</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_IO_DoubleExtensions_TryWriteBytes_System_Double_Span_System_Byte__X10D_Endianness_.md&amp;value=---%0Auid%3A%20X10D.IO.DoubleExtensions.TryWriteBytes(System.Double%2CSpan%7BSystem.Byte%7D%2CX10D.Endianness)%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/IO/DoubleExtensions.cs/#L57">View Source</a>
</span>
<a id="X10D_IO_DoubleExtensions_TryWriteBytes_" data-uid="X10D.IO.DoubleExtensions.TryWriteBytes*"></a>
<h4 id="X10D_IO_DoubleExtensions_TryWriteBytes_System_Double_Span_System_Byte__X10D_Endianness_" data-uid="X10D.IO.DoubleExtensions.TryWriteBytes(System.Double,Span{System.Byte},X10D.Endianness)">TryWriteBytes(Double, Span&lt;Byte&gt;, Endianness)</h4>
<div class="markdown level1 summary"><p>Converts the current double-precision floating-point into a span of bytes.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool TryWriteBytes(this double value, Span&lt;byte&gt; destination, Endianness endianness)</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.Double</span></td>
<td><span class="parametername">value</span></td>
<td><p>The <see cref="!:System.Double"></see> value.</p>
</td>
</tr>
<tr>
<td><span class="xref">Span</span>&lt;<span class="xref">System.Byte</span>&gt;</td>
<td><span class="parametername">destination</span></td>
<td><p>When this method returns, the bytes representing the converted <see cref="!:System.Double"></see>.</p>
</td>
</tr>
<tr>
<td><a class="xref" href="X10D.Endianness.html">Endianness</a></td>
<td><span class="parametername">endianness</span></td>
<td><p>The endianness with which to write the bytes.</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><span class="xref">true</span> if the conversion was successful; otherwise, <span class="xref">false</span>.</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>

View File

@ -0,0 +1,284 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class FileInfoExtensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class FileInfoExtensions
| 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.IO.FileInfoExtensions">
<h1 id="X10D_IO_FileInfoExtensions" data-uid="X10D.IO.FileInfoExtensions" class="text-break">Class FileInfoExtensions
</h1>
<div class="markdown level0 summary"><p>IO-related extension methods for <see cref="!:FileInfo"></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">FileInfoExtensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.IO.html">X10D.IO</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_IO_FileInfoExtensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class FileInfoExtensions : 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_IO_FileInfoExtensions_GetHash__1_FileInfo_.md&amp;value=---%0Auid%3A%20X10D.IO.FileInfoExtensions.GetHash%60%601(FileInfo)%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/IO/FileInfoExtensions.cs/#L28">View Source</a>
</span>
<a id="X10D_IO_FileInfoExtensions_GetHash_" data-uid="X10D.IO.FileInfoExtensions.GetHash*"></a>
<h4 id="X10D_IO_FileInfoExtensions_GetHash__1_FileInfo_" data-uid="X10D.IO.FileInfoExtensions.GetHash``1(FileInfo)">GetHash&lt;T&gt;(FileInfo)</h4>
<div class="markdown level1 summary"><p>Computes the hash of a file using the specified hash algorithm.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static byte[] GetHash&lt;T&gt;(this FileInfo value)
where T : HashAlgorithm</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">FileInfo</span></td>
<td><span class="parametername">value</span></td>
<td><p>The file whose hash to compute.</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.Byte</span>[]</td>
<td><p>The hash of <code data-dev-comment-type="paramref" class="paramref">value</code> represented as an array of bytes.</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 <see cref="!:HashAlgorithm"></see> whose <see cref="!:HashAlgorithm.ComputeHash(Stream)"></see> is to be used for
computing the hash.</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_IO_FileInfoExtensions_TryWriteHash__1_FileInfo_Span_System_Byte__System_Int32__.md&amp;value=---%0Auid%3A%20X10D.IO.FileInfoExtensions.TryWriteHash%60%601(FileInfo%2CSpan%7BSystem.Byte%7D%2CSystem.Int32%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/oliverbooth/X10D/blob/main/X10D/src/IO/FileInfoExtensions.cs/#L69">View Source</a>
</span>
<a id="X10D_IO_FileInfoExtensions_TryWriteHash_" data-uid="X10D.IO.FileInfoExtensions.TryWriteHash*"></a>
<h4 id="X10D_IO_FileInfoExtensions_TryWriteHash__1_FileInfo_Span_System_Byte__System_Int32__" data-uid="X10D.IO.FileInfoExtensions.TryWriteHash``1(FileInfo,Span{System.Byte},System.Int32@)">TryWriteHash&lt;T&gt;(FileInfo, Span&lt;Byte&gt;, out Int32)</h4>
<div class="markdown level1 summary"><p>Computes the hash of a file using the specified hash algorithm.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool TryWriteHash&lt;T&gt;(this FileInfo value, Span&lt;byte&gt; destination, out int bytesWritten)
where T : HashAlgorithm</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">FileInfo</span></td>
<td><span class="parametername">value</span></td>
<td><p>The file whose hash to compute.</p>
</td>
</tr>
<tr>
<td><span class="xref">Span</span>&lt;<span class="xref">System.Byte</span>&gt;</td>
<td><span class="parametername">destination</span></td>
<td><p>When this method returns, contains the computed hash of <code data-dev-comment-type="paramref" class="paramref">value</code>.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">bytesWritten</span></td>
<td><p>When this method returns, the total number of bytes written into destination. This parameter is treated as
uninitialized.</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><span class="xref">true</span> if the destination is long enough to receive the hash; otherwise, <span class="xref">false</span>.</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 <see cref="!:HashAlgorithm"></see> whose <see cref="!:HashAlgorithm.ComputeHash(Stream)"></see> is to be used for
computing the hash.</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>

View File

@ -0,0 +1,359 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class Int16Extensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class Int16Extensions
| 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.IO.Int16Extensions">
<h1 id="X10D_IO_Int16Extensions" data-uid="X10D.IO.Int16Extensions" class="text-break">Class Int16Extensions
</h1>
<div class="markdown level0 summary"><p>IO-related extension methods for <see cref="!:System.Int16"></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">Int16Extensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.IO.html">X10D.IO</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_IO_Int16Extensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class Int16Extensions : 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_IO_Int16Extensions_GetBytes_System_Int16_.md&amp;value=---%0Auid%3A%20X10D.IO.Int16Extensions.GetBytes(System.Int16)%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/IO/Int16Extensions.cs/#L16">View Source</a>
</span>
<a id="X10D_IO_Int16Extensions_GetBytes_" data-uid="X10D.IO.Int16Extensions.GetBytes*"></a>
<h4 id="X10D_IO_Int16Extensions_GetBytes_System_Int16_" data-uid="X10D.IO.Int16Extensions.GetBytes(System.Int16)">GetBytes(Int16)</h4>
<div class="markdown level1 summary"><p>Returns the current 16-bit signed integer value as an array of bytes.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static byte[] GetBytes(this short value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int16</span></td>
<td><span class="parametername">value</span></td>
<td><p>The number to convert.</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.Byte</span>[]</td>
<td><p>An array of bytes with length 2.</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_IO_Int16Extensions_GetBytes_System_Int16_X10D_Endianness_.md&amp;value=---%0Auid%3A%20X10D.IO.Int16Extensions.GetBytes(System.Int16%2CX10D.Endianness)%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/IO/Int16Extensions.cs/#L30">View Source</a>
</span>
<a id="X10D_IO_Int16Extensions_GetBytes_" data-uid="X10D.IO.Int16Extensions.GetBytes*"></a>
<h4 id="X10D_IO_Int16Extensions_GetBytes_System_Int16_X10D_Endianness_" data-uid="X10D.IO.Int16Extensions.GetBytes(System.Int16,X10D.Endianness)">GetBytes(Int16, Endianness)</h4>
<div class="markdown level1 summary"><p>Returns the current 16-bit signed integer value as an array of bytes.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static byte[] GetBytes(this short value, Endianness endianness)</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.Int16</span></td>
<td><span class="parametername">value</span></td>
<td><p>The number to convert.</p>
</td>
</tr>
<tr>
<td><a class="xref" href="X10D.Endianness.html">Endianness</a></td>
<td><span class="parametername">endianness</span></td>
<td><p>The endianness with which to write the bytes.</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.Byte</span>[]</td>
<td><p>An array of bytes with length 2.</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_IO_Int16Extensions_TryWriteBytes_System_Int16_Span_System_Byte__.md&amp;value=---%0Auid%3A%20X10D.IO.Int16Extensions.TryWriteBytes(System.Int16%2CSpan%7BSystem.Byte%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/IO/Int16Extensions.cs/#L44">View Source</a>
</span>
<a id="X10D_IO_Int16Extensions_TryWriteBytes_" data-uid="X10D.IO.Int16Extensions.TryWriteBytes*"></a>
<h4 id="X10D_IO_Int16Extensions_TryWriteBytes_System_Int16_Span_System_Byte__" data-uid="X10D.IO.Int16Extensions.TryWriteBytes(System.Int16,Span{System.Byte})">TryWriteBytes(Int16, Span&lt;Byte&gt;)</h4>
<div class="markdown level1 summary"><p>Converts the current 16-bit signed integer into a span of bytes.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool TryWriteBytes(this short value, Span&lt;byte&gt; destination)</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.Int16</span></td>
<td><span class="parametername">value</span></td>
<td><p>The <see cref="!:System.Int16"></see> value.</p>
</td>
</tr>
<tr>
<td><span class="xref">Span</span>&lt;<span class="xref">System.Byte</span>&gt;</td>
<td><span class="parametername">destination</span></td>
<td><p>When this method returns, the bytes representing the converted <see cref="!:System.Int16"></see>.</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><span class="xref">true</span> if the conversion was successful; otherwise, <span class="xref">false</span>.</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_IO_Int16Extensions_TryWriteBytes_System_Int16_Span_System_Byte__X10D_Endianness_.md&amp;value=---%0Auid%3A%20X10D.IO.Int16Extensions.TryWriteBytes(System.Int16%2CSpan%7BSystem.Byte%7D%2CX10D.Endianness)%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/IO/Int16Extensions.cs/#L56">View Source</a>
</span>
<a id="X10D_IO_Int16Extensions_TryWriteBytes_" data-uid="X10D.IO.Int16Extensions.TryWriteBytes*"></a>
<h4 id="X10D_IO_Int16Extensions_TryWriteBytes_System_Int16_Span_System_Byte__X10D_Endianness_" data-uid="X10D.IO.Int16Extensions.TryWriteBytes(System.Int16,Span{System.Byte},X10D.Endianness)">TryWriteBytes(Int16, Span&lt;Byte&gt;, Endianness)</h4>
<div class="markdown level1 summary"><p>Converts the current 16-bit signed integer into a span of bytes.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool TryWriteBytes(this short value, Span&lt;byte&gt; destination, Endianness endianness)</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.Int16</span></td>
<td><span class="parametername">value</span></td>
<td><p>The <see cref="!:System.Int16"></see> value.</p>
</td>
</tr>
<tr>
<td><span class="xref">Span</span>&lt;<span class="xref">System.Byte</span>&gt;</td>
<td><span class="parametername">destination</span></td>
<td><p>When this method returns, the bytes representing the converted <see cref="!:System.Int16"></see>.</p>
</td>
</tr>
<tr>
<td><a class="xref" href="X10D.Endianness.html">Endianness</a></td>
<td><span class="parametername">endianness</span></td>
<td><p>The endianness with which to write the bytes.</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><span class="xref">true</span> if the conversion was successful; otherwise, <span class="xref">false</span>.</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>

View File

@ -0,0 +1,359 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class Int32Extensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class Int32Extensions
| 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.IO.Int32Extensions">
<h1 id="X10D_IO_Int32Extensions" data-uid="X10D.IO.Int32Extensions" class="text-break">Class Int32Extensions
</h1>
<div class="markdown level0 summary"><p>IO-related extension methods for <see cref="!:System.Int32"></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">Int32Extensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.IO.html">X10D.IO</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_IO_Int32Extensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class Int32Extensions : 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_IO_Int32Extensions_GetBytes_System_Int32_.md&amp;value=---%0Auid%3A%20X10D.IO.Int32Extensions.GetBytes(System.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/IO/Int32Extensions.cs/#L16">View Source</a>
</span>
<a id="X10D_IO_Int32Extensions_GetBytes_" data-uid="X10D.IO.Int32Extensions.GetBytes*"></a>
<h4 id="X10D_IO_Int32Extensions_GetBytes_System_Int32_" data-uid="X10D.IO.Int32Extensions.GetBytes(System.Int32)">GetBytes(Int32)</h4>
<div class="markdown level1 summary"><p>Returns the current 32-bit signed integer value as an array of bytes.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static byte[] GetBytes(this int value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">value</span></td>
<td><p>The number to convert.</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.Byte</span>[]</td>
<td><p>An array of bytes with length 4.</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_IO_Int32Extensions_GetBytes_System_Int32_X10D_Endianness_.md&amp;value=---%0Auid%3A%20X10D.IO.Int32Extensions.GetBytes(System.Int32%2CX10D.Endianness)%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/IO/Int32Extensions.cs/#L30">View Source</a>
</span>
<a id="X10D_IO_Int32Extensions_GetBytes_" data-uid="X10D.IO.Int32Extensions.GetBytes*"></a>
<h4 id="X10D_IO_Int32Extensions_GetBytes_System_Int32_X10D_Endianness_" data-uid="X10D.IO.Int32Extensions.GetBytes(System.Int32,X10D.Endianness)">GetBytes(Int32, Endianness)</h4>
<div class="markdown level1 summary"><p>Returns the current 32-bit signed integer value as an array of bytes.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static byte[] GetBytes(this int value, Endianness endianness)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">value</span></td>
<td><p>The number to convert.</p>
</td>
</tr>
<tr>
<td><a class="xref" href="X10D.Endianness.html">Endianness</a></td>
<td><span class="parametername">endianness</span></td>
<td><p>The endianness with which to write the bytes.</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.Byte</span>[]</td>
<td><p>An array of bytes with length 4.</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_IO_Int32Extensions_TryWriteBytes_System_Int32_Span_System_Byte__.md&amp;value=---%0Auid%3A%20X10D.IO.Int32Extensions.TryWriteBytes(System.Int32%2CSpan%7BSystem.Byte%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/IO/Int32Extensions.cs/#L44">View Source</a>
</span>
<a id="X10D_IO_Int32Extensions_TryWriteBytes_" data-uid="X10D.IO.Int32Extensions.TryWriteBytes*"></a>
<h4 id="X10D_IO_Int32Extensions_TryWriteBytes_System_Int32_Span_System_Byte__" data-uid="X10D.IO.Int32Extensions.TryWriteBytes(System.Int32,Span{System.Byte})">TryWriteBytes(Int32, Span&lt;Byte&gt;)</h4>
<div class="markdown level1 summary"><p>Converts the current 32-bit signed integer into a span of bytes.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool TryWriteBytes(this int value, Span&lt;byte&gt; destination)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">value</span></td>
<td><p>The <see cref="!:System.Int32"></see> value.</p>
</td>
</tr>
<tr>
<td><span class="xref">Span</span>&lt;<span class="xref">System.Byte</span>&gt;</td>
<td><span class="parametername">destination</span></td>
<td><p>When this method returns, the bytes representing the converted <see cref="!:System.Int32"></see>.</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><span class="xref">true</span> if the conversion was successful; otherwise, <span class="xref">false</span>.</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_IO_Int32Extensions_TryWriteBytes_System_Int32_Span_System_Byte__X10D_Endianness_.md&amp;value=---%0Auid%3A%20X10D.IO.Int32Extensions.TryWriteBytes(System.Int32%2CSpan%7BSystem.Byte%7D%2CX10D.Endianness)%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/IO/Int32Extensions.cs/#L56">View Source</a>
</span>
<a id="X10D_IO_Int32Extensions_TryWriteBytes_" data-uid="X10D.IO.Int32Extensions.TryWriteBytes*"></a>
<h4 id="X10D_IO_Int32Extensions_TryWriteBytes_System_Int32_Span_System_Byte__X10D_Endianness_" data-uid="X10D.IO.Int32Extensions.TryWriteBytes(System.Int32,Span{System.Byte},X10D.Endianness)">TryWriteBytes(Int32, Span&lt;Byte&gt;, Endianness)</h4>
<div class="markdown level1 summary"><p>Converts the current 32-bit signed integer into a span of bytes.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool TryWriteBytes(this int value, Span&lt;byte&gt; destination, Endianness endianness)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">value</span></td>
<td><p>The <see cref="!:System.Int32"></see> value.</p>
</td>
</tr>
<tr>
<td><span class="xref">Span</span>&lt;<span class="xref">System.Byte</span>&gt;</td>
<td><span class="parametername">destination</span></td>
<td><p>When this method returns, the bytes representing the converted <see cref="!:System.Int32"></see>.</p>
</td>
</tr>
<tr>
<td><a class="xref" href="X10D.Endianness.html">Endianness</a></td>
<td><span class="parametername">endianness</span></td>
<td><p>The endianness with which to write the bytes.</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><span class="xref">true</span> if the conversion was successful; otherwise, <span class="xref">false</span>.</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>

View File

@ -0,0 +1,359 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class Int64Extensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class Int64Extensions
| 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.IO.Int64Extensions">
<h1 id="X10D_IO_Int64Extensions" data-uid="X10D.IO.Int64Extensions" class="text-break">Class Int64Extensions
</h1>
<div class="markdown level0 summary"><p>IO-related extension methods for <see cref="!:System.Int64"></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">Int64Extensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.IO.html">X10D.IO</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_IO_Int64Extensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class Int64Extensions : 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_IO_Int64Extensions_GetBytes_System_Int64_.md&amp;value=---%0Auid%3A%20X10D.IO.Int64Extensions.GetBytes(System.Int64)%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/IO/Int64Extensions.cs/#L16">View Source</a>
</span>
<a id="X10D_IO_Int64Extensions_GetBytes_" data-uid="X10D.IO.Int64Extensions.GetBytes*"></a>
<h4 id="X10D_IO_Int64Extensions_GetBytes_System_Int64_" data-uid="X10D.IO.Int64Extensions.GetBytes(System.Int64)">GetBytes(Int64)</h4>
<div class="markdown level1 summary"><p>Returns the current 64-bit signed integer value as an array of bytes.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static byte[] GetBytes(this long value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int64</span></td>
<td><span class="parametername">value</span></td>
<td><p>The number to convert.</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.Byte</span>[]</td>
<td><p>An array of bytes with length 8.</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_IO_Int64Extensions_GetBytes_System_Int64_X10D_Endianness_.md&amp;value=---%0Auid%3A%20X10D.IO.Int64Extensions.GetBytes(System.Int64%2CX10D.Endianness)%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/IO/Int64Extensions.cs/#L30">View Source</a>
</span>
<a id="X10D_IO_Int64Extensions_GetBytes_" data-uid="X10D.IO.Int64Extensions.GetBytes*"></a>
<h4 id="X10D_IO_Int64Extensions_GetBytes_System_Int64_X10D_Endianness_" data-uid="X10D.IO.Int64Extensions.GetBytes(System.Int64,X10D.Endianness)">GetBytes(Int64, Endianness)</h4>
<div class="markdown level1 summary"><p>Returns the current 64-bit signed integer value as an array of bytes.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static byte[] GetBytes(this long value, Endianness endianness)</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.Int64</span></td>
<td><span class="parametername">value</span></td>
<td><p>The number to convert.</p>
</td>
</tr>
<tr>
<td><a class="xref" href="X10D.Endianness.html">Endianness</a></td>
<td><span class="parametername">endianness</span></td>
<td><p>The endianness with which to write the bytes.</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.Byte</span>[]</td>
<td><p>An array of bytes with length 8.</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_IO_Int64Extensions_TryWriteBytes_System_Int64_Span_System_Byte__.md&amp;value=---%0Auid%3A%20X10D.IO.Int64Extensions.TryWriteBytes(System.Int64%2CSpan%7BSystem.Byte%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/IO/Int64Extensions.cs/#L44">View Source</a>
</span>
<a id="X10D_IO_Int64Extensions_TryWriteBytes_" data-uid="X10D.IO.Int64Extensions.TryWriteBytes*"></a>
<h4 id="X10D_IO_Int64Extensions_TryWriteBytes_System_Int64_Span_System_Byte__" data-uid="X10D.IO.Int64Extensions.TryWriteBytes(System.Int64,Span{System.Byte})">TryWriteBytes(Int64, Span&lt;Byte&gt;)</h4>
<div class="markdown level1 summary"><p>Converts the current 64-bit signed integer a span of bytes.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool TryWriteBytes(this long value, Span&lt;byte&gt; destination)</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.Int64</span></td>
<td><span class="parametername">value</span></td>
<td><p>The <see cref="!:System.Int64"></see> value.</p>
</td>
</tr>
<tr>
<td><span class="xref">Span</span>&lt;<span class="xref">System.Byte</span>&gt;</td>
<td><span class="parametername">destination</span></td>
<td><p>When this method returns, the bytes representing the converted <see cref="!:System.Int64"></see>.</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><span class="xref">true</span> if the conversion was successful; otherwise, <span class="xref">false</span>.</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_IO_Int64Extensions_TryWriteBytes_System_Int64_Span_System_Byte__X10D_Endianness_.md&amp;value=---%0Auid%3A%20X10D.IO.Int64Extensions.TryWriteBytes(System.Int64%2CSpan%7BSystem.Byte%7D%2CX10D.Endianness)%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/IO/Int64Extensions.cs/#L56">View Source</a>
</span>
<a id="X10D_IO_Int64Extensions_TryWriteBytes_" data-uid="X10D.IO.Int64Extensions.TryWriteBytes*"></a>
<h4 id="X10D_IO_Int64Extensions_TryWriteBytes_System_Int64_Span_System_Byte__X10D_Endianness_" data-uid="X10D.IO.Int64Extensions.TryWriteBytes(System.Int64,Span{System.Byte},X10D.Endianness)">TryWriteBytes(Int64, Span&lt;Byte&gt;, Endianness)</h4>
<div class="markdown level1 summary"><p>Converts the current 64-bit signed integer a span of bytes.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool TryWriteBytes(this long value, Span&lt;byte&gt; destination, Endianness endianness)</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.Int64</span></td>
<td><span class="parametername">value</span></td>
<td><p>The <see cref="!:System.Int64"></see> value.</p>
</td>
</tr>
<tr>
<td><span class="xref">Span</span>&lt;<span class="xref">System.Byte</span>&gt;</td>
<td><span class="parametername">destination</span></td>
<td><p>When this method returns, the bytes representing the converted <see cref="!:System.Int64"></see>.</p>
</td>
</tr>
<tr>
<td><a class="xref" href="X10D.Endianness.html">Endianness</a></td>
<td><span class="parametername">endianness</span></td>
<td><p>The endianness with which to write the bytes.</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><span class="xref">true</span> if the conversion was successful; otherwise, <span class="xref">false</span>.</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>

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,241 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class SByteExtensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class SByteExtensions
| 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.IO.SByteExtensions">
<h1 id="X10D_IO_SByteExtensions" data-uid="X10D.IO.SByteExtensions" class="text-break">Class SByteExtensions
</h1>
<div class="markdown level0 summary"><p>IO-related extension methods for <see cref="!:System.SByte"></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">SByteExtensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.IO.html">X10D.IO</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_IO_SByteExtensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class SByteExtensions : 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_IO_SByteExtensions_GetBytes_System_SByte_.md&amp;value=---%0Auid%3A%20X10D.IO.SByteExtensions.GetBytes(System.SByte)%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/IO/SByteExtensions.cs/#L16">View Source</a>
</span>
<a id="X10D_IO_SByteExtensions_GetBytes_" data-uid="X10D.IO.SByteExtensions.GetBytes*"></a>
<h4 id="X10D_IO_SByteExtensions_GetBytes_System_SByte_" data-uid="X10D.IO.SByteExtensions.GetBytes(System.SByte)">GetBytes(SByte)</h4>
<div class="markdown level1 summary"><p>Returns the current 16-bit unsigned integer value as an array of bytes.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static byte[] GetBytes(this sbyte value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.SByte</span></td>
<td><span class="parametername">value</span></td>
<td><p>The number to convert.</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.Byte</span>[]</td>
<td><p>An array of bytes with length 1.</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_IO_SByteExtensions_TryWriteBytes_System_SByte_Span_System_Byte__.md&amp;value=---%0Auid%3A%20X10D.IO.SByteExtensions.TryWriteBytes(System.SByte%2CSpan%7BSystem.Byte%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/IO/SByteExtensions.cs/#L30">View Source</a>
</span>
<a id="X10D_IO_SByteExtensions_TryWriteBytes_" data-uid="X10D.IO.SByteExtensions.TryWriteBytes*"></a>
<h4 id="X10D_IO_SByteExtensions_TryWriteBytes_System_SByte_Span_System_Byte__" data-uid="X10D.IO.SByteExtensions.TryWriteBytes(System.SByte,Span{System.Byte})">TryWriteBytes(SByte, Span&lt;Byte&gt;)</h4>
<div class="markdown level1 summary"><p>Converts the current 16-bit unsigned integer into a span of bytes.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool TryWriteBytes(this sbyte value, Span&lt;byte&gt; destination)</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.SByte</span></td>
<td><span class="parametername">value</span></td>
<td><p>The <see cref="!:System.SByte"></see> value.</p>
</td>
</tr>
<tr>
<td><span class="xref">Span</span>&lt;<span class="xref">System.Byte</span>&gt;</td>
<td><span class="parametername">destination</span></td>
<td><p>When this method returns, the bytes representing the converted <see cref="!:System.SByte"></see>.</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><span class="xref">true</span> if the conversion was successful; otherwise, <span class="xref">false</span>.</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>

View File

@ -0,0 +1,359 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class SingleExtensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class SingleExtensions
| 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.IO.SingleExtensions">
<h1 id="X10D_IO_SingleExtensions" data-uid="X10D.IO.SingleExtensions" class="text-break">Class SingleExtensions
</h1>
<div class="markdown level0 summary"><p>IO-related extension methods for <see cref="!:System.Single"></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">SingleExtensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.IO.html">X10D.IO</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_IO_SingleExtensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class SingleExtensions : 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_IO_SingleExtensions_GetBytes_System_Single_.md&amp;value=---%0Auid%3A%20X10D.IO.SingleExtensions.GetBytes(System.Single)%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/IO/SingleExtensions.cs/#L17">View Source</a>
</span>
<a id="X10D_IO_SingleExtensions_GetBytes_" data-uid="X10D.IO.SingleExtensions.GetBytes*"></a>
<h4 id="X10D_IO_SingleExtensions_GetBytes_System_Single_" data-uid="X10D.IO.SingleExtensions.GetBytes(System.Single)">GetBytes(Single)</h4>
<div class="markdown level1 summary"><p>Returns the current single-precision floating-point value as an array of bytes.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static byte[] GetBytes(this float value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Single</span></td>
<td><span class="parametername">value</span></td>
<td><p>The number to convert.</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.Byte</span>[]</td>
<td><p>An array of bytes with length 4.</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_IO_SingleExtensions_GetBytes_System_Single_X10D_Endianness_.md&amp;value=---%0Auid%3A%20X10D.IO.SingleExtensions.GetBytes(System.Single%2CX10D.Endianness)%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/IO/SingleExtensions.cs/#L31">View Source</a>
</span>
<a id="X10D_IO_SingleExtensions_GetBytes_" data-uid="X10D.IO.SingleExtensions.GetBytes*"></a>
<h4 id="X10D_IO_SingleExtensions_GetBytes_System_Single_X10D_Endianness_" data-uid="X10D.IO.SingleExtensions.GetBytes(System.Single,X10D.Endianness)">GetBytes(Single, Endianness)</h4>
<div class="markdown level1 summary"><p>Returns the current single-precision floating-point value as an array of bytes.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static byte[] GetBytes(this float value, Endianness endianness)</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.Single</span></td>
<td><span class="parametername">value</span></td>
<td><p>The number to convert.</p>
</td>
</tr>
<tr>
<td><a class="xref" href="X10D.Endianness.html">Endianness</a></td>
<td><span class="parametername">endianness</span></td>
<td><p>The endianness with which to write the bytes.</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.Byte</span>[]</td>
<td><p>An array of bytes with length 4.</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_IO_SingleExtensions_TryWriteBytes_System_Single_Span_System_Byte__.md&amp;value=---%0Auid%3A%20X10D.IO.SingleExtensions.TryWriteBytes(System.Single%2CSpan%7BSystem.Byte%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/IO/SingleExtensions.cs/#L45">View Source</a>
</span>
<a id="X10D_IO_SingleExtensions_TryWriteBytes_" data-uid="X10D.IO.SingleExtensions.TryWriteBytes*"></a>
<h4 id="X10D_IO_SingleExtensions_TryWriteBytes_System_Single_Span_System_Byte__" data-uid="X10D.IO.SingleExtensions.TryWriteBytes(System.Single,Span{System.Byte})">TryWriteBytes(Single, Span&lt;Byte&gt;)</h4>
<div class="markdown level1 summary"><p>Converts the current single-precision floating-point into a span of bytes.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool TryWriteBytes(this float value, Span&lt;byte&gt; destination)</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.Single</span></td>
<td><span class="parametername">value</span></td>
<td><p>The <see cref="!:System.Single"></see> value.</p>
</td>
</tr>
<tr>
<td><span class="xref">Span</span>&lt;<span class="xref">System.Byte</span>&gt;</td>
<td><span class="parametername">destination</span></td>
<td><p>When this method returns, the bytes representing the converted <see cref="!:System.Single"></see>.</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><span class="xref">true</span> if the conversion was successful; otherwise, <span class="xref">false</span>.</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_IO_SingleExtensions_TryWriteBytes_System_Single_Span_System_Byte__X10D_Endianness_.md&amp;value=---%0Auid%3A%20X10D.IO.SingleExtensions.TryWriteBytes(System.Single%2CSpan%7BSystem.Byte%7D%2CX10D.Endianness)%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/IO/SingleExtensions.cs/#L57">View Source</a>
</span>
<a id="X10D_IO_SingleExtensions_TryWriteBytes_" data-uid="X10D.IO.SingleExtensions.TryWriteBytes*"></a>
<h4 id="X10D_IO_SingleExtensions_TryWriteBytes_System_Single_Span_System_Byte__X10D_Endianness_" data-uid="X10D.IO.SingleExtensions.TryWriteBytes(System.Single,Span{System.Byte},X10D.Endianness)">TryWriteBytes(Single, Span&lt;Byte&gt;, Endianness)</h4>
<div class="markdown level1 summary"><p>Converts the current single-precision floating-point into a span of bytes.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool TryWriteBytes(this float value, Span&lt;byte&gt; destination, Endianness endianness)</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.Single</span></td>
<td><span class="parametername">value</span></td>
<td><p>The <see cref="!:System.Single"></see> value.</p>
</td>
</tr>
<tr>
<td><span class="xref">Span</span>&lt;<span class="xref">System.Byte</span>&gt;</td>
<td><span class="parametername">destination</span></td>
<td><p>When this method returns, the bytes representing the converted <see cref="!:System.Single"></see>.</p>
</td>
</tr>
<tr>
<td><a class="xref" href="X10D.Endianness.html">Endianness</a></td>
<td><span class="parametername">endianness</span></td>
<td><p>The endianness with which to write the bytes.</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><span class="xref">true</span> if the conversion was successful; otherwise, <span class="xref">false</span>.</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>

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,235 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class TextReaderExtensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class TextReaderExtensions
| 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.IO.TextReaderExtensions">
<h1 id="X10D_IO_TextReaderExtensions" data-uid="X10D.IO.TextReaderExtensions" class="text-break">Class TextReaderExtensions
</h1>
<div class="markdown level0 summary"><p>IO-related extension methods for <see cref="!:TextReader"></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">TextReaderExtensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.IO.html">X10D.IO</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_IO_TextReaderExtensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class TextReaderExtensions : 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_IO_TextReaderExtensions_EnumerateLines_TextReader_.md&amp;value=---%0Auid%3A%20X10D.IO.TextReaderExtensions.EnumerateLines(TextReader)%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/IO/TextReaderExtensions.cs/#L14">View Source</a>
</span>
<a id="X10D_IO_TextReaderExtensions_EnumerateLines_" data-uid="X10D.IO.TextReaderExtensions.EnumerateLines*"></a>
<h4 id="X10D_IO_TextReaderExtensions_EnumerateLines_TextReader_" data-uid="X10D.IO.TextReaderExtensions.EnumerateLines(TextReader)">EnumerateLines(TextReader)</h4>
<div class="markdown level1 summary"><p>Enumerates the lines provided by the current text reader.</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;string&gt; EnumerateLines(this TextReader reader)</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">TextReader</span></td>
<td><span class="parametername">reader</span></td>
<td><p>The reader whose lines to enumerate.</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;<span class="xref">System.String</span>&gt;</td>
<td><p>An enumerable collection of lines as read from <code data-dev-comment-type="paramref" class="paramref">reader</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_IO_TextReaderExtensions_EnumerateLinesAsync_TextReader_.md&amp;value=---%0Auid%3A%20X10D.IO.TextReaderExtensions.EnumerateLinesAsync(TextReader)%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/IO/TextReaderExtensions.cs/#L37">View Source</a>
</span>
<a id="X10D_IO_TextReaderExtensions_EnumerateLinesAsync_" data-uid="X10D.IO.TextReaderExtensions.EnumerateLinesAsync*"></a>
<h4 id="X10D_IO_TextReaderExtensions_EnumerateLinesAsync_TextReader_" data-uid="X10D.IO.TextReaderExtensions.EnumerateLinesAsync(TextReader)">EnumerateLinesAsync(TextReader)</h4>
<div class="markdown level1 summary"><p>Asynchronously enumerates the lines provided by the current text reader.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static IAsyncEnumerable&lt;string&gt; EnumerateLinesAsync(this TextReader reader)</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">TextReader</span></td>
<td><span class="parametername">reader</span></td>
<td><p>The reader whose lines to enumerate.</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">IAsyncEnumerable</span>&lt;<span class="xref">System.String</span>&gt;</td>
<td><p>An asynchronous enumerable collection of lines as read from <code data-dev-comment-type="paramref" class="paramref">reader</code>.</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>

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,359 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class UInt16Extensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class UInt16Extensions
| 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.IO.UInt16Extensions">
<h1 id="X10D_IO_UInt16Extensions" data-uid="X10D.IO.UInt16Extensions" class="text-break">Class UInt16Extensions
</h1>
<div class="markdown level0 summary"><p>IO-related extension methods for <see cref="!:System.UInt16"></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">UInt16Extensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.IO.html">X10D.IO</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_IO_UInt16Extensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class UInt16Extensions : 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_IO_UInt16Extensions_GetBytes_System_UInt16_.md&amp;value=---%0Auid%3A%20X10D.IO.UInt16Extensions.GetBytes(System.UInt16)%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/IO/UInt16Extensions.cs/#L17">View Source</a>
</span>
<a id="X10D_IO_UInt16Extensions_GetBytes_" data-uid="X10D.IO.UInt16Extensions.GetBytes*"></a>
<h4 id="X10D_IO_UInt16Extensions_GetBytes_System_UInt16_" data-uid="X10D.IO.UInt16Extensions.GetBytes(System.UInt16)">GetBytes(UInt16)</h4>
<div class="markdown level1 summary"><p>Returns the current 16-bit unsigned integer value as an array of bytes.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static byte[] GetBytes(this ushort value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.UInt16</span></td>
<td><span class="parametername">value</span></td>
<td><p>The number to convert.</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.Byte</span>[]</td>
<td><p>An array of bytes with length 2.</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_IO_UInt16Extensions_GetBytes_System_UInt16_X10D_Endianness_.md&amp;value=---%0Auid%3A%20X10D.IO.UInt16Extensions.GetBytes(System.UInt16%2CX10D.Endianness)%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/IO/UInt16Extensions.cs/#L31">View Source</a>
</span>
<a id="X10D_IO_UInt16Extensions_GetBytes_" data-uid="X10D.IO.UInt16Extensions.GetBytes*"></a>
<h4 id="X10D_IO_UInt16Extensions_GetBytes_System_UInt16_X10D_Endianness_" data-uid="X10D.IO.UInt16Extensions.GetBytes(System.UInt16,X10D.Endianness)">GetBytes(UInt16, Endianness)</h4>
<div class="markdown level1 summary"><p>Returns the current 16-bit unsigned integer value as an array of bytes.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static byte[] GetBytes(this ushort value, Endianness endianness)</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.UInt16</span></td>
<td><span class="parametername">value</span></td>
<td><p>The number to convert.</p>
</td>
</tr>
<tr>
<td><a class="xref" href="X10D.Endianness.html">Endianness</a></td>
<td><span class="parametername">endianness</span></td>
<td><p>The endianness with which to write the bytes.</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.Byte</span>[]</td>
<td><p>An array of bytes with length 2.</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_IO_UInt16Extensions_TryWriteBytes_System_UInt16_Span_System_Byte__.md&amp;value=---%0Auid%3A%20X10D.IO.UInt16Extensions.TryWriteBytes(System.UInt16%2CSpan%7BSystem.Byte%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/IO/UInt16Extensions.cs/#L45">View Source</a>
</span>
<a id="X10D_IO_UInt16Extensions_TryWriteBytes_" data-uid="X10D.IO.UInt16Extensions.TryWriteBytes*"></a>
<h4 id="X10D_IO_UInt16Extensions_TryWriteBytes_System_UInt16_Span_System_Byte__" data-uid="X10D.IO.UInt16Extensions.TryWriteBytes(System.UInt16,Span{System.Byte})">TryWriteBytes(UInt16, Span&lt;Byte&gt;)</h4>
<div class="markdown level1 summary"><p>Converts the current 16-bit unsigned integer into a span of bytes.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool TryWriteBytes(this ushort value, Span&lt;byte&gt; destination)</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.UInt16</span></td>
<td><span class="parametername">value</span></td>
<td><p>The <see cref="!:System.UInt16"></see> value.</p>
</td>
</tr>
<tr>
<td><span class="xref">Span</span>&lt;<span class="xref">System.Byte</span>&gt;</td>
<td><span class="parametername">destination</span></td>
<td><p>When this method returns, the bytes representing the converted <see cref="!:System.UInt16"></see>.</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><span class="xref">true</span> if the conversion was successful; otherwise, <span class="xref">false</span>.</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_IO_UInt16Extensions_TryWriteBytes_System_UInt16_Span_System_Byte__X10D_Endianness_.md&amp;value=---%0Auid%3A%20X10D.IO.UInt16Extensions.TryWriteBytes(System.UInt16%2CSpan%7BSystem.Byte%7D%2CX10D.Endianness)%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/IO/UInt16Extensions.cs/#L57">View Source</a>
</span>
<a id="X10D_IO_UInt16Extensions_TryWriteBytes_" data-uid="X10D.IO.UInt16Extensions.TryWriteBytes*"></a>
<h4 id="X10D_IO_UInt16Extensions_TryWriteBytes_System_UInt16_Span_System_Byte__X10D_Endianness_" data-uid="X10D.IO.UInt16Extensions.TryWriteBytes(System.UInt16,Span{System.Byte},X10D.Endianness)">TryWriteBytes(UInt16, Span&lt;Byte&gt;, Endianness)</h4>
<div class="markdown level1 summary"><p>Converts the current 16-bit unsigned integer into a span of bytes.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool TryWriteBytes(this ushort value, Span&lt;byte&gt; destination, Endianness endianness)</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.UInt16</span></td>
<td><span class="parametername">value</span></td>
<td><p>The <see cref="!:System.UInt16"></see> value.</p>
</td>
</tr>
<tr>
<td><span class="xref">Span</span>&lt;<span class="xref">System.Byte</span>&gt;</td>
<td><span class="parametername">destination</span></td>
<td><p>When this method returns, the bytes representing the converted <see cref="!:System.UInt16"></see>.</p>
</td>
</tr>
<tr>
<td><a class="xref" href="X10D.Endianness.html">Endianness</a></td>
<td><span class="parametername">endianness</span></td>
<td><p>The endianness with which to write the bytes.</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><span class="xref">true</span> if the conversion was successful; otherwise, <span class="xref">false</span>.</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>

View File

@ -0,0 +1,359 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class UInt32Extensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class UInt32Extensions
| 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.IO.UInt32Extensions">
<h1 id="X10D_IO_UInt32Extensions" data-uid="X10D.IO.UInt32Extensions" class="text-break">Class UInt32Extensions
</h1>
<div class="markdown level0 summary"><p>IO-related extension methods for <see cref="!:System.UInt32"></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">UInt32Extensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.IO.html">X10D.IO</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_IO_UInt32Extensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class UInt32Extensions : 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_IO_UInt32Extensions_GetBytes_System_UInt32_.md&amp;value=---%0Auid%3A%20X10D.IO.UInt32Extensions.GetBytes(System.UInt32)%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/IO/UInt32Extensions.cs/#L17">View Source</a>
</span>
<a id="X10D_IO_UInt32Extensions_GetBytes_" data-uid="X10D.IO.UInt32Extensions.GetBytes*"></a>
<h4 id="X10D_IO_UInt32Extensions_GetBytes_System_UInt32_" data-uid="X10D.IO.UInt32Extensions.GetBytes(System.UInt32)">GetBytes(UInt32)</h4>
<div class="markdown level1 summary"><p>Returns the current 32-bit unsigned integer value as an array of bytes.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static byte[] GetBytes(this uint value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.UInt32</span></td>
<td><span class="parametername">value</span></td>
<td><p>The number to convert.</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.Byte</span>[]</td>
<td><p>An array of bytes with length 4.</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_IO_UInt32Extensions_GetBytes_System_UInt32_X10D_Endianness_.md&amp;value=---%0Auid%3A%20X10D.IO.UInt32Extensions.GetBytes(System.UInt32%2CX10D.Endianness)%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/IO/UInt32Extensions.cs/#L31">View Source</a>
</span>
<a id="X10D_IO_UInt32Extensions_GetBytes_" data-uid="X10D.IO.UInt32Extensions.GetBytes*"></a>
<h4 id="X10D_IO_UInt32Extensions_GetBytes_System_UInt32_X10D_Endianness_" data-uid="X10D.IO.UInt32Extensions.GetBytes(System.UInt32,X10D.Endianness)">GetBytes(UInt32, Endianness)</h4>
<div class="markdown level1 summary"><p>Returns the current 32-bit unsigned integer value as an array of bytes.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static byte[] GetBytes(this uint value, Endianness endianness)</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.UInt32</span></td>
<td><span class="parametername">value</span></td>
<td><p>The number to convert.</p>
</td>
</tr>
<tr>
<td><a class="xref" href="X10D.Endianness.html">Endianness</a></td>
<td><span class="parametername">endianness</span></td>
<td><p>The endianness with which to write the bytes.</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.Byte</span>[]</td>
<td><p>An array of bytes with length 4.</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_IO_UInt32Extensions_TryWriteBytes_System_UInt32_Span_System_Byte__.md&amp;value=---%0Auid%3A%20X10D.IO.UInt32Extensions.TryWriteBytes(System.UInt32%2CSpan%7BSystem.Byte%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/IO/UInt32Extensions.cs/#L45">View Source</a>
</span>
<a id="X10D_IO_UInt32Extensions_TryWriteBytes_" data-uid="X10D.IO.UInt32Extensions.TryWriteBytes*"></a>
<h4 id="X10D_IO_UInt32Extensions_TryWriteBytes_System_UInt32_Span_System_Byte__" data-uid="X10D.IO.UInt32Extensions.TryWriteBytes(System.UInt32,Span{System.Byte})">TryWriteBytes(UInt32, Span&lt;Byte&gt;)</h4>
<div class="markdown level1 summary"><p>Converts the current 32-bit unsigned integer into a span of bytes.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool TryWriteBytes(this uint value, Span&lt;byte&gt; destination)</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.UInt32</span></td>
<td><span class="parametername">value</span></td>
<td><p>The <see cref="!:System.UInt32"></see> value.</p>
</td>
</tr>
<tr>
<td><span class="xref">Span</span>&lt;<span class="xref">System.Byte</span>&gt;</td>
<td><span class="parametername">destination</span></td>
<td><p>When this method returns, the bytes representing the converted <see cref="!:System.UInt32"></see>.</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><span class="xref">true</span> if the conversion was successful; otherwise, <span class="xref">false</span>.</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_IO_UInt32Extensions_TryWriteBytes_System_UInt32_Span_System_Byte__X10D_Endianness_.md&amp;value=---%0Auid%3A%20X10D.IO.UInt32Extensions.TryWriteBytes(System.UInt32%2CSpan%7BSystem.Byte%7D%2CX10D.Endianness)%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/IO/UInt32Extensions.cs/#L57">View Source</a>
</span>
<a id="X10D_IO_UInt32Extensions_TryWriteBytes_" data-uid="X10D.IO.UInt32Extensions.TryWriteBytes*"></a>
<h4 id="X10D_IO_UInt32Extensions_TryWriteBytes_System_UInt32_Span_System_Byte__X10D_Endianness_" data-uid="X10D.IO.UInt32Extensions.TryWriteBytes(System.UInt32,Span{System.Byte},X10D.Endianness)">TryWriteBytes(UInt32, Span&lt;Byte&gt;, Endianness)</h4>
<div class="markdown level1 summary"><p>Converts the current 32-bit unsigned integer into a span of bytes.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool TryWriteBytes(this uint value, Span&lt;byte&gt; destination, Endianness endianness)</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.UInt32</span></td>
<td><span class="parametername">value</span></td>
<td><p>The <see cref="!:System.UInt32"></see> value.</p>
</td>
</tr>
<tr>
<td><span class="xref">Span</span>&lt;<span class="xref">System.Byte</span>&gt;</td>
<td><span class="parametername">destination</span></td>
<td><p>When this method returns, the bytes representing the converted <see cref="!:System.UInt32"></see>.</p>
</td>
</tr>
<tr>
<td><a class="xref" href="X10D.Endianness.html">Endianness</a></td>
<td><span class="parametername">endianness</span></td>
<td><p>The endianness with which to write the bytes.</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><span class="xref">true</span> if the conversion was successful; otherwise, <span class="xref">false</span>.</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>

View File

@ -0,0 +1,359 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class UInt64Extensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class UInt64Extensions
| 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.IO.UInt64Extensions">
<h1 id="X10D_IO_UInt64Extensions" data-uid="X10D.IO.UInt64Extensions" class="text-break">Class UInt64Extensions
</h1>
<div class="markdown level0 summary"><p>IO-related extension methods for <see cref="!:System.UInt64"></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">UInt64Extensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.IO.html">X10D.IO</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_IO_UInt64Extensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class UInt64Extensions : 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_IO_UInt64Extensions_GetBytes_System_UInt64_.md&amp;value=---%0Auid%3A%20X10D.IO.UInt64Extensions.GetBytes(System.UInt64)%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/IO/UInt64Extensions.cs/#L17">View Source</a>
</span>
<a id="X10D_IO_UInt64Extensions_GetBytes_" data-uid="X10D.IO.UInt64Extensions.GetBytes*"></a>
<h4 id="X10D_IO_UInt64Extensions_GetBytes_System_UInt64_" data-uid="X10D.IO.UInt64Extensions.GetBytes(System.UInt64)">GetBytes(UInt64)</h4>
<div class="markdown level1 summary"><p>Returns the current 64-bit unsigned integer value as an array of bytes.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static byte[] GetBytes(this ulong value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.UInt64</span></td>
<td><span class="parametername">value</span></td>
<td><p>The number to convert.</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.Byte</span>[]</td>
<td><p>An array of bytes with length 8.</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_IO_UInt64Extensions_GetBytes_System_UInt64_X10D_Endianness_.md&amp;value=---%0Auid%3A%20X10D.IO.UInt64Extensions.GetBytes(System.UInt64%2CX10D.Endianness)%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/IO/UInt64Extensions.cs/#L31">View Source</a>
</span>
<a id="X10D_IO_UInt64Extensions_GetBytes_" data-uid="X10D.IO.UInt64Extensions.GetBytes*"></a>
<h4 id="X10D_IO_UInt64Extensions_GetBytes_System_UInt64_X10D_Endianness_" data-uid="X10D.IO.UInt64Extensions.GetBytes(System.UInt64,X10D.Endianness)">GetBytes(UInt64, Endianness)</h4>
<div class="markdown level1 summary"><p>Returns the current 64-bit unsigned integer value as an array of bytes.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static byte[] GetBytes(this ulong value, Endianness endianness)</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.UInt64</span></td>
<td><span class="parametername">value</span></td>
<td><p>The number to convert.</p>
</td>
</tr>
<tr>
<td><a class="xref" href="X10D.Endianness.html">Endianness</a></td>
<td><span class="parametername">endianness</span></td>
<td><p>The endianness with which to write the bytes.</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.Byte</span>[]</td>
<td><p>An array of bytes with length 8.</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_IO_UInt64Extensions_TryWriteBytes_System_UInt64_Span_System_Byte__.md&amp;value=---%0Auid%3A%20X10D.IO.UInt64Extensions.TryWriteBytes(System.UInt64%2CSpan%7BSystem.Byte%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/IO/UInt64Extensions.cs/#L45">View Source</a>
</span>
<a id="X10D_IO_UInt64Extensions_TryWriteBytes_" data-uid="X10D.IO.UInt64Extensions.TryWriteBytes*"></a>
<h4 id="X10D_IO_UInt64Extensions_TryWriteBytes_System_UInt64_Span_System_Byte__" data-uid="X10D.IO.UInt64Extensions.TryWriteBytes(System.UInt64,Span{System.Byte})">TryWriteBytes(UInt64, Span&lt;Byte&gt;)</h4>
<div class="markdown level1 summary"><p>Converts the current 64-bit unsigned integer into a span of bytes.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool TryWriteBytes(this ulong value, Span&lt;byte&gt; destination)</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.UInt64</span></td>
<td><span class="parametername">value</span></td>
<td><p>The <see cref="!:System.UInt64"></see> value.</p>
</td>
</tr>
<tr>
<td><span class="xref">Span</span>&lt;<span class="xref">System.Byte</span>&gt;</td>
<td><span class="parametername">destination</span></td>
<td><p>When this method returns, the bytes representing the converted <see cref="!:System.UInt64"></see>.</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><span class="xref">true</span> if the conversion was successful; otherwise, <span class="xref">false</span>.</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_IO_UInt64Extensions_TryWriteBytes_System_UInt64_Span_System_Byte__X10D_Endianness_.md&amp;value=---%0Auid%3A%20X10D.IO.UInt64Extensions.TryWriteBytes(System.UInt64%2CSpan%7BSystem.Byte%7D%2CX10D.Endianness)%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/IO/UInt64Extensions.cs/#L57">View Source</a>
</span>
<a id="X10D_IO_UInt64Extensions_TryWriteBytes_" data-uid="X10D.IO.UInt64Extensions.TryWriteBytes*"></a>
<h4 id="X10D_IO_UInt64Extensions_TryWriteBytes_System_UInt64_Span_System_Byte__X10D_Endianness_" data-uid="X10D.IO.UInt64Extensions.TryWriteBytes(System.UInt64,Span{System.Byte},X10D.Endianness)">TryWriteBytes(UInt64, Span&lt;Byte&gt;, Endianness)</h4>
<div class="markdown level1 summary"><p>Converts the current 64-bit unsigned integer into a span of bytes.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool TryWriteBytes(this ulong value, Span&lt;byte&gt; destination, Endianness endianness)</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.UInt64</span></td>
<td><span class="parametername">value</span></td>
<td><p>The <see cref="!:System.UInt64"></see> value.</p>
</td>
</tr>
<tr>
<td><span class="xref">Span</span>&lt;<span class="xref">System.Byte</span>&gt;</td>
<td><span class="parametername">destination</span></td>
<td><p>When this method returns, the bytes representing the converted <see cref="!:System.UInt64"></see>.</p>
</td>
</tr>
<tr>
<td><a class="xref" href="X10D.Endianness.html">Endianness</a></td>
<td><span class="parametername">endianness</span></td>
<td><p>The endianness with which to write the bytes.</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><span class="xref">true</span> if the conversion was successful; otherwise, <span class="xref">false</span>.</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>

174
api/X10D.IO.html Normal file
View File

@ -0,0 +1,174 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Namespace X10D.IO
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Namespace X10D.IO
| 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.IO">
<h1 id="X10D_IO" data-uid="X10D.IO" class="text-break">Namespace X10D.IO
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>
<div class="markdown level0 remarks"></div>
<h3 id="classes">Classes
</h3>
<h5><a class="xref" href="X10D.IO.BooleanExtensions.html">BooleanExtensions</a></h5>
<section><p>Extension methods for <see cref="!:System.Boolean"></see>.</p>
</section>
<h5><a class="xref" href="X10D.IO.ByteExtensions.html">ByteExtensions</a></h5>
<section><p>IO-related extension methods for <see cref="!:System.Byte"></see>.</p>
</section>
<h5><a class="xref" href="X10D.IO.DirectoryInfoExtensions.html">DirectoryInfoExtensions</a></h5>
<section><p>IO-related extension methods for <see cref="!:DirectoryInfo"></see>.</p>
</section>
<h5><a class="xref" href="X10D.IO.DoubleExtensions.html">DoubleExtensions</a></h5>
<section><p>IO-related extension methods for <see cref="!:System.Double"></see>.</p>
</section>
<h5><a class="xref" href="X10D.IO.FileInfoExtensions.html">FileInfoExtensions</a></h5>
<section><p>IO-related extension methods for <see cref="!:FileInfo"></see>.</p>
</section>
<h5><a class="xref" href="X10D.IO.Int16Extensions.html">Int16Extensions</a></h5>
<section><p>IO-related extension methods for <see cref="!:System.Int16"></see>.</p>
</section>
<h5><a class="xref" href="X10D.IO.Int32Extensions.html">Int32Extensions</a></h5>
<section><p>IO-related extension methods for <see cref="!:System.Int32"></see>.</p>
</section>
<h5><a class="xref" href="X10D.IO.Int64Extensions.html">Int64Extensions</a></h5>
<section><p>IO-related extension methods for <see cref="!:System.Int64"></see>.</p>
</section>
<h5><a class="xref" href="X10D.IO.ListOfByteExtensions.html">ListOfByteExtensions</a></h5>
<section><p>Extension methods for <see cref="!:System.Byte"></see> array.</p>
</section>
<h5><a class="xref" href="X10D.IO.SByteExtensions.html">SByteExtensions</a></h5>
<section><p>IO-related extension methods for <see cref="!:System.SByte"></see>.</p>
</section>
<h5><a class="xref" href="X10D.IO.SingleExtensions.html">SingleExtensions</a></h5>
<section><p>IO-related extension methods for <see cref="!:System.Single"></see>.</p>
</section>
<h5><a class="xref" href="X10D.IO.StreamExtensions.html">StreamExtensions</a></h5>
<section><p>IO-related extension methods for <see cref="!:Stream"></see>.</p>
</section>
<h5><a class="xref" href="X10D.IO.TextReaderExtensions.html">TextReaderExtensions</a></h5>
<section><p>IO-related extension methods for <see cref="!:TextReader"></see>.</p>
</section>
<h5><a class="xref" href="X10D.IO.TextWriterExtensions.html">TextWriterExtensions</a></h5>
<section><p>IO-related extension methods for <see cref="!:TextWriter"></see>.</p>
</section>
<h5><a class="xref" href="X10D.IO.UInt16Extensions.html">UInt16Extensions</a></h5>
<section><p>IO-related extension methods for <see cref="!:System.UInt16"></see>.</p>
</section>
<h5><a class="xref" href="X10D.IO.UInt32Extensions.html">UInt32Extensions</a></h5>
<section><p>IO-related extension methods for <see cref="!:System.UInt32"></see>.</p>
</section>
<h5><a class="xref" href="X10D.IO.UInt64Extensions.html">UInt64Extensions</a></h5>
<section><p>IO-related extension methods for <see cref="!:System.UInt64"></see>.</p>
</section>
</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>

View File

@ -0,0 +1,605 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class ByteExtensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class ByteExtensions
| 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.ByteExtensions">
<h1 id="X10D_Linq_ByteExtensions" data-uid="X10D.Linq.ByteExtensions" class="text-break">Class ByteExtensions
</h1>
<div class="markdown level0 summary"><p>LINQ-inspired extension methods for <see cref="!:IEnumerable&lt;T>"></see> of <see cref="!:System.Byte"></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">ByteExtensions</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_ByteExtensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class ByteExtensions : 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_ByteExtensions_Product_IEnumerable_System_Byte__.md&amp;value=---%0Auid%3A%20X10D.Linq.ByteExtensions.Product(IEnumerable%7BSystem.Byte%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/ByteExtensions.cs/#L16">View Source</a>
</span>
<a id="X10D_Linq_ByteExtensions_Product_" data-uid="X10D.Linq.ByteExtensions.Product*"></a>
<h4 id="X10D_Linq_ByteExtensions_Product_IEnumerable_System_Byte__" data-uid="X10D.Linq.ByteExtensions.Product(IEnumerable{System.Byte})">Product(IEnumerable&lt;Byte&gt;)</h4>
<div class="markdown level1 summary"><p>Computes the product of a sequence of <see cref="!:System.Byte"></see> 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 byte Product(this IEnumerable&lt;byte&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;<span class="xref">System.Byte</span>&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>A sequence of <see cref="!:System.Byte"></see> values that are used to calculate the product.</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.Byte</span></td>
<td><p>The product the values in the sequence.</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_ByteExtensions_Product_IEnumerable_System_SByte__.md&amp;value=---%0Auid%3A%20X10D.Linq.ByteExtensions.Product(IEnumerable%7BSystem.SByte%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/ByteExtensions.cs/#L36">View Source</a>
</span>
<a id="X10D_Linq_ByteExtensions_Product_" data-uid="X10D.Linq.ByteExtensions.Product*"></a>
<h4 id="X10D_Linq_ByteExtensions_Product_IEnumerable_System_SByte__" data-uid="X10D.Linq.ByteExtensions.Product(IEnumerable{System.SByte})">Product(IEnumerable&lt;SByte&gt;)</h4>
<div class="markdown level1 summary"><p>Computes the product of a sequence of <see cref="!:System.SByte"></see> 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 sbyte Product(this IEnumerable&lt;sbyte&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;<span class="xref">System.SByte</span>&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>A sequence of <see cref="!:System.SByte"></see> values that are used to calculate the product.</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.SByte</span></td>
<td><p>The product the values in the sequence.</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_ByteExtensions_Product__1_IEnumerable___0__Func___0_System_Byte__.md&amp;value=---%0Auid%3A%20X10D.Linq.ByteExtensions.Product%60%601(IEnumerable%7B%60%600%7D%2CFunc%7B%60%600%2CSystem.Byte%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/ByteExtensions.cs/#L60">View Source</a>
</span>
<a id="X10D_Linq_ByteExtensions_Product_" data-uid="X10D.Linq.ByteExtensions.Product*"></a>
<h4 id="X10D_Linq_ByteExtensions_Product__1_IEnumerable___0__Func___0_System_Byte__" data-uid="X10D.Linq.ByteExtensions.Product``1(IEnumerable{``0},Func{``0,System.Byte})">Product&lt;TSource&gt;(IEnumerable&lt;TSource&gt;, Func&lt;TSource, Byte&gt;)</h4>
<div class="markdown level1 summary"><p>Computes the product of a sequence of <see cref="!:System.Byte"></see> values that are obtained by invoking a transform function
on each element of the input sequence.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static byte Product&lt;TSource&gt;(this IEnumerable&lt;TSource&gt; source, Func&lt;TSource, byte&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 that are used to calculate a product.</p>
</td>
</tr>
<tr>
<td><span class="xref">Func</span>&lt;TSource, <span class="xref">System.Byte</span>&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.Byte</span></td>
<td><p>The product of the projected values.</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_ByteExtensions_Product__1_IEnumerable___0__Func___0_System_SByte__.md&amp;value=---%0Auid%3A%20X10D.Linq.ByteExtensions.Product%60%601(IEnumerable%7B%60%600%7D%2CFunc%7B%60%600%2CSystem.SByte%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/ByteExtensions.cs/#L83">View Source</a>
</span>
<a id="X10D_Linq_ByteExtensions_Product_" data-uid="X10D.Linq.ByteExtensions.Product*"></a>
<h4 id="X10D_Linq_ByteExtensions_Product__1_IEnumerable___0__Func___0_System_SByte__" data-uid="X10D.Linq.ByteExtensions.Product``1(IEnumerable{``0},Func{``0,System.SByte})">Product&lt;TSource&gt;(IEnumerable&lt;TSource&gt;, Func&lt;TSource, SByte&gt;)</h4>
<div class="markdown level1 summary"><p>Computes the product of a sequence of <see cref="!:System.SByte"></see> values that are obtained by invoking a transform function
on each element of the input sequence.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static sbyte Product&lt;TSource&gt;(this IEnumerable&lt;TSource&gt; source, Func&lt;TSource, sbyte&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 that are used to calculate a product.</p>
</td>
</tr>
<tr>
<td><span class="xref">Func</span>&lt;TSource, <span class="xref">System.SByte</span>&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.SByte</span></td>
<td><p>The product of the projected values.</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_ByteExtensions_RangeTo_System_Byte_System_Byte_.md&amp;value=---%0Auid%3A%20X10D.Linq.ByteExtensions.RangeTo(System.Byte%2CSystem.Byte)%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/ByteExtensions.cs/#L106">View Source</a>
</span>
<a id="X10D_Linq_ByteExtensions_RangeTo_" data-uid="X10D.Linq.ByteExtensions.RangeTo*"></a>
<h4 id="X10D_Linq_ByteExtensions_RangeTo_System_Byte_System_Byte_" data-uid="X10D.Linq.ByteExtensions.RangeTo(System.Byte,System.Byte)">RangeTo(Byte, Byte)</h4>
<div class="markdown level1 summary"><p>Returns an enumerable sequence of 8-bit integers ranging from the current value to 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;byte&gt; RangeTo(this byte value, byte end)</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.Byte</span></td>
<td><span class="parametername">value</span></td>
<td><p>The starting value of the sequence.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Byte</span></td>
<td><span class="parametername">end</span></td>
<td><p>The ending value of 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">IEnumerable</span>&lt;<span class="xref">System.Byte</span>&gt;</td>
<td><p>An enumerable collection of 8-bit integers, ranging from <code data-dev-comment-type="paramref" class="paramref">value</code> to <code data-dev-comment-type="paramref" class="paramref">end</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_ByteExtensions_RangeTo_System_Byte_System_Int16_.md&amp;value=---%0Auid%3A%20X10D.Linq.ByteExtensions.RangeTo(System.Byte%2CSystem.Int16)%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/ByteExtensions.cs/#L126">View Source</a>
</span>
<a id="X10D_Linq_ByteExtensions_RangeTo_" data-uid="X10D.Linq.ByteExtensions.RangeTo*"></a>
<h4 id="X10D_Linq_ByteExtensions_RangeTo_System_Byte_System_Int16_" data-uid="X10D.Linq.ByteExtensions.RangeTo(System.Byte,System.Int16)">RangeTo(Byte, Int16)</h4>
<div class="markdown level1 summary"><p>Returns an enumerable sequence of 16-bit integers ranging from the current value to 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;short&gt; RangeTo(this byte value, short end)</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.Byte</span></td>
<td><span class="parametername">value</span></td>
<td><p>The starting value of the sequence.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int16</span></td>
<td><span class="parametername">end</span></td>
<td><p>The ending value of 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">IEnumerable</span>&lt;<span class="xref">System.Int16</span>&gt;</td>
<td><p>An enumerable collection of 16-bit integers, ranging from <code data-dev-comment-type="paramref" class="paramref">value</code> to <code data-dev-comment-type="paramref" class="paramref">end</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_ByteExtensions_RangeTo_System_Byte_System_Int32_.md&amp;value=---%0Auid%3A%20X10D.Linq.ByteExtensions.RangeTo(System.Byte%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Linq/ByteExtensions.cs/#L146">View Source</a>
</span>
<a id="X10D_Linq_ByteExtensions_RangeTo_" data-uid="X10D.Linq.ByteExtensions.RangeTo*"></a>
<h4 id="X10D_Linq_ByteExtensions_RangeTo_System_Byte_System_Int32_" data-uid="X10D.Linq.ByteExtensions.RangeTo(System.Byte,System.Int32)">RangeTo(Byte, Int32)</h4>
<div class="markdown level1 summary"><p>Returns an enumerable sequence of 32-bit integers ranging from the current value to 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;int&gt; RangeTo(this byte value, int end)</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.Byte</span></td>
<td><span class="parametername">value</span></td>
<td><p>The starting value of the sequence.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">end</span></td>
<td><p>The ending value of 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">IEnumerable</span>&lt;<span class="xref">System.Int32</span>&gt;</td>
<td><p>An enumerable collection of 32-bit integers, ranging from <code data-dev-comment-type="paramref" class="paramref">value</code> to <code data-dev-comment-type="paramref" class="paramref">end</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_ByteExtensions_RangeTo_System_Byte_System_Int64_.md&amp;value=---%0Auid%3A%20X10D.Linq.ByteExtensions.RangeTo(System.Byte%2CSystem.Int64)%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/ByteExtensions.cs/#L166">View Source</a>
</span>
<a id="X10D_Linq_ByteExtensions_RangeTo_" data-uid="X10D.Linq.ByteExtensions.RangeTo*"></a>
<h4 id="X10D_Linq_ByteExtensions_RangeTo_System_Byte_System_Int64_" data-uid="X10D.Linq.ByteExtensions.RangeTo(System.Byte,System.Int64)">RangeTo(Byte, Int64)</h4>
<div class="markdown level1 summary"><p>Returns an enumerable sequence of 64-bit integers ranging from the current value to 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;long&gt; RangeTo(this byte value, long end)</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.Byte</span></td>
<td><span class="parametername">value</span></td>
<td><p>The starting value of the sequence.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int64</span></td>
<td><span class="parametername">end</span></td>
<td><p>The ending value of 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">IEnumerable</span>&lt;<span class="xref">System.Int64</span>&gt;</td>
<td><p>An enumerable collection of 64-bit integers, ranging from <code data-dev-comment-type="paramref" class="paramref">value</code> to <code data-dev-comment-type="paramref" class="paramref">end</code>.</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>

View File

@ -0,0 +1,258 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class DecimalExtensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class DecimalExtensions
| 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.DecimalExtensions">
<h1 id="X10D_Linq_DecimalExtensions" data-uid="X10D.Linq.DecimalExtensions" class="text-break">Class DecimalExtensions
</h1>
<div class="markdown level0 summary"><p>LINQ-inspired extension methods for <see cref="!:IEnumerable&lt;T>"></see> of <see cref="!:System.Decimal"></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">DecimalExtensions</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_DecimalExtensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class DecimalExtensions : 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_DecimalExtensions_Product_IEnumerable_System_Decimal__.md&amp;value=---%0Auid%3A%20X10D.Linq.DecimalExtensions.Product(IEnumerable%7BSystem.Decimal%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/DecimalExtensions.cs/#L14">View Source</a>
</span>
<a id="X10D_Linq_DecimalExtensions_Product_" data-uid="X10D.Linq.DecimalExtensions.Product*"></a>
<h4 id="X10D_Linq_DecimalExtensions_Product_IEnumerable_System_Decimal__" data-uid="X10D.Linq.DecimalExtensions.Product(IEnumerable{System.Decimal})">Product(IEnumerable&lt;Decimal&gt;)</h4>
<div class="markdown level1 summary"><p>Computes the product of a sequence of <see cref="!:System.Decimal"></see> 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 decimal Product(this IEnumerable&lt;decimal&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;<span class="xref">System.Decimal</span>&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>A sequence of <see cref="!:System.Decimal"></see> values that are used to calculate the product.</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.Decimal</span></td>
<td><p>The product the values in the sequence.</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_DecimalExtensions_Product__1_IEnumerable___0__Func___0_System_Decimal__.md&amp;value=---%0Auid%3A%20X10D.Linq.DecimalExtensions.Product%60%601(IEnumerable%7B%60%600%7D%2CFunc%7B%60%600%2CSystem.Decimal%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/DecimalExtensions.cs/#L37">View Source</a>
</span>
<a id="X10D_Linq_DecimalExtensions_Product_" data-uid="X10D.Linq.DecimalExtensions.Product*"></a>
<h4 id="X10D_Linq_DecimalExtensions_Product__1_IEnumerable___0__Func___0_System_Decimal__" data-uid="X10D.Linq.DecimalExtensions.Product``1(IEnumerable{``0},Func{``0,System.Decimal})">Product&lt;TSource&gt;(IEnumerable&lt;TSource&gt;, Func&lt;TSource, Decimal&gt;)</h4>
<div class="markdown level1 summary"><p>Computes the product of a sequence of <see cref="!:System.Decimal"></see> values that are obtained by invoking a transform function
on each element of the input sequence.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static decimal Product&lt;TSource&gt;(this IEnumerable&lt;TSource&gt; source, Func&lt;TSource, decimal&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 that are used to calculate a product.</p>
</td>
</tr>
<tr>
<td><span class="xref">Func</span>&lt;TSource, <span class="xref">System.Decimal</span>&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.Decimal</span></td>
<td><p>The product of the projected values.</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>
</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>

View File

@ -0,0 +1,258 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class DoubleExtensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class DoubleExtensions
| 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.DoubleExtensions">
<h1 id="X10D_Linq_DoubleExtensions" data-uid="X10D.Linq.DoubleExtensions" class="text-break">Class DoubleExtensions
</h1>
<div class="markdown level0 summary"><p>LINQ-inspired extension methods for <see cref="!:IEnumerable&lt;T>"></see> of <see cref="!:System.Double"></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">DoubleExtensions</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_DoubleExtensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class DoubleExtensions : 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_DoubleExtensions_Product_IEnumerable_System_Double__.md&amp;value=---%0Auid%3A%20X10D.Linq.DoubleExtensions.Product(IEnumerable%7BSystem.Double%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/DoubleExtensions.cs/#L14">View Source</a>
</span>
<a id="X10D_Linq_DoubleExtensions_Product_" data-uid="X10D.Linq.DoubleExtensions.Product*"></a>
<h4 id="X10D_Linq_DoubleExtensions_Product_IEnumerable_System_Double__" data-uid="X10D.Linq.DoubleExtensions.Product(IEnumerable{System.Double})">Product(IEnumerable&lt;Double&gt;)</h4>
<div class="markdown level1 summary"><p>Computes the product of a sequence of <see cref="!:System.Double"></see> 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 double Product(this IEnumerable&lt;double&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;<span class="xref">System.Double</span>&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>A sequence of <see cref="!:System.Double"></see> values that are used to calculate the product.</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.Double</span></td>
<td><p>The product the values in the sequence.</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_DoubleExtensions_Product__1_IEnumerable___0__Func___0_System_Double__.md&amp;value=---%0Auid%3A%20X10D.Linq.DoubleExtensions.Product%60%601(IEnumerable%7B%60%600%7D%2CFunc%7B%60%600%2CSystem.Double%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/DoubleExtensions.cs/#L37">View Source</a>
</span>
<a id="X10D_Linq_DoubleExtensions_Product_" data-uid="X10D.Linq.DoubleExtensions.Product*"></a>
<h4 id="X10D_Linq_DoubleExtensions_Product__1_IEnumerable___0__Func___0_System_Double__" data-uid="X10D.Linq.DoubleExtensions.Product``1(IEnumerable{``0},Func{``0,System.Double})">Product&lt;TSource&gt;(IEnumerable&lt;TSource&gt;, Func&lt;TSource, Double&gt;)</h4>
<div class="markdown level1 summary"><p>Computes the product of a sequence of <see cref="!:System.Double"></see> values that are obtained by invoking a transform function
on each element of the input sequence.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static double Product&lt;TSource&gt;(this IEnumerable&lt;TSource&gt; source, Func&lt;TSource, double&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 that are used to calculate a product.</p>
</td>
</tr>
<tr>
<td><span class="xref">Func</span>&lt;TSource, <span class="xref">System.Double</span>&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.Double</span></td>
<td><p>The product of the projected values.</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>
</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>

View File

@ -0,0 +1,740 @@
<!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_ConcatOne__1_IEnumerable___0____0_.md&amp;value=---%0Auid%3A%20X10D.Linq.EnumerableExtensions.ConcatOne%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/#L23">View Source</a>
</span>
<a id="X10D_Linq_EnumerableExtensions_ConcatOne_" data-uid="X10D.Linq.EnumerableExtensions.ConcatOne*"></a>
<h4 id="X10D_Linq_EnumerableExtensions_ConcatOne__1_IEnumerable___0____0_" data-uid="X10D.Linq.EnumerableExtensions.ConcatOne``1(IEnumerable{``0},``0)">ConcatOne&lt;TSource&gt;(IEnumerable&lt;TSource&gt;, TSource)</h4>
<div class="markdown level1 summary"><p>Concatenates a single value to the end of a sequence.</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; ConcatOne&lt;TSource&gt;(this IEnumerable&lt;TSource&gt; source, TSource value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">IEnumerable</span>&lt;TSource&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>The source sequence.</p>
</td>
</tr>
<tr>
<td><span class="xref">TSource</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to concatenate to the end of the source 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">IEnumerable</span>&lt;TSource&gt;</td>
<td><p>An <see cref="!:IEnumerable&lt;T>"></see> that contains the concatenated elements of the input sequence, and 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 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_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/#L53">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/#L75">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/#L98">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/#L160">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/#L193">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/#L263">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/#L295">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>

View File

@ -0,0 +1,549 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class Int16Extensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class Int16Extensions
| 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.Int16Extensions">
<h1 id="X10D_Linq_Int16Extensions" data-uid="X10D.Linq.Int16Extensions" class="text-break">Class Int16Extensions
</h1>
<div class="markdown level0 summary"><p>LINQ-inspired extension methods for <see cref="!:IEnumerable&lt;T>"></see> of <see cref="!:System.Int64"></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">Int16Extensions</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_Int16Extensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class Int16Extensions : 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_Int16Extensions_Product_IEnumerable_System_Int16__.md&amp;value=---%0Auid%3A%20X10D.Linq.Int16Extensions.Product(IEnumerable%7BSystem.Int16%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/Int16Extensions.cs/#L15">View Source</a>
</span>
<a id="X10D_Linq_Int16Extensions_Product_" data-uid="X10D.Linq.Int16Extensions.Product*"></a>
<h4 id="X10D_Linq_Int16Extensions_Product_IEnumerable_System_Int16__" data-uid="X10D.Linq.Int16Extensions.Product(IEnumerable{System.Int16})">Product(IEnumerable&lt;Int16&gt;)</h4>
<div class="markdown level1 summary"><p>Computes the product of a sequence of <see cref="!:System.Int16"></see> 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 short Product(this IEnumerable&lt;short&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;<span class="xref">System.Int16</span>&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>A sequence of <see cref="!:System.Int16"></see> values that are used to calculate the product.</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.Int16</span></td>
<td><p>The product the values in the sequence.</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_Int16Extensions_Product_IEnumerable_System_UInt16__.md&amp;value=---%0Auid%3A%20X10D.Linq.Int16Extensions.Product(IEnumerable%7BSystem.UInt16%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/Int16Extensions.cs/#L25">View Source</a>
</span>
<a id="X10D_Linq_Int16Extensions_Product_" data-uid="X10D.Linq.Int16Extensions.Product*"></a>
<h4 id="X10D_Linq_Int16Extensions_Product_IEnumerable_System_UInt16__" data-uid="X10D.Linq.Int16Extensions.Product(IEnumerable{System.UInt16})">Product(IEnumerable&lt;UInt16&gt;)</h4>
<div class="markdown level1 summary"><p>Computes the product of a sequence of <see cref="!:System.UInt16"></see> 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 ushort Product(this IEnumerable&lt;ushort&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;<span class="xref">System.UInt16</span>&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>A sequence of <see cref="!:System.UInt16"></see> values that are used to calculate the product.</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.UInt16</span></td>
<td><p>The product the values in the sequence.</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_Int16Extensions_Product__1_IEnumerable___0__Func___0_System_Int16__.md&amp;value=---%0Auid%3A%20X10D.Linq.Int16Extensions.Product%60%601(IEnumerable%7B%60%600%7D%2CFunc%7B%60%600%2CSystem.Int16%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/Int16Extensions.cs/#L39">View Source</a>
</span>
<a id="X10D_Linq_Int16Extensions_Product_" data-uid="X10D.Linq.Int16Extensions.Product*"></a>
<h4 id="X10D_Linq_Int16Extensions_Product__1_IEnumerable___0__Func___0_System_Int16__" data-uid="X10D.Linq.Int16Extensions.Product``1(IEnumerable{``0},Func{``0,System.Int16})">Product&lt;TSource&gt;(IEnumerable&lt;TSource&gt;, Func&lt;TSource, Int16&gt;)</h4>
<div class="markdown level1 summary"><p>Computes the product of a sequence of <see cref="!:System.Int16"></see> values that are obtained by invoking a transform function
on each element of the input sequence.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static short Product&lt;TSource&gt;(this IEnumerable&lt;TSource&gt; source, Func&lt;TSource, short&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 that are used to calculate a product.</p>
</td>
</tr>
<tr>
<td><span class="xref">Func</span>&lt;TSource, <span class="xref">System.Int16</span>&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.Int16</span></td>
<td><p>The product of the projected values.</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_Int16Extensions_Product__1_IEnumerable___0__Func___0_System_UInt16__.md&amp;value=---%0Auid%3A%20X10D.Linq.Int16Extensions.Product%60%601(IEnumerable%7B%60%600%7D%2CFunc%7B%60%600%2CSystem.UInt16%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/Int16Extensions.cs/#L52">View Source</a>
</span>
<a id="X10D_Linq_Int16Extensions_Product_" data-uid="X10D.Linq.Int16Extensions.Product*"></a>
<h4 id="X10D_Linq_Int16Extensions_Product__1_IEnumerable___0__Func___0_System_UInt16__" data-uid="X10D.Linq.Int16Extensions.Product``1(IEnumerable{``0},Func{``0,System.UInt16})">Product&lt;TSource&gt;(IEnumerable&lt;TSource&gt;, Func&lt;TSource, UInt16&gt;)</h4>
<div class="markdown level1 summary"><p>Computes the product of a sequence of <see cref="!:System.UInt16"></see> values that are obtained by invoking a transform function
on each element of the input sequence.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static ushort Product&lt;TSource&gt;(this IEnumerable&lt;TSource&gt; source, Func&lt;TSource, ushort&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 that are used to calculate a product.</p>
</td>
</tr>
<tr>
<td><span class="xref">Func</span>&lt;TSource, <span class="xref">System.UInt16</span>&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.UInt16</span></td>
<td><p>The product of the projected values.</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_Int16Extensions_RangeTo_System_Int16_System_Int16_.md&amp;value=---%0Auid%3A%20X10D.Linq.Int16Extensions.RangeTo(System.Int16%2CSystem.Int16)%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/Int16Extensions.cs/#L66">View Source</a>
</span>
<a id="X10D_Linq_Int16Extensions_RangeTo_" data-uid="X10D.Linq.Int16Extensions.RangeTo*"></a>
<h4 id="X10D_Linq_Int16Extensions_RangeTo_System_Int16_System_Int16_" data-uid="X10D.Linq.Int16Extensions.RangeTo(System.Int16,System.Int16)">RangeTo(Int16, Int16)</h4>
<div class="markdown level1 summary"><p>Returns an enumerable sequence of 16-bit integers ranging from the current value to 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;short&gt; RangeTo(this short value, short end)</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.Int16</span></td>
<td><span class="parametername">value</span></td>
<td><p>The starting value of the sequence.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int16</span></td>
<td><span class="parametername">end</span></td>
<td><p>The ending value of 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">IEnumerable</span>&lt;<span class="xref">System.Int16</span>&gt;</td>
<td><p>An enumerable collection of 16-bit integers, ranging from <code data-dev-comment-type="paramref" class="paramref">value</code> to <code data-dev-comment-type="paramref" class="paramref">end</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_Int16Extensions_RangeTo_System_Int16_System_Int32_.md&amp;value=---%0Auid%3A%20X10D.Linq.Int16Extensions.RangeTo(System.Int16%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Linq/Int16Extensions.cs/#L86">View Source</a>
</span>
<a id="X10D_Linq_Int16Extensions_RangeTo_" data-uid="X10D.Linq.Int16Extensions.RangeTo*"></a>
<h4 id="X10D_Linq_Int16Extensions_RangeTo_System_Int16_System_Int32_" data-uid="X10D.Linq.Int16Extensions.RangeTo(System.Int16,System.Int32)">RangeTo(Int16, Int32)</h4>
<div class="markdown level1 summary"><p>Returns an enumerable sequence of 32-bit integers ranging from the current value to 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;int&gt; RangeTo(this short value, int end)</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.Int16</span></td>
<td><span class="parametername">value</span></td>
<td><p>The starting value of the sequence.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">end</span></td>
<td><p>The ending value of 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">IEnumerable</span>&lt;<span class="xref">System.Int32</span>&gt;</td>
<td><p>An enumerable collection of 32-bit integers, ranging from <code data-dev-comment-type="paramref" class="paramref">value</code> to <code data-dev-comment-type="paramref" class="paramref">end</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_Int16Extensions_RangeTo_System_Int16_System_Int64_.md&amp;value=---%0Auid%3A%20X10D.Linq.Int16Extensions.RangeTo(System.Int16%2CSystem.Int64)%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/Int16Extensions.cs/#L106">View Source</a>
</span>
<a id="X10D_Linq_Int16Extensions_RangeTo_" data-uid="X10D.Linq.Int16Extensions.RangeTo*"></a>
<h4 id="X10D_Linq_Int16Extensions_RangeTo_System_Int16_System_Int64_" data-uid="X10D.Linq.Int16Extensions.RangeTo(System.Int16,System.Int64)">RangeTo(Int16, Int64)</h4>
<div class="markdown level1 summary"><p>Returns an enumerable sequence of 64-bit integers ranging from the current value to 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;long&gt; RangeTo(this short value, long end)</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.Int16</span></td>
<td><span class="parametername">value</span></td>
<td><p>The starting value of the sequence.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int64</span></td>
<td><span class="parametername">end</span></td>
<td><p>The ending value of 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">IEnumerable</span>&lt;<span class="xref">System.Int64</span>&gt;</td>
<td><p>An enumerable collection of 64-bit integers, ranging from <code data-dev-comment-type="paramref" class="paramref">value</code> to <code data-dev-comment-type="paramref" class="paramref">end</code>.</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>

View File

@ -0,0 +1,493 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class Int32Extensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class Int32Extensions
| 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.Int32Extensions">
<h1 id="X10D_Linq_Int32Extensions" data-uid="X10D.Linq.Int32Extensions" class="text-break">Class Int32Extensions
</h1>
<div class="markdown level0 summary"><p>LINQ-inspired extension methods for <see cref="!:IEnumerable&lt;T>"></see> of <see cref="!:System.Int32"></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">Int32Extensions</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_Int32Extensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class Int32Extensions : 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_Int32Extensions_Product_IEnumerable_System_Int32__.md&amp;value=---%0Auid%3A%20X10D.Linq.Int32Extensions.Product(IEnumerable%7BSystem.Int32%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/Int32Extensions.cs/#L16">View Source</a>
</span>
<a id="X10D_Linq_Int32Extensions_Product_" data-uid="X10D.Linq.Int32Extensions.Product*"></a>
<h4 id="X10D_Linq_Int32Extensions_Product_IEnumerable_System_Int32__" data-uid="X10D.Linq.Int32Extensions.Product(IEnumerable{System.Int32})">Product(IEnumerable&lt;Int32&gt;)</h4>
<div class="markdown level1 summary"><p>Computes the product of a sequence of <see cref="!:System.Int32"></see> 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 int Product(this IEnumerable&lt;int&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;<span class="xref">System.Int32</span>&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>A sequence of <see cref="!:System.Int32"></see> values that are used to calculate the product.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>The product the values in the sequence.</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_Int32Extensions_Product_IEnumerable_System_UInt32__.md&amp;value=---%0Auid%3A%20X10D.Linq.Int32Extensions.Product(IEnumerable%7BSystem.UInt32%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/Int32Extensions.cs/#L36">View Source</a>
</span>
<a id="X10D_Linq_Int32Extensions_Product_" data-uid="X10D.Linq.Int32Extensions.Product*"></a>
<h4 id="X10D_Linq_Int32Extensions_Product_IEnumerable_System_UInt32__" data-uid="X10D.Linq.Int32Extensions.Product(IEnumerable{System.UInt32})">Product(IEnumerable&lt;UInt32&gt;)</h4>
<div class="markdown level1 summary"><p>Computes the product of a sequence of <see cref="!:System.UInt32"></see> 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 uint Product(this IEnumerable&lt;uint&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;<span class="xref">System.UInt32</span>&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>A sequence of <see cref="!:System.UInt32"></see> values that are used to calculate the product.</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.UInt32</span></td>
<td><p>The product the values in the sequence.</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_Int32Extensions_Product__1_IEnumerable___0__Func___0_System_Int32__.md&amp;value=---%0Auid%3A%20X10D.Linq.Int32Extensions.Product%60%601(IEnumerable%7B%60%600%7D%2CFunc%7B%60%600%2CSystem.Int32%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/Int32Extensions.cs/#L60">View Source</a>
</span>
<a id="X10D_Linq_Int32Extensions_Product_" data-uid="X10D.Linq.Int32Extensions.Product*"></a>
<h4 id="X10D_Linq_Int32Extensions_Product__1_IEnumerable___0__Func___0_System_Int32__" data-uid="X10D.Linq.Int32Extensions.Product``1(IEnumerable{``0},Func{``0,System.Int32})">Product&lt;TSource&gt;(IEnumerable&lt;TSource&gt;, Func&lt;TSource, Int32&gt;)</h4>
<div class="markdown level1 summary"><p>Computes the product of a sequence of <see cref="!:System.Int32"></see> values that are obtained by invoking a transform function on
each element of the input sequence.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static int Product&lt;TSource&gt;(this IEnumerable&lt;TSource&gt; source, Func&lt;TSource, int&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 that are used to calculate a product.</p>
</td>
</tr>
<tr>
<td><span class="xref">Func</span>&lt;TSource, <span class="xref">System.Int32</span>&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.Int32</span></td>
<td><p>The product of the projected values.</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_Int32Extensions_Product__1_IEnumerable___0__Func___0_System_UInt32__.md&amp;value=---%0Auid%3A%20X10D.Linq.Int32Extensions.Product%60%601(IEnumerable%7B%60%600%7D%2CFunc%7B%60%600%2CSystem.UInt32%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/Int32Extensions.cs/#L83">View Source</a>
</span>
<a id="X10D_Linq_Int32Extensions_Product_" data-uid="X10D.Linq.Int32Extensions.Product*"></a>
<h4 id="X10D_Linq_Int32Extensions_Product__1_IEnumerable___0__Func___0_System_UInt32__" data-uid="X10D.Linq.Int32Extensions.Product``1(IEnumerable{``0},Func{``0,System.UInt32})">Product&lt;TSource&gt;(IEnumerable&lt;TSource&gt;, Func&lt;TSource, UInt32&gt;)</h4>
<div class="markdown level1 summary"><p>Computes the product of a sequence of <see cref="!:System.UInt32"></see> values that are obtained by invoking a transform function on
each element of the input sequence.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static uint Product&lt;TSource&gt;(this IEnumerable&lt;TSource&gt; source, Func&lt;TSource, uint&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 that are used to calculate a product.</p>
</td>
</tr>
<tr>
<td><span class="xref">Func</span>&lt;TSource, <span class="xref">System.UInt32</span>&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.UInt32</span></td>
<td><p>The product of the projected values.</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_Int32Extensions_RangeTo_System_Int32_System_Int32_.md&amp;value=---%0Auid%3A%20X10D.Linq.Int32Extensions.RangeTo(System.Int32%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Linq/Int32Extensions.cs/#L106">View Source</a>
</span>
<a id="X10D_Linq_Int32Extensions_RangeTo_" data-uid="X10D.Linq.Int32Extensions.RangeTo*"></a>
<h4 id="X10D_Linq_Int32Extensions_RangeTo_System_Int32_System_Int32_" data-uid="X10D.Linq.Int32Extensions.RangeTo(System.Int32,System.Int32)">RangeTo(Int32, Int32)</h4>
<div class="markdown level1 summary"><p>Returns an enumerable sequence of 32-bit integers ranging from the current value to 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;int&gt; RangeTo(this int value, int end)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">value</span></td>
<td><p>The starting value of the sequence.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">end</span></td>
<td><p>The ending value of 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">IEnumerable</span>&lt;<span class="xref">System.Int32</span>&gt;</td>
<td><p>An enumerable collection of 32-bit integers, ranging from <code data-dev-comment-type="paramref" class="paramref">value</code> to <code data-dev-comment-type="paramref" class="paramref">end</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_Int32Extensions_RangeTo_System_Int32_System_Int64_.md&amp;value=---%0Auid%3A%20X10D.Linq.Int32Extensions.RangeTo(System.Int32%2CSystem.Int64)%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/Int32Extensions.cs/#L126">View Source</a>
</span>
<a id="X10D_Linq_Int32Extensions_RangeTo_" data-uid="X10D.Linq.Int32Extensions.RangeTo*"></a>
<h4 id="X10D_Linq_Int32Extensions_RangeTo_System_Int32_System_Int64_" data-uid="X10D.Linq.Int32Extensions.RangeTo(System.Int32,System.Int64)">RangeTo(Int32, Int64)</h4>
<div class="markdown level1 summary"><p>Returns an enumerable sequence of 64-bit integers ranging from the current value to 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;long&gt; RangeTo(this int value, long end)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">value</span></td>
<td><p>The starting value of the sequence.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int64</span></td>
<td><span class="parametername">end</span></td>
<td><p>The ending value of 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">IEnumerable</span>&lt;<span class="xref">System.Int64</span>&gt;</td>
<td><p>An enumerable collection of 64-bit integers, ranging from <code data-dev-comment-type="paramref" class="paramref">value</code> to <code data-dev-comment-type="paramref" class="paramref">end</code>.</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>

View File

@ -0,0 +1,437 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class Int64Extensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class Int64Extensions
| 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.Int64Extensions">
<h1 id="X10D_Linq_Int64Extensions" data-uid="X10D.Linq.Int64Extensions" class="text-break">Class Int64Extensions
</h1>
<div class="markdown level0 summary"><p>LINQ-inspired extension methods for <see cref="!:IEnumerable&lt;T>"></see> of <see cref="!:System.Int64"></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">Int64Extensions</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_Int64Extensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class Int64Extensions : 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_Int64Extensions_Product_IEnumerable_System_Int64__.md&amp;value=---%0Auid%3A%20X10D.Linq.Int64Extensions.Product(IEnumerable%7BSystem.Int64%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/Int64Extensions.cs/#L16">View Source</a>
</span>
<a id="X10D_Linq_Int64Extensions_Product_" data-uid="X10D.Linq.Int64Extensions.Product*"></a>
<h4 id="X10D_Linq_Int64Extensions_Product_IEnumerable_System_Int64__" data-uid="X10D.Linq.Int64Extensions.Product(IEnumerable{System.Int64})">Product(IEnumerable&lt;Int64&gt;)</h4>
<div class="markdown level1 summary"><p>Computes the product of a sequence of <see cref="!:System.Int64"></see> 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 long Product(this IEnumerable&lt;long&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;<span class="xref">System.Int64</span>&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>A sequence of <see cref="!:System.Int64"></see> values that are used to calculate the product.</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.Int64</span></td>
<td><p>The product the values in the sequence.</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_Int64Extensions_Product_IEnumerable_System_UInt64__.md&amp;value=---%0Auid%3A%20X10D.Linq.Int64Extensions.Product(IEnumerable%7BSystem.UInt64%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/Int64Extensions.cs/#L36">View Source</a>
</span>
<a id="X10D_Linq_Int64Extensions_Product_" data-uid="X10D.Linq.Int64Extensions.Product*"></a>
<h4 id="X10D_Linq_Int64Extensions_Product_IEnumerable_System_UInt64__" data-uid="X10D.Linq.Int64Extensions.Product(IEnumerable{System.UInt64})">Product(IEnumerable&lt;UInt64&gt;)</h4>
<div class="markdown level1 summary"><p>Computes the product of a sequence of <see cref="!:System.UInt64"></see> 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 ulong Product(this IEnumerable&lt;ulong&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;<span class="xref">System.UInt64</span>&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>A sequence of <see cref="!:System.UInt64"></see> values that are used to calculate the product.</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.UInt64</span></td>
<td><p>The product the values in the sequence.</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_Int64Extensions_Product__1_IEnumerable___0__Func___0_System_Int64__.md&amp;value=---%0Auid%3A%20X10D.Linq.Int64Extensions.Product%60%601(IEnumerable%7B%60%600%7D%2CFunc%7B%60%600%2CSystem.Int64%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/Int64Extensions.cs/#L60">View Source</a>
</span>
<a id="X10D_Linq_Int64Extensions_Product_" data-uid="X10D.Linq.Int64Extensions.Product*"></a>
<h4 id="X10D_Linq_Int64Extensions_Product__1_IEnumerable___0__Func___0_System_Int64__" data-uid="X10D.Linq.Int64Extensions.Product``1(IEnumerable{``0},Func{``0,System.Int64})">Product&lt;TSource&gt;(IEnumerable&lt;TSource&gt;, Func&lt;TSource, Int64&gt;)</h4>
<div class="markdown level1 summary"><p>Computes the product of a sequence of <see cref="!:System.Int64"></see> values that are obtained by invoking a transform function on
each element of the input sequence.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static long Product&lt;TSource&gt;(this IEnumerable&lt;TSource&gt; source, Func&lt;TSource, long&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 that are used to calculate a product.</p>
</td>
</tr>
<tr>
<td><span class="xref">Func</span>&lt;TSource, <span class="xref">System.Int64</span>&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.Int64</span></td>
<td><p>The product of the projected values.</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_Int64Extensions_Product__1_IEnumerable___0__Func___0_System_UInt64__.md&amp;value=---%0Auid%3A%20X10D.Linq.Int64Extensions.Product%60%601(IEnumerable%7B%60%600%7D%2CFunc%7B%60%600%2CSystem.UInt64%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/Int64Extensions.cs/#L83">View Source</a>
</span>
<a id="X10D_Linq_Int64Extensions_Product_" data-uid="X10D.Linq.Int64Extensions.Product*"></a>
<h4 id="X10D_Linq_Int64Extensions_Product__1_IEnumerable___0__Func___0_System_UInt64__" data-uid="X10D.Linq.Int64Extensions.Product``1(IEnumerable{``0},Func{``0,System.UInt64})">Product&lt;TSource&gt;(IEnumerable&lt;TSource&gt;, Func&lt;TSource, UInt64&gt;)</h4>
<div class="markdown level1 summary"><p>Computes the product of a sequence of <see cref="!:System.UInt64"></see> values that are obtained by invoking a transform function
on each element of the input sequence.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static ulong Product&lt;TSource&gt;(this IEnumerable&lt;TSource&gt; source, Func&lt;TSource, ulong&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 that are used to calculate a product.</p>
</td>
</tr>
<tr>
<td><span class="xref">Func</span>&lt;TSource, <span class="xref">System.UInt64</span>&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.UInt64</span></td>
<td><p>The product of the projected values.</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_Int64Extensions_RangeTo_System_Int64_System_Int64_.md&amp;value=---%0Auid%3A%20X10D.Linq.Int64Extensions.RangeTo(System.Int64%2CSystem.Int64)%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/Int64Extensions.cs/#L106">View Source</a>
</span>
<a id="X10D_Linq_Int64Extensions_RangeTo_" data-uid="X10D.Linq.Int64Extensions.RangeTo*"></a>
<h4 id="X10D_Linq_Int64Extensions_RangeTo_System_Int64_System_Int64_" data-uid="X10D.Linq.Int64Extensions.RangeTo(System.Int64,System.Int64)">RangeTo(Int64, Int64)</h4>
<div class="markdown level1 summary"><p>Returns an enumerable sequence of 64-bit integers ranging from the current value to 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;long&gt; RangeTo(this long value, long end)</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.Int64</span></td>
<td><span class="parametername">value</span></td>
<td><p>The starting value of the sequence.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int64</span></td>
<td><span class="parametername">end</span></td>
<td><p>The ending value of 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">IEnumerable</span>&lt;<span class="xref">System.Int64</span>&gt;</td>
<td><p>An enumerable collection of 64-bit integers, ranging from <code data-dev-comment-type="paramref" class="paramref">value</code> to <code data-dev-comment-type="paramref" class="paramref">end</code>.</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>

View File

@ -0,0 +1,353 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class ReadOnlySpanExtensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class ReadOnlySpanExtensions
| 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.ReadOnlySpanExtensions">
<h1 id="X10D_Linq_ReadOnlySpanExtensions" data-uid="X10D.Linq.ReadOnlySpanExtensions" class="text-break">Class ReadOnlySpanExtensions
</h1>
<div class="markdown level0 summary"><p>Extension methods for <see cref="!:ReadOnlySpan&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">ReadOnlySpanExtensions</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_ReadOnlySpanExtensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class ReadOnlySpanExtensions : 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_ReadOnlySpanExtensions_All__1_ReadOnlySpan___0__Predicate___0__.md&amp;value=---%0Auid%3A%20X10D.Linq.ReadOnlySpanExtensions.All%60%601(ReadOnlySpan%7B%60%600%7D%2CPredicate%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/ReadOnlySpanExtensions.cs/#L21">View Source</a>
</span>
<a id="X10D_Linq_ReadOnlySpanExtensions_All_" data-uid="X10D.Linq.ReadOnlySpanExtensions.All*"></a>
<h4 id="X10D_Linq_ReadOnlySpanExtensions_All__1_ReadOnlySpan___0__Predicate___0__" data-uid="X10D.Linq.ReadOnlySpanExtensions.All``1(ReadOnlySpan{``0},Predicate{``0})">All&lt;TSource&gt;(ReadOnlySpan&lt;TSource&gt;, Predicate&lt;TSource&gt;)</h4>
<div class="markdown level1 summary"><p>Determines whether all elements of a read-only span satisfy a condition.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool All&lt;TSource&gt;(this ReadOnlySpan&lt;TSource&gt; source, Predicate&lt;TSource&gt; predicate)</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">ReadOnlySpan</span>&lt;TSource&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>A <see cref="!:ReadOnlySpan&lt;T>"></see> that contains the elements to apply the predicate to.</p>
</td>
</tr>
<tr>
<td><span class="xref">Predicate</span>&lt;TSource&gt;</td>
<td><span class="parametername">predicate</span></td>
<td><p>A function to test each element for a condition.</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><span class="xref">true</span> if every element of the source sequence passes the test in the specified predicate, or if the
span is empty; otherwise, <span class="xref">false</span>.</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_ReadOnlySpanExtensions_Any__1_ReadOnlySpan___0__Predicate___0__.md&amp;value=---%0Auid%3A%20X10D.Linq.ReadOnlySpanExtensions.Any%60%601(ReadOnlySpan%7B%60%600%7D%2CPredicate%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/ReadOnlySpanExtensions.cs/#L60">View Source</a>
</span>
<a id="X10D_Linq_ReadOnlySpanExtensions_Any_" data-uid="X10D.Linq.ReadOnlySpanExtensions.Any*"></a>
<h4 id="X10D_Linq_ReadOnlySpanExtensions_Any__1_ReadOnlySpan___0__Predicate___0__" data-uid="X10D.Linq.ReadOnlySpanExtensions.Any``1(ReadOnlySpan{``0},Predicate{``0})">Any&lt;TSource&gt;(ReadOnlySpan&lt;TSource&gt;, Predicate&lt;TSource&gt;)</h4>
<div class="markdown level1 summary"><p>Determines whether any element of a read-only span satisfies a condition.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool Any&lt;TSource&gt;(this ReadOnlySpan&lt;TSource&gt; source, Predicate&lt;TSource&gt; predicate)</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">ReadOnlySpan</span>&lt;TSource&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>A <see cref="!:ReadOnlySpan&lt;T>"></see> that contains the elements to apply the predicate to.</p>
</td>
</tr>
<tr>
<td><span class="xref">Predicate</span>&lt;TSource&gt;</td>
<td><span class="parametername">predicate</span></td>
<td><p>A function to test each element for a condition.</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><span class="xref">true</span> if the source span is not empty and at least one of its elements passes the test in the
specified predicate; otherwise, <span class="xref">false</span>.</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_ReadOnlySpanExtensions_Count__1_ReadOnlySpan___0__Predicate___0__.md&amp;value=---%0Auid%3A%20X10D.Linq.ReadOnlySpanExtensions.Count%60%601(ReadOnlySpan%7B%60%600%7D%2CPredicate%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/ReadOnlySpanExtensions.cs/#L98">View Source</a>
</span>
<a id="X10D_Linq_ReadOnlySpanExtensions_Count_" data-uid="X10D.Linq.ReadOnlySpanExtensions.Count*"></a>
<h4 id="X10D_Linq_ReadOnlySpanExtensions_Count__1_ReadOnlySpan___0__Predicate___0__" data-uid="X10D.Linq.ReadOnlySpanExtensions.Count``1(ReadOnlySpan{``0},Predicate{``0})">Count&lt;TSource&gt;(ReadOnlySpan&lt;TSource&gt;, Predicate&lt;TSource&gt;)</h4>
<div class="markdown level1 summary"><p>Returns a number that represents how many elements in the specified sequence satisfy a condition.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static int Count&lt;TSource&gt;(this ReadOnlySpan&lt;TSource&gt; source, Predicate&lt;TSource&gt; predicate)</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">ReadOnlySpan</span>&lt;TSource&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>A <see cref="!:ReadOnlySpan&lt;T>"></see> that contains elements to be tested and counted.</p>
</td>
</tr>
<tr>
<td><span class="xref">Predicate</span>&lt;TSource&gt;</td>
<td><span class="parametername">predicate</span></td>
<td><p>A function to test each element for a condition.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>A number that represents how many elements in the sequence satisfy the condition in the predicate function.</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>
</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>

View File

@ -0,0 +1,258 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class SingleExtensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class SingleExtensions
| 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.SingleExtensions">
<h1 id="X10D_Linq_SingleExtensions" data-uid="X10D.Linq.SingleExtensions" class="text-break">Class SingleExtensions
</h1>
<div class="markdown level0 summary"><p>LINQ-inspired extension methods for <see cref="!:IEnumerable&lt;T>"></see> of <see cref="!:System.Single"></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">SingleExtensions</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_SingleExtensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class SingleExtensions : 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_SingleExtensions_Product_IEnumerable_System_Single__.md&amp;value=---%0Auid%3A%20X10D.Linq.SingleExtensions.Product(IEnumerable%7BSystem.Single%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/SingleExtensions.cs/#L14">View Source</a>
</span>
<a id="X10D_Linq_SingleExtensions_Product_" data-uid="X10D.Linq.SingleExtensions.Product*"></a>
<h4 id="X10D_Linq_SingleExtensions_Product_IEnumerable_System_Single__" data-uid="X10D.Linq.SingleExtensions.Product(IEnumerable{System.Single})">Product(IEnumerable&lt;Single&gt;)</h4>
<div class="markdown level1 summary"><p>Computes the product of a sequence of <see cref="!:System.Single"></see> 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 float Product(this IEnumerable&lt;float&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;<span class="xref">System.Single</span>&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>A sequence of <see cref="!:System.Single"></see> values that are used to calculate the product.</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.Single</span></td>
<td><p>The product the values in the sequence.</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_SingleExtensions_Product__1_IEnumerable___0__Func___0_System_Single__.md&amp;value=---%0Auid%3A%20X10D.Linq.SingleExtensions.Product%60%601(IEnumerable%7B%60%600%7D%2CFunc%7B%60%600%2CSystem.Single%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/SingleExtensions.cs/#L37">View Source</a>
</span>
<a id="X10D_Linq_SingleExtensions_Product_" data-uid="X10D.Linq.SingleExtensions.Product*"></a>
<h4 id="X10D_Linq_SingleExtensions_Product__1_IEnumerable___0__Func___0_System_Single__" data-uid="X10D.Linq.SingleExtensions.Product``1(IEnumerable{``0},Func{``0,System.Single})">Product&lt;TSource&gt;(IEnumerable&lt;TSource&gt;, Func&lt;TSource, Single&gt;)</h4>
<div class="markdown level1 summary"><p>Computes the product of a sequence of <see cref="!:System.Single"></see> values that are obtained by invoking a transform function
on each element of the input sequence.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static float Product&lt;TSource&gt;(this IEnumerable&lt;TSource&gt; source, Func&lt;TSource, float&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 that are used to calculate a product.</p>
</td>
</tr>
<tr>
<td><span class="xref">Func</span>&lt;TSource, <span class="xref">System.Single</span>&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.Single</span></td>
<td><p>The product of the projected values.</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>
</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>

View File

@ -0,0 +1,353 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class SpanExtensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class SpanExtensions
| 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.SpanExtensions">
<h1 id="X10D_Linq_SpanExtensions" data-uid="X10D.Linq.SpanExtensions" class="text-break">Class SpanExtensions
</h1>
<div class="markdown level0 summary"><p>Extension methods for <see cref="!:Span&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">SpanExtensions</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_SpanExtensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class SpanExtensions : 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_SpanExtensions_All__1_Span___0__Predicate___0__.md&amp;value=---%0Auid%3A%20X10D.Linq.SpanExtensions.All%60%601(Span%7B%60%600%7D%2CPredicate%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/SpanExtensions.cs/#L21">View Source</a>
</span>
<a id="X10D_Linq_SpanExtensions_All_" data-uid="X10D.Linq.SpanExtensions.All*"></a>
<h4 id="X10D_Linq_SpanExtensions_All__1_Span___0__Predicate___0__" data-uid="X10D.Linq.SpanExtensions.All``1(Span{``0},Predicate{``0})">All&lt;TSource&gt;(Span&lt;TSource&gt;, Predicate&lt;TSource&gt;)</h4>
<div class="markdown level1 summary"><p>Determines whether all elements of a span satisfy a condition.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool All&lt;TSource&gt;(this Span&lt;TSource&gt; source, Predicate&lt;TSource&gt; predicate)</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">Span</span>&lt;TSource&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>A <see cref="!:Span&lt;T>"></see> that contains the elements to apply the predicate to.</p>
</td>
</tr>
<tr>
<td><span class="xref">Predicate</span>&lt;TSource&gt;</td>
<td><span class="parametername">predicate</span></td>
<td><p>A function to test each element for a condition.</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><span class="xref">true</span> if every element of the source sequence passes the test in the specified predicate, or if the
span is empty; otherwise, <span class="xref">false</span>.</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_SpanExtensions_Any__1_Span___0__Predicate___0__.md&amp;value=---%0Auid%3A%20X10D.Linq.SpanExtensions.Any%60%601(Span%7B%60%600%7D%2CPredicate%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/SpanExtensions.cs/#L60">View Source</a>
</span>
<a id="X10D_Linq_SpanExtensions_Any_" data-uid="X10D.Linq.SpanExtensions.Any*"></a>
<h4 id="X10D_Linq_SpanExtensions_Any__1_Span___0__Predicate___0__" data-uid="X10D.Linq.SpanExtensions.Any``1(Span{``0},Predicate{``0})">Any&lt;TSource&gt;(Span&lt;TSource&gt;, Predicate&lt;TSource&gt;)</h4>
<div class="markdown level1 summary"><p>Determines whether any element of a span satisfies a condition.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool Any&lt;TSource&gt;(this Span&lt;TSource&gt; source, Predicate&lt;TSource&gt; predicate)</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">Span</span>&lt;TSource&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>A <see cref="!:Span&lt;T>"></see> that contains the elements to apply the predicate to.</p>
</td>
</tr>
<tr>
<td><span class="xref">Predicate</span>&lt;TSource&gt;</td>
<td><span class="parametername">predicate</span></td>
<td><p>A function to test each element for a condition.</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><span class="xref">true</span> if the source span is not empty and at least one of its elements passes the test in the
specified predicate; otherwise, <span class="xref">false</span>.</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_SpanExtensions_Count__1_Span___0__Predicate___0__.md&amp;value=---%0Auid%3A%20X10D.Linq.SpanExtensions.Count%60%601(Span%7B%60%600%7D%2CPredicate%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/SpanExtensions.cs/#L98">View Source</a>
</span>
<a id="X10D_Linq_SpanExtensions_Count_" data-uid="X10D.Linq.SpanExtensions.Count*"></a>
<h4 id="X10D_Linq_SpanExtensions_Count__1_Span___0__Predicate___0__" data-uid="X10D.Linq.SpanExtensions.Count``1(Span{``0},Predicate{``0})">Count&lt;TSource&gt;(Span&lt;TSource&gt;, Predicate&lt;TSource&gt;)</h4>
<div class="markdown level1 summary"><p>Returns a number that represents how many elements in the specified sequence satisfy a condition.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static int Count&lt;TSource&gt;(this Span&lt;TSource&gt; source, Predicate&lt;TSource&gt; predicate)</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">Span</span>&lt;TSource&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>A <see cref="!:Span&lt;T>"></see> that contains elements to be tested and counted.</p>
</td>
</tr>
<tr>
<td><span class="xref">Predicate</span>&lt;TSource&gt;</td>
<td><span class="parametername">predicate</span></td>
<td><p>A function to test each element for a condition.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>A number that represents how many elements in the sequence satisfy the condition in the predicate function.</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>
</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>

153
api/X10D.Linq.html Normal file
View File

@ -0,0 +1,153 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Namespace X10D.Linq
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Namespace X10D.Linq
| 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">
<h1 id="X10D_Linq" data-uid="X10D.Linq" class="text-break">Namespace X10D.Linq
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>
<div class="markdown level0 remarks"></div>
<h3 id="classes">Classes
</h3>
<h5><a class="xref" href="X10D.Linq.ByteExtensions.html">ByteExtensions</a></h5>
<section><p>LINQ-inspired extension methods for <see cref="!:IEnumerable&lt;T>"></see> of <see cref="!:System.Byte"></see>.</p>
</section>
<h5><a class="xref" href="X10D.Linq.DecimalExtensions.html">DecimalExtensions</a></h5>
<section><p>LINQ-inspired extension methods for <see cref="!:IEnumerable&lt;T>"></see> of <see cref="!:System.Decimal"></see>.</p>
</section>
<h5><a class="xref" href="X10D.Linq.DoubleExtensions.html">DoubleExtensions</a></h5>
<section><p>LINQ-inspired extension methods for <see cref="!:IEnumerable&lt;T>"></see> of <see cref="!:System.Double"></see>.</p>
</section>
<h5><a class="xref" href="X10D.Linq.EnumerableExtensions.html">EnumerableExtensions</a></h5>
<section><p>LINQ-inspired extension methods for <see cref="!:IEnumerable&lt;T>"></see>.</p>
</section>
<h5><a class="xref" href="X10D.Linq.Int16Extensions.html">Int16Extensions</a></h5>
<section><p>LINQ-inspired extension methods for <see cref="!:IEnumerable&lt;T>"></see> of <see cref="!:System.Int64"></see>.</p>
</section>
<h5><a class="xref" href="X10D.Linq.Int32Extensions.html">Int32Extensions</a></h5>
<section><p>LINQ-inspired extension methods for <see cref="!:IEnumerable&lt;T>"></see> of <see cref="!:System.Int32"></see>.</p>
</section>
<h5><a class="xref" href="X10D.Linq.Int64Extensions.html">Int64Extensions</a></h5>
<section><p>LINQ-inspired extension methods for <see cref="!:IEnumerable&lt;T>"></see> of <see cref="!:System.Int64"></see>.</p>
</section>
<h5><a class="xref" href="X10D.Linq.ReadOnlySpanExtensions.html">ReadOnlySpanExtensions</a></h5>
<section><p>Extension methods for <see cref="!:ReadOnlySpan&lt;T>"></see>.</p>
</section>
<h5><a class="xref" href="X10D.Linq.SingleExtensions.html">SingleExtensions</a></h5>
<section><p>LINQ-inspired extension methods for <see cref="!:IEnumerable&lt;T>"></see> of <see cref="!:System.Single"></see>.</p>
</section>
<h5><a class="xref" href="X10D.Linq.SpanExtensions.html">SpanExtensions</a></h5>
<section><p>Extension methods for <see cref="!:Span&lt;T>"></see>.</p>
</section>
</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>

View File

@ -0,0 +1,734 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class BigIntegerExtensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class BigIntegerExtensions
| 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.Math.BigIntegerExtensions">
<h1 id="X10D_Math_BigIntegerExtensions" data-uid="X10D.Math.BigIntegerExtensions" class="text-break">Class BigIntegerExtensions
</h1>
<div class="markdown level0 summary"><p>Math-related extension methods for <see cref="!:BigInteger"></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">BigIntegerExtensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.Math.html">X10D.Math</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_Math_BigIntegerExtensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class BigIntegerExtensions : 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_Math_BigIntegerExtensions_CountDigits_BigInteger_.md&amp;value=---%0Auid%3A%20X10D.Math.BigIntegerExtensions.CountDigits(BigInteger)%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/Math/BigIntegerExtensions.cs/#L18">View Source</a>
</span>
<a id="X10D_Math_BigIntegerExtensions_CountDigits_" data-uid="X10D.Math.BigIntegerExtensions.CountDigits*"></a>
<h4 id="X10D_Math_BigIntegerExtensions_CountDigits_BigInteger_" data-uid="X10D.Math.BigIntegerExtensions.CountDigits(BigInteger)">CountDigits(BigInteger)</h4>
<div class="markdown level1 summary"><p>Returns the number of digits in the current integer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static int CountDigits(this BigInteger value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">BigInteger</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose digit count to compute.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>The number of digits in <code data-dev-comment-type="paramref" class="paramref">value</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_Math_BigIntegerExtensions_DigitalRoot_BigInteger_.md&amp;value=---%0Auid%3A%20X10D.Math.BigIntegerExtensions.DigitalRoot(BigInteger)%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/Math/BigIntegerExtensions.cs/#L38">View Source</a>
</span>
<a id="X10D_Math_BigIntegerExtensions_DigitalRoot_" data-uid="X10D.Math.BigIntegerExtensions.DigitalRoot*"></a>
<h4 id="X10D_Math_BigIntegerExtensions_DigitalRoot_BigInteger_" data-uid="X10D.Math.BigIntegerExtensions.DigitalRoot(BigInteger)">DigitalRoot(BigInteger)</h4>
<div class="markdown level1 summary"><p>Computes the digital root of this 8-bit integer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static int DigitalRoot(this BigInteger value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">BigInteger</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose digital root to compute.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>The digital root of <code data-dev-comment-type="paramref" class="paramref">value</code>.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="X10D_Math_BigIntegerExtensions_DigitalRoot_BigInteger__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The digital root is defined as the recursive sum of digits until that result is a single digit.</p>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Math_BigIntegerExtensions_Factorial_BigInteger_.md&amp;value=---%0Auid%3A%20X10D.Math.BigIntegerExtensions.Factorial(BigInteger)%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/Math/BigIntegerExtensions.cs/#L52">View Source</a>
</span>
<a id="X10D_Math_BigIntegerExtensions_Factorial_" data-uid="X10D.Math.BigIntegerExtensions.Factorial*"></a>
<h4 id="X10D_Math_BigIntegerExtensions_Factorial_BigInteger_" data-uid="X10D.Math.BigIntegerExtensions.Factorial(BigInteger)">Factorial(BigInteger)</h4>
<div class="markdown level1 summary"><p>Returns the factorial of the current 64-bit signed integer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static BigInteger Factorial(this BigInteger value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">BigInteger</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose factorial to compute.</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">BigInteger</span></td>
<td><p>The factorial of <code data-dev-comment-type="paramref" class="paramref">value</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_Math_BigIntegerExtensions_GreatestCommonFactor_BigInteger_BigInteger_.md&amp;value=---%0Auid%3A%20X10D.Math.BigIntegerExtensions.GreatestCommonFactor(BigInteger%2CBigInteger)%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/Math/BigIntegerExtensions.cs/#L81">View Source</a>
</span>
<a id="X10D_Math_BigIntegerExtensions_GreatestCommonFactor_" data-uid="X10D.Math.BigIntegerExtensions.GreatestCommonFactor*"></a>
<h4 id="X10D_Math_BigIntegerExtensions_GreatestCommonFactor_BigInteger_BigInteger_" data-uid="X10D.Math.BigIntegerExtensions.GreatestCommonFactor(BigInteger,BigInteger)">GreatestCommonFactor(BigInteger, BigInteger)</h4>
<div class="markdown level1 summary"><p>Calculates the greatest common factor between this, and another, <see cref="!:BigInteger"></see>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static BigInteger GreatestCommonFactor(this BigInteger value, BigInteger other)</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">BigInteger</span></td>
<td><span class="parametername">value</span></td>
<td><p>The first value.</p>
</td>
</tr>
<tr>
<td><span class="xref">BigInteger</span></td>
<td><span class="parametername">other</span></td>
<td><p>The second value.</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">BigInteger</span></td>
<td><p>The greatest common factor between <code data-dev-comment-type="paramref" class="paramref">value</code> and <code data-dev-comment-type="paramref" class="paramref">other</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_Math_BigIntegerExtensions_IsOdd_BigInteger_.md&amp;value=---%0Auid%3A%20X10D.Math.BigIntegerExtensions.IsOdd(BigInteger)%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/Math/BigIntegerExtensions.cs/#L101">View Source</a>
</span>
<a id="X10D_Math_BigIntegerExtensions_IsOdd_" data-uid="X10D.Math.BigIntegerExtensions.IsOdd*"></a>
<h4 id="X10D_Math_BigIntegerExtensions_IsOdd_BigInteger_" data-uid="X10D.Math.BigIntegerExtensions.IsOdd(BigInteger)">IsOdd(BigInteger)</h4>
<div class="markdown level1 summary"><p>Returns a value indicating whether the current value is not evenly divisible by 2.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool IsOdd(this BigInteger value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">BigInteger</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose parity to check.</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><span class="xref">true</span> if <code data-dev-comment-type="paramref" class="paramref">value</code> is not evenly divisible by 2, or <span class="xref">false</span>
otherwise.</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_Math_BigIntegerExtensions_IsPrime_BigInteger_.md&amp;value=---%0Auid%3A%20X10D.Math.BigIntegerExtensions.IsPrime(BigInteger)%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/Math/BigIntegerExtensions.cs/#L115">View Source</a>
</span>
<a id="X10D_Math_BigIntegerExtensions_IsPrime_" data-uid="X10D.Math.BigIntegerExtensions.IsPrime*"></a>
<h4 id="X10D_Math_BigIntegerExtensions_IsPrime_BigInteger_" data-uid="X10D.Math.BigIntegerExtensions.IsPrime(BigInteger)">IsPrime(BigInteger)</h4>
<div class="markdown level1 summary"><p>Returns a value indicating whether the current value is a prime number.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool IsPrime(this BigInteger value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">BigInteger</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose primality to check.</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><span class="xref">true</span> if <code data-dev-comment-type="paramref" class="paramref">value</code> is prime; otherwise, <span class="xref">false</span>.</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_Math_BigIntegerExtensions_LowestCommonMultiple_BigInteger_BigInteger_.md&amp;value=---%0Auid%3A%20X10D.Math.BigIntegerExtensions.LowestCommonMultiple(BigInteger%2CBigInteger)%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/Math/BigIntegerExtensions.cs/#L151">View Source</a>
</span>
<a id="X10D_Math_BigIntegerExtensions_LowestCommonMultiple_" data-uid="X10D.Math.BigIntegerExtensions.LowestCommonMultiple*"></a>
<h4 id="X10D_Math_BigIntegerExtensions_LowestCommonMultiple_BigInteger_BigInteger_" data-uid="X10D.Math.BigIntegerExtensions.LowestCommonMultiple(BigInteger,BigInteger)">LowestCommonMultiple(BigInteger, BigInteger)</h4>
<div class="markdown level1 summary"><p>Calculates the lowest common multiple between the current 64-bit signed integer, and another 64-bit signed integer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static BigInteger LowestCommonMultiple(this BigInteger value, BigInteger other)</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">BigInteger</span></td>
<td><span class="parametername">value</span></td>
<td><p>The first value.</p>
</td>
</tr>
<tr>
<td><span class="xref">BigInteger</span></td>
<td><span class="parametername">other</span></td>
<td><p>The second value.</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">BigInteger</span></td>
<td><p>The lowest common multiple between <code data-dev-comment-type="paramref" class="paramref">value</code> and <code data-dev-comment-type="paramref" class="paramref">other</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_Math_BigIntegerExtensions_Mod_BigInteger_BigInteger_.md&amp;value=---%0Auid%3A%20X10D.Math.BigIntegerExtensions.Mod(BigInteger%2CBigInteger)%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/Math/BigIntegerExtensions.cs/#L187">View Source</a>
</span>
<a id="X10D_Math_BigIntegerExtensions_Mod_" data-uid="X10D.Math.BigIntegerExtensions.Mod*"></a>
<h4 id="X10D_Math_BigIntegerExtensions_Mod_BigInteger_BigInteger_" data-uid="X10D.Math.BigIntegerExtensions.Mod(BigInteger,BigInteger)">Mod(BigInteger, BigInteger)</h4>
<div class="markdown level1 summary"><p>Performs a modulo operation which supports a negative dividend.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static BigInteger Mod(this BigInteger dividend, BigInteger divisor)</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">BigInteger</span></td>
<td><span class="parametername">dividend</span></td>
<td><p>The dividend.</p>
</td>
</tr>
<tr>
<td><span class="xref">BigInteger</span></td>
<td><span class="parametername">divisor</span></td>
<td><p>The divisor.</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">BigInteger</span></td>
<td><p>The result of <code>dividend mod divisor</code>.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="X10D_Math_BigIntegerExtensions_Mod_BigInteger_BigInteger__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The <code>%</code> operator (commonly called the modulo operator) in C# is not defined to be modulo, but is instead
remainder. This quirk inherently makes it difficult to use modulo in a negative context, as <code>x % y</code> where x is
negative will return a negative value, akin to <code>-(x % y)</code>, even if precedence is forced. This method provides a
modulo operation which supports negative dividends.</p>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Math_BigIntegerExtensions_MultiplicativePersistence_BigInteger_.md&amp;value=---%0Auid%3A%20X10D.Math.BigIntegerExtensions.MultiplicativePersistence(BigInteger)%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/Math/BigIntegerExtensions.cs/#L203">View Source</a>
</span>
<a id="X10D_Math_BigIntegerExtensions_MultiplicativePersistence_" data-uid="X10D.Math.BigIntegerExtensions.MultiplicativePersistence*"></a>
<h4 id="X10D_Math_BigIntegerExtensions_MultiplicativePersistence_BigInteger_" data-uid="X10D.Math.BigIntegerExtensions.MultiplicativePersistence(BigInteger)">MultiplicativePersistence(BigInteger)</h4>
<div class="markdown level1 summary"><p>Returns the multiplicative persistence of 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 int MultiplicativePersistence(this BigInteger value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">BigInteger</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose multiplicative persistence to calculate.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>The multiplicative persistence.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="X10D_Math_BigIntegerExtensions_MultiplicativePersistence_BigInteger__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Multiplicative persistence is defined as the recursive digital product until that product is a single digit.</p>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Math_BigIntegerExtensions_Wrap_BigInteger_BigInteger_.md&amp;value=---%0Auid%3A%20X10D.Math.BigIntegerExtensions.Wrap(BigInteger%2CBigInteger)%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/Math/BigIntegerExtensions.cs/#L262">View Source</a>
</span>
<a id="X10D_Math_BigIntegerExtensions_Wrap_" data-uid="X10D.Math.BigIntegerExtensions.Wrap*"></a>
<h4 id="X10D_Math_BigIntegerExtensions_Wrap_BigInteger_BigInteger_" data-uid="X10D.Math.BigIntegerExtensions.Wrap(BigInteger,BigInteger)">Wrap(BigInteger, BigInteger)</h4>
<div class="markdown level1 summary"><p>Wraps the current integer between 0 and a high 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 BigInteger Wrap(this BigInteger value, BigInteger length)</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">BigInteger</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to wrap.</p>
</td>
</tr>
<tr>
<td><span class="xref">BigInteger</span></td>
<td><span class="parametername">length</span></td>
<td><p>The exclusive upper bound.</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">BigInteger</span></td>
<td><p>The wrapped value.</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_Math_BigIntegerExtensions_Wrap_BigInteger_BigInteger_BigInteger_.md&amp;value=---%0Auid%3A%20X10D.Math.BigIntegerExtensions.Wrap(BigInteger%2CBigInteger%2CBigInteger)%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/Math/BigIntegerExtensions.cs/#L248">View Source</a>
</span>
<a id="X10D_Math_BigIntegerExtensions_Wrap_" data-uid="X10D.Math.BigIntegerExtensions.Wrap*"></a>
<h4 id="X10D_Math_BigIntegerExtensions_Wrap_BigInteger_BigInteger_BigInteger_" data-uid="X10D.Math.BigIntegerExtensions.Wrap(BigInteger,BigInteger,BigInteger)">Wrap(BigInteger, BigInteger, BigInteger)</h4>
<div class="markdown level1 summary"><p>Wraps the current integer between a low and a high 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 BigInteger Wrap(this BigInteger value, BigInteger low, BigInteger high)</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">BigInteger</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to wrap.</p>
</td>
</tr>
<tr>
<td><span class="xref">BigInteger</span></td>
<td><span class="parametername">low</span></td>
<td><p>The inclusive lower bound.</p>
</td>
</tr>
<tr>
<td><span class="xref">BigInteger</span></td>
<td><span class="parametername">high</span></td>
<td><p>The exclusive upper bound.</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">BigInteger</span></td>
<td><p>The wrapped value.</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>

View File

@ -0,0 +1,723 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class ByteExtensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class ByteExtensions
| 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.Math.ByteExtensions">
<h1 id="X10D_Math_ByteExtensions" data-uid="X10D.Math.ByteExtensions" class="text-break">Class ByteExtensions
</h1>
<div class="markdown level0 summary"><p>Math-related extension methods for <see cref="!:System.Byte"></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">ByteExtensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.Math.html">X10D.Math</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_Math_ByteExtensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class ByteExtensions : 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_Math_ByteExtensions_CountDigits_System_Byte_.md&amp;value=---%0Auid%3A%20X10D.Math.ByteExtensions.CountDigits(System.Byte)%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/Math/ByteExtensions.cs/#L17">View Source</a>
</span>
<a id="X10D_Math_ByteExtensions_CountDigits_" data-uid="X10D.Math.ByteExtensions.CountDigits*"></a>
<h4 id="X10D_Math_ByteExtensions_CountDigits_System_Byte_" data-uid="X10D.Math.ByteExtensions.CountDigits(System.Byte)">CountDigits(Byte)</h4>
<div class="markdown level1 summary"><p>Returns the number of digits in the current 8-bit unsigned integer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static int CountDigits(this byte value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Byte</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose digit count to compute.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>The number of digits in <code data-dev-comment-type="paramref" class="paramref">value</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_Math_ByteExtensions_DigitalRoot_System_Byte_.md&amp;value=---%0Auid%3A%20X10D.Math.ByteExtensions.DigitalRoot(System.Byte)%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/Math/ByteExtensions.cs/#L37">View Source</a>
</span>
<a id="X10D_Math_ByteExtensions_DigitalRoot_" data-uid="X10D.Math.ByteExtensions.DigitalRoot*"></a>
<h4 id="X10D_Math_ByteExtensions_DigitalRoot_System_Byte_" data-uid="X10D.Math.ByteExtensions.DigitalRoot(System.Byte)">DigitalRoot(Byte)</h4>
<div class="markdown level1 summary"><p>Computes the digital root of this 8-bit integer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static byte DigitalRoot(this byte value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Byte</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose digital root to compute.</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.Byte</span></td>
<td><p>The digital root of <code data-dev-comment-type="paramref" class="paramref">value</code>.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="X10D_Math_ByteExtensions_DigitalRoot_System_Byte__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The digital root is defined as the recursive sum of digits until that result is a single digit.</p>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Math_ByteExtensions_Factorial_System_Byte_.md&amp;value=---%0Auid%3A%20X10D.Math.ByteExtensions.Factorial(System.Byte)%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/Math/ByteExtensions.cs/#L50">View Source</a>
</span>
<a id="X10D_Math_ByteExtensions_Factorial_" data-uid="X10D.Math.ByteExtensions.Factorial*"></a>
<h4 id="X10D_Math_ByteExtensions_Factorial_System_Byte_" data-uid="X10D.Math.ByteExtensions.Factorial(System.Byte)">Factorial(Byte)</h4>
<div class="markdown level1 summary"><p>Returns the factorial of the current 8-bit unsigned integer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static long Factorial(this byte value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Byte</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose factorial to compute.</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.Int64</span></td>
<td><p>The factorial of <code data-dev-comment-type="paramref" class="paramref">value</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_Math_ByteExtensions_GreatestCommonFactor_System_Byte_System_Byte_.md&amp;value=---%0Auid%3A%20X10D.Math.ByteExtensions.GreatestCommonFactor(System.Byte%2CSystem.Byte)%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/Math/ByteExtensions.cs/#L74">View Source</a>
</span>
<a id="X10D_Math_ByteExtensions_GreatestCommonFactor_" data-uid="X10D.Math.ByteExtensions.GreatestCommonFactor*"></a>
<h4 id="X10D_Math_ByteExtensions_GreatestCommonFactor_System_Byte_System_Byte_" data-uid="X10D.Math.ByteExtensions.GreatestCommonFactor(System.Byte,System.Byte)">GreatestCommonFactor(Byte, Byte)</h4>
<div class="markdown level1 summary"><p>Calculates the greatest common factor between the current 8-bit unsigned integer, and another 8-bit unsigned integer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static byte GreatestCommonFactor(this byte value, byte other)</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.Byte</span></td>
<td><span class="parametername">value</span></td>
<td><p>The first value.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Byte</span></td>
<td><span class="parametername">other</span></td>
<td><p>The second value.</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.Byte</span></td>
<td><p>The greatest common factor between <code data-dev-comment-type="paramref" class="paramref">value</code> and <code data-dev-comment-type="paramref" class="paramref">other</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_Math_ByteExtensions_IsEven_System_Byte_.md&amp;value=---%0Auid%3A%20X10D.Math.ByteExtensions.IsEven(System.Byte)%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/Math/ByteExtensions.cs/#L89">View Source</a>
</span>
<a id="X10D_Math_ByteExtensions_IsEven_" data-uid="X10D.Math.ByteExtensions.IsEven*"></a>
<h4 id="X10D_Math_ByteExtensions_IsEven_System_Byte_" data-uid="X10D.Math.ByteExtensions.IsEven(System.Byte)">IsEven(Byte)</h4>
<div class="markdown level1 summary"><p>Returns a value indicating whether the current value is evenly divisible by 2.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool IsEven(this byte value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Byte</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose parity to check.</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><span class="xref">true</span> if <code data-dev-comment-type="paramref" class="paramref">value</code> is evenly divisible by 2, or <span class="xref">false</span>
otherwise.</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_Math_ByteExtensions_IsOdd_System_Byte_.md&amp;value=---%0Auid%3A%20X10D.Math.ByteExtensions.IsOdd(System.Byte)%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/Math/ByteExtensions.cs/#L104">View Source</a>
</span>
<a id="X10D_Math_ByteExtensions_IsOdd_" data-uid="X10D.Math.ByteExtensions.IsOdd*"></a>
<h4 id="X10D_Math_ByteExtensions_IsOdd_System_Byte_" data-uid="X10D.Math.ByteExtensions.IsOdd(System.Byte)">IsOdd(Byte)</h4>
<div class="markdown level1 summary"><p>Returns a value indicating whether the current value is not evenly divisible by 2.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool IsOdd(this byte value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Byte</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose parity to check.</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><span class="xref">true</span> if <code data-dev-comment-type="paramref" class="paramref">value</code> is not evenly divisible by 2, or <span class="xref">false</span>
otherwise.</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_Math_ByteExtensions_IsPrime_System_Byte_.md&amp;value=---%0Auid%3A%20X10D.Math.ByteExtensions.IsPrime(System.Byte)%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/Math/ByteExtensions.cs/#L118">View Source</a>
</span>
<a id="X10D_Math_ByteExtensions_IsPrime_" data-uid="X10D.Math.ByteExtensions.IsPrime*"></a>
<h4 id="X10D_Math_ByteExtensions_IsPrime_System_Byte_" data-uid="X10D.Math.ByteExtensions.IsPrime(System.Byte)">IsPrime(Byte)</h4>
<div class="markdown level1 summary"><p>Returns a value indicating whether the current value is a prime number.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool IsPrime(this byte value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Byte</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose primality to check.</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><span class="xref">true</span> if <code data-dev-comment-type="paramref" class="paramref">value</code> is prime; otherwise, <span class="xref">false</span>.</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_Math_ByteExtensions_LowestCommonMultiple_System_Byte_System_Byte_.md&amp;value=---%0Auid%3A%20X10D.Math.ByteExtensions.LowestCommonMultiple(System.Byte%2CSystem.Byte)%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/Math/ByteExtensions.cs/#L130">View Source</a>
</span>
<a id="X10D_Math_ByteExtensions_LowestCommonMultiple_" data-uid="X10D.Math.ByteExtensions.LowestCommonMultiple*"></a>
<h4 id="X10D_Math_ByteExtensions_LowestCommonMultiple_System_Byte_System_Byte_" data-uid="X10D.Math.ByteExtensions.LowestCommonMultiple(System.Byte,System.Byte)">LowestCommonMultiple(Byte, Byte)</h4>
<div class="markdown level1 summary"><p>Calculates the lowest common multiple between the current 8-bit signed integer, and another 8-bit signed integer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static byte LowestCommonMultiple(this byte value, byte other)</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.Byte</span></td>
<td><span class="parametername">value</span></td>
<td><p>The first value.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Byte</span></td>
<td><span class="parametername">other</span></td>
<td><p>The second value.</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.Byte</span></td>
<td><p>The lowest common multiple between <code data-dev-comment-type="paramref" class="paramref">value</code> and <code data-dev-comment-type="paramref" class="paramref">other</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_Math_ByteExtensions_MultiplicativePersistence_System_Byte_.md&amp;value=---%0Auid%3A%20X10D.Math.ByteExtensions.MultiplicativePersistence(System.Byte)%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/Math/ByteExtensions.cs/#L145">View Source</a>
</span>
<a id="X10D_Math_ByteExtensions_MultiplicativePersistence_" data-uid="X10D.Math.ByteExtensions.MultiplicativePersistence*"></a>
<h4 id="X10D_Math_ByteExtensions_MultiplicativePersistence_System_Byte_" data-uid="X10D.Math.ByteExtensions.MultiplicativePersistence(System.Byte)">MultiplicativePersistence(Byte)</h4>
<div class="markdown level1 summary"><p>Returns the multiplicative persistence of 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 int MultiplicativePersistence(this byte value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Byte</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose multiplicative persistence to calculate.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>The multiplicative persistence.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="X10D_Math_ByteExtensions_MultiplicativePersistence_System_Byte__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Multiplicative persistence is defined as the recursive digital product until that product is a single digit.</p>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Math_ByteExtensions_Wrap_System_Byte_System_Byte_.md&amp;value=---%0Auid%3A%20X10D.Math.ByteExtensions.Wrap(System.Byte%2CSystem.Byte)%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/Math/ByteExtensions.cs/#L172">View Source</a>
</span>
<a id="X10D_Math_ByteExtensions_Wrap_" data-uid="X10D.Math.ByteExtensions.Wrap*"></a>
<h4 id="X10D_Math_ByteExtensions_Wrap_System_Byte_System_Byte_" data-uid="X10D.Math.ByteExtensions.Wrap(System.Byte,System.Byte)">Wrap(Byte, Byte)</h4>
<div class="markdown level1 summary"><p>Wraps the current 8-bit unsigned integer between 0 and a high 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 byte Wrap(this byte value, byte length)</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.Byte</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to wrap.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Byte</span></td>
<td><span class="parametername">length</span></td>
<td><p>The exclusive upper bound.</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.Byte</span></td>
<td><p>The wrapped value.</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_Math_ByteExtensions_Wrap_System_Byte_System_Byte_System_Byte_.md&amp;value=---%0Auid%3A%20X10D.Math.ByteExtensions.Wrap(System.Byte%2CSystem.Byte%2CSystem.Byte)%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/Math/ByteExtensions.cs/#L159">View Source</a>
</span>
<a id="X10D_Math_ByteExtensions_Wrap_" data-uid="X10D.Math.ByteExtensions.Wrap*"></a>
<h4 id="X10D_Math_ByteExtensions_Wrap_System_Byte_System_Byte_System_Byte_" data-uid="X10D.Math.ByteExtensions.Wrap(System.Byte,System.Byte,System.Byte)">Wrap(Byte, Byte, Byte)</h4>
<div class="markdown level1 summary"><p>Wraps the current 8-bit unsigned integer between a low and a high 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 byte Wrap(this byte value, byte low, byte high)</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.Byte</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to wrap.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Byte</span></td>
<td><span class="parametername">low</span></td>
<td><p>The inclusive lower bound.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Byte</span></td>
<td><span class="parametername">high</span></td>
<td><p>The exclusive upper bound.</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.Byte</span></td>
<td><p>The wrapped value.</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>

View File

@ -0,0 +1,855 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class ComparableExtensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class ComparableExtensions
| 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.Math.ComparableExtensions">
<h1 id="X10D_Math_ComparableExtensions" data-uid="X10D.Math.ComparableExtensions" class="text-break">Class ComparableExtensions
</h1>
<div class="markdown level0 summary"><p>Extension methods for <see cref="!:IComparable&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">ComparableExtensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.Math.html">X10D.Math</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_Math_ComparableExtensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class ComparableExtensions : 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_Math_ComparableExtensions_Between__3___0___1___2_X10D_Math_InclusiveOptions_.md&amp;value=---%0Auid%3A%20X10D.Math.ComparableExtensions.Between%60%603(%60%600%2C%60%601%2C%60%602%2CX10D.Math.InclusiveOptions)%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/Math/ComparableExtensions.cs/#L51">View Source</a>
</span>
<a id="X10D_Math_ComparableExtensions_Between_" data-uid="X10D.Math.ComparableExtensions.Between*"></a>
<h4 id="X10D_Math_ComparableExtensions_Between__3___0___1___2_X10D_Math_InclusiveOptions_" data-uid="X10D.Math.ComparableExtensions.Between``3(``0,``1,``2,X10D.Math.InclusiveOptions)">Between&lt;T1, T2, T3&gt;(T1, T2, T3, InclusiveOptions)</h4>
<div class="markdown level1 summary"><p>Determines if a specified value falls exclusively between a specified lower bound and upper bound.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool Between&lt;T1, T2, T3&gt;(this T1 value, T2 lower, T3 upper, InclusiveOptions inclusiveOptions = default(InclusiveOptions))
where T1 : IComparable&lt;T2&gt;, IComparable&lt;T3&gt; where T2 : IComparable&lt;T3&gt; where T3 : IComparable&lt;T2&gt;</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">T1</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to compare.</p>
</td>
</tr>
<tr>
<td><span class="xref">T2</span></td>
<td><span class="parametername">lower</span></td>
<td><p>The exclusive lower bound.</p>
</td>
</tr>
<tr>
<td><span class="xref">T3</span></td>
<td><span class="parametername">upper</span></td>
<td><p>The exclusive upper bound.</p>
</td>
</tr>
<tr>
<td><a class="xref" href="X10D.Math.InclusiveOptions.html">InclusiveOptions</a></td>
<td><span class="parametername">inclusiveOptions</span></td>
<td><p>The comparison clusivity.</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><span class="xref">true</span> if <code data-dev-comment-type="paramref" class="paramref">value</code> is between the <code data-dev-comment-type="paramref" class="paramref">lower</code> and
<code data-dev-comment-type="paramref" class="paramref">upper</code>
-or-
<span class="xref">false</span> otherwise.</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">T1</span></td>
<td><p>An <see cref="!:IComparable&lt;T2>"></see> type.</p>
</td>
</tr>
<tr>
<td><span class="parametername">T2</span></td>
<td><p>The first comparison operand type.</p>
</td>
</tr>
<tr>
<td><span class="parametername">T3</span></td>
<td><p>The second comparison operand type.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="X10D_Math_ComparableExtensions_Between__3___0___1___2_X10D_Math_InclusiveOptions__examples">Examples</h5>
<pre><code>int firstValue = 42;
int secondValue = 15;
int lower = 0;
int upper = 20;
Console.WriteLine($&quot;{firstValue} between {lower} and {upper}?&quot;);
Console.WriteLine(firstValue.Between(lower, upper));
Console.WriteLine($&quot;{secondValue} between {lower} and {upper}?&quot;);
Console.WriteLine(secondValue.Between(lower, upper));
// This will output the following:
// 42 between 0 and 20?
// False
// 15 between 0 and 20?
// True</code></pre>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Math_ComparableExtensions_Clamp__1___0___0___0_.md&amp;value=---%0Auid%3A%20X10D.Math.ComparableExtensions.Clamp%60%601(%60%600%2C%60%600%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/Math/ComparableExtensions.cs/#L112">View Source</a>
</span>
<a id="X10D_Math_ComparableExtensions_Clamp_" data-uid="X10D.Math.ComparableExtensions.Clamp*"></a>
<h4 id="X10D_Math_ComparableExtensions_Clamp__1___0___0___0_" data-uid="X10D.Math.ComparableExtensions.Clamp``1(``0,``0,``0)">Clamp&lt;T&gt;(T, T, T)</h4>
<div class="markdown level1 summary"><p>Returns the current value clamped to the inclusive range of <code data-dev-comment-type="paramref" class="paramref">lower</code> and <code data-dev-comment-type="paramref" class="paramref">upper</code>.</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 Clamp&lt;T&gt;(this T value, T lower, T upper)
where T : IComparable&lt;T&gt;</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to be clamped.</p>
</td>
</tr>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">lower</span></td>
<td><p>The lower bound of the result.</p>
</td>
</tr>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">upper</span></td>
<td><p>The upper bound of the result.</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">T</span></td>
<td><p><code data-dev-comment-type="paramref" class="paramref">value</code> if <code data-dev-comment-type="paramref" class="paramref">lower</code><code data-dev-comment-type="paramref" class="paramref">value</code><code data-dev-comment-type="paramref" class="paramref">upper</code>.
-or-
<code data-dev-comment-type="paramref" class="paramref">lower</code> if <code data-dev-comment-type="paramref" class="paramref">value</code> &lt; <code data-dev-comment-type="paramref" class="paramref">lower</code>.
-or-
<code data-dev-comment-type="paramref" class="paramref">upper</code> if <code data-dev-comment-type="paramref" class="paramref">upper</code> &lt; <code data-dev-comment-type="paramref" class="paramref">value</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>An <see cref="!:IComparable"></see> type.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="X10D_Math_ComparableExtensions_Clamp__1___0___0___0__examples">Examples</h5>
<pre><code>int value = 42;
int lower = 0;
int upper = 20;
int clamped = value.Clamp(lower, upper);
// clamped will be 20</code></pre>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Math_ComparableExtensions_GreaterThan__2___0___1_.md&amp;value=---%0Auid%3A%20X10D.Math.ComparableExtensions.GreaterThan%60%602(%60%600%2C%60%601)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Math/ComparableExtensions.cs/#L158">View Source</a>
</span>
<a id="X10D_Math_ComparableExtensions_GreaterThan_" data-uid="X10D.Math.ComparableExtensions.GreaterThan*"></a>
<h4 id="X10D_Math_ComparableExtensions_GreaterThan__2___0___1_" data-uid="X10D.Math.ComparableExtensions.GreaterThan``2(``0,``1)">GreaterThan&lt;T1, T2&gt;(T1, T2)</h4>
<div class="markdown level1 summary"><p>Determines if the current value is greater than another 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 bool GreaterThan&lt;T1, T2&gt;(this T1 value, T2 other)
where T1 : IComparable&lt;T2&gt;</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">T1</span></td>
<td><span class="parametername">value</span></td>
<td><p>The first value.</p>
</td>
</tr>
<tr>
<td><span class="xref">T2</span></td>
<td><span class="parametername">other</span></td>
<td><p>The second value.</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><span class="xref">true</span> if <code data-dev-comment-type="paramref" class="paramref">value</code> is greater than <code data-dev-comment-type="paramref" class="paramref">other</code>
-or-
<span class="xref">false</span> otherwise.</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">T1</span></td>
<td><p>An <see cref="!:IComparable&lt;T2>"></see> type.</p>
</td>
</tr>
<tr>
<td><span class="parametername">T2</span></td>
<td><p>The comparison operand type.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="X10D_Math_ComparableExtensions_GreaterThan__2___0___1__examples">Examples</h5>
<pre><code>int first = 5;
int second = 10;
bool result = first.GreaterThan(second);
// result will be False</code></pre>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Math_ComparableExtensions_GreaterThanOrEqualTo__2___0___1_.md&amp;value=---%0Auid%3A%20X10D.Math.ComparableExtensions.GreaterThanOrEqualTo%60%602(%60%600%2C%60%601)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Math/ComparableExtensions.cs/#L197">View Source</a>
</span>
<a id="X10D_Math_ComparableExtensions_GreaterThanOrEqualTo_" data-uid="X10D.Math.ComparableExtensions.GreaterThanOrEqualTo*"></a>
<h4 id="X10D_Math_ComparableExtensions_GreaterThanOrEqualTo__2___0___1_" data-uid="X10D.Math.ComparableExtensions.GreaterThanOrEqualTo``2(``0,``1)">GreaterThanOrEqualTo&lt;T1, T2&gt;(T1, T2)</h4>
<div class="markdown level1 summary"><p>Determines if the current value is greater than or equal to another 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 bool GreaterThanOrEqualTo&lt;T1, T2&gt;(this T1 value, T2 other)
where T1 : IComparable&lt;T2&gt;</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">T1</span></td>
<td><span class="parametername">value</span></td>
<td><p>The first value.</p>
</td>
</tr>
<tr>
<td><span class="xref">T2</span></td>
<td><span class="parametername">other</span></td>
<td><p>The second value.</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><span class="xref">true</span> if <code data-dev-comment-type="paramref" class="paramref">value</code> is greater than or equal to <code data-dev-comment-type="paramref" class="paramref">other</code>
-or-
<span class="xref">false</span> otherwise.</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">T1</span></td>
<td><p>An <see cref="!:IComparable&lt;T2>"></see> type.</p>
</td>
</tr>
<tr>
<td><span class="parametername">T2</span></td>
<td><p>The comparison operand type.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="X10D_Math_ComparableExtensions_GreaterThanOrEqualTo__2___0___1__examples">Examples</h5>
<pre><code>int first = 5;
int second = 10;
bool result = first.GreaterThanOrEqualTo(second);
// result will be False</code></pre>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Math_ComparableExtensions_LessThan__2___0___1_.md&amp;value=---%0Auid%3A%20X10D.Math.ComparableExtensions.LessThan%60%602(%60%600%2C%60%601)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Math/ComparableExtensions.cs/#L236">View Source</a>
</span>
<a id="X10D_Math_ComparableExtensions_LessThan_" data-uid="X10D.Math.ComparableExtensions.LessThan*"></a>
<h4 id="X10D_Math_ComparableExtensions_LessThan__2___0___1_" data-uid="X10D.Math.ComparableExtensions.LessThan``2(``0,``1)">LessThan&lt;T1, T2&gt;(T1, T2)</h4>
<div class="markdown level1 summary"><p>Determines if the current value is less than another 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 bool LessThan&lt;T1, T2&gt;(this T1 value, T2 other)
where T1 : IComparable&lt;T2&gt;</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">T1</span></td>
<td><span class="parametername">value</span></td>
<td><p>The first value.</p>
</td>
</tr>
<tr>
<td><span class="xref">T2</span></td>
<td><span class="parametername">other</span></td>
<td><p>The second value.</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><span class="xref">true</span> if <code data-dev-comment-type="paramref" class="paramref">value</code> is less than <code data-dev-comment-type="paramref" class="paramref">other</code>
-or-
<span class="xref">false</span> otherwise.</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">T1</span></td>
<td><p>An <see cref="!:IComparable&lt;T2>"></see> type.</p>
</td>
</tr>
<tr>
<td><span class="parametername">T2</span></td>
<td><p>The comparison operand type.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="X10D_Math_ComparableExtensions_LessThan__2___0___1__examples">Examples</h5>
<pre><code>int first = 5;
int second = 10;
bool result = first.LessThan(second);
// result will be True</code></pre>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Math_ComparableExtensions_LessThanOrEqualTo__2___0___1_.md&amp;value=---%0Auid%3A%20X10D.Math.ComparableExtensions.LessThanOrEqualTo%60%602(%60%600%2C%60%601)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Math/ComparableExtensions.cs/#L275">View Source</a>
</span>
<a id="X10D_Math_ComparableExtensions_LessThanOrEqualTo_" data-uid="X10D.Math.ComparableExtensions.LessThanOrEqualTo*"></a>
<h4 id="X10D_Math_ComparableExtensions_LessThanOrEqualTo__2___0___1_" data-uid="X10D.Math.ComparableExtensions.LessThanOrEqualTo``2(``0,``1)">LessThanOrEqualTo&lt;T1, T2&gt;(T1, T2)</h4>
<div class="markdown level1 summary"><p>Determines if the current value is less than or equal to another 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 bool LessThanOrEqualTo&lt;T1, T2&gt;(this T1 value, T2 other)
where T1 : IComparable&lt;T2&gt;</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">T1</span></td>
<td><span class="parametername">value</span></td>
<td><p>The first value.</p>
</td>
</tr>
<tr>
<td><span class="xref">T2</span></td>
<td><span class="parametername">other</span></td>
<td><p>The second value.</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><span class="xref">true</span> if <code data-dev-comment-type="paramref" class="paramref">value</code> is less than or equal to <code data-dev-comment-type="paramref" class="paramref">other</code>
-or-
<span class="xref">false</span> otherwise.</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">T1</span></td>
<td><p>An <see cref="!:IComparable&lt;T2>"></see> type.</p>
</td>
</tr>
<tr>
<td><span class="parametername">T2</span></td>
<td><p>The comparison operand type.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="X10D_Math_ComparableExtensions_LessThanOrEqualTo__2___0___1__examples">Examples</h5>
<pre><code>int first = 5;
int second = 10;
bool result = first.LessThanOrEqualTo(second);
// result will be True</code></pre>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Math_ComparableExtensions_Max__1___0___0_.md&amp;value=---%0Auid%3A%20X10D.Math.ComparableExtensions.Max%60%601(%60%600%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/Math/ComparableExtensions.cs/#L313">View Source</a>
</span>
<a id="X10D_Math_ComparableExtensions_Max_" data-uid="X10D.Math.ComparableExtensions.Max*"></a>
<h4 id="X10D_Math_ComparableExtensions_Max__1___0___0_" data-uid="X10D.Math.ComparableExtensions.Max``1(``0,``0)">Max&lt;T&gt;(T, T)</h4>
<div class="markdown level1 summary"><p>Returns the maximum of two 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 Max&lt;T&gt;(this T value, T other)
where T : IComparable&lt;T&gt;</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">value</span></td>
<td><p>The first value.</p>
</td>
</tr>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">other</span></td>
<td><p>The second value.</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">T</span></td>
<td><p><code data-dev-comment-type="paramref" class="paramref">value</code> if <code data-dev-comment-type="paramref" class="paramref">value</code> is greater than <code data-dev-comment-type="paramref" class="paramref">other</code>
-or-
<code data-dev-comment-type="paramref" class="paramref">other</code> otherwise.</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>A type which implements <see cref="!:IComparable&lt;T>"></see>.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="X10D_Math_ComparableExtensions_Max__1___0___0__examples">Examples</h5>
<pre><code>int first = 5;
int second = 10;
int max = first.Max(second);
// max will be 10</code></pre>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Math_ComparableExtensions_Min__1___0___0_.md&amp;value=---%0Auid%3A%20X10D.Math.ComparableExtensions.Min%60%601(%60%600%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/Math/ComparableExtensions.cs/#L351">View Source</a>
</span>
<a id="X10D_Math_ComparableExtensions_Min_" data-uid="X10D.Math.ComparableExtensions.Min*"></a>
<h4 id="X10D_Math_ComparableExtensions_Min__1___0___0_" data-uid="X10D.Math.ComparableExtensions.Min``1(``0,``0)">Min&lt;T&gt;(T, T)</h4>
<div class="markdown level1 summary"><p>Returns the minimum of two 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 Min&lt;T&gt;(this T value, T other)
where T : IComparable&lt;T&gt;</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">value</span></td>
<td><p>The first value.</p>
</td>
</tr>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">other</span></td>
<td><p>The second value.</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">T</span></td>
<td><p><code data-dev-comment-type="paramref" class="paramref">value</code> if <code data-dev-comment-type="paramref" class="paramref">value</code> is less than <code data-dev-comment-type="paramref" class="paramref">other</code>
-or-
<code data-dev-comment-type="paramref" class="paramref">other</code> otherwise.</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>A type which implements <see cref="!:IComparable&lt;T>"></see>.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="X10D_Math_ComparableExtensions_Min__1___0___0__examples">Examples</h5>
<pre><code>int first = 5;
int second = 10;
int min = first.Min(second);
// min will be 5</code></pre>
</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>

View File

@ -0,0 +1,666 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class DecimalExtensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class DecimalExtensions
| 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.Math.DecimalExtensions">
<h1 id="X10D_Math_DecimalExtensions" data-uid="X10D.Math.DecimalExtensions" class="text-break">Class DecimalExtensions
</h1>
<div class="markdown level0 summary"><p>Extension methods for <see cref="!:System.Decimal"></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">DecimalExtensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.Math.html">X10D.Math</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_Math_DecimalExtensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class DecimalExtensions : 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_Math_DecimalExtensions_ComplexSqrt_System_Decimal_.md&amp;value=---%0Auid%3A%20X10D.Math.DecimalExtensions.ComplexSqrt(System.Decimal)%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/Math/DecimalExtensions.cs/#L18">View Source</a>
</span>
<a id="X10D_Math_DecimalExtensions_ComplexSqrt_" data-uid="X10D.Math.DecimalExtensions.ComplexSqrt*"></a>
<h4 id="X10D_Math_DecimalExtensions_ComplexSqrt_System_Decimal_" data-uid="X10D.Math.DecimalExtensions.ComplexSqrt(System.Decimal)">ComplexSqrt(Decimal)</h4>
<div class="markdown level1 summary"><p>Returns the complex square root of this decimal number.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static Complex ComplexSqrt(this decimal value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Decimal</span></td>
<td><span class="parametername">value</span></td>
<td><p>The number whose square root is to be found.</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">Complex</span></td>
<td><p>The square root of <code data-dev-comment-type="paramref" class="paramref">value</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_Math_DecimalExtensions_IsEven_System_Decimal_.md&amp;value=---%0Auid%3A%20X10D.Math.DecimalExtensions.IsEven(System.Decimal)%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/Math/DecimalExtensions.cs/#L33">View Source</a>
</span>
<a id="X10D_Math_DecimalExtensions_IsEven_" data-uid="X10D.Math.DecimalExtensions.IsEven*"></a>
<h4 id="X10D_Math_DecimalExtensions_IsEven_System_Decimal_" data-uid="X10D.Math.DecimalExtensions.IsEven(System.Decimal)">IsEven(Decimal)</h4>
<div class="markdown level1 summary"><p>Returns a value indicating whether the current value is evenly divisible by 2.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool IsEven(this decimal value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Decimal</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose parity to check.</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><span class="xref">true</span> if <code data-dev-comment-type="paramref" class="paramref">value</code> is evenly divisible by 2, or <span class="xref">false</span>
otherwise.</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_Math_DecimalExtensions_IsOdd_System_Decimal_.md&amp;value=---%0Auid%3A%20X10D.Math.DecimalExtensions.IsOdd(System.Decimal)%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/Math/DecimalExtensions.cs/#L48">View Source</a>
</span>
<a id="X10D_Math_DecimalExtensions_IsOdd_" data-uid="X10D.Math.DecimalExtensions.IsOdd*"></a>
<h4 id="X10D_Math_DecimalExtensions_IsOdd_System_Decimal_" data-uid="X10D.Math.DecimalExtensions.IsOdd(System.Decimal)">IsOdd(Decimal)</h4>
<div class="markdown level1 summary"><p>Returns a value indicating whether the current value is not evenly divisible by 2.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool IsOdd(this decimal value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Decimal</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose parity to check.</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><span class="xref">true</span> if <code data-dev-comment-type="paramref" class="paramref">value</code> is not evenly divisible by 2, or <span class="xref">false</span>
otherwise.</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_Math_DecimalExtensions_Round_System_Decimal_.md&amp;value=---%0Auid%3A%20X10D.Math.DecimalExtensions.Round(System.Decimal)%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/Math/DecimalExtensions.cs/#L60">View Source</a>
</span>
<a id="X10D_Math_DecimalExtensions_Round_" data-uid="X10D.Math.DecimalExtensions.Round*"></a>
<h4 id="X10D_Math_DecimalExtensions_Round_System_Decimal_" data-uid="X10D.Math.DecimalExtensions.Round(System.Decimal)">Round(Decimal)</h4>
<div class="markdown level1 summary"><p>Rounds the current value to the nearest whole number.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static decimal Round(this decimal value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Decimal</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to round.</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.Decimal</span></td>
<td><p><code data-dev-comment-type="paramref" class="paramref">value</code> rounded to the nearest whole number.</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_Math_DecimalExtensions_Round_System_Decimal_System_Decimal_.md&amp;value=---%0Auid%3A%20X10D.Math.DecimalExtensions.Round(System.Decimal%2CSystem.Decimal)%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/Math/DecimalExtensions.cs/#L73">View Source</a>
</span>
<a id="X10D_Math_DecimalExtensions_Round_" data-uid="X10D.Math.DecimalExtensions.Round*"></a>
<h4 id="X10D_Math_DecimalExtensions_Round_System_Decimal_System_Decimal_" data-uid="X10D.Math.DecimalExtensions.Round(System.Decimal,System.Decimal)">Round(Decimal, Decimal)</h4>
<div class="markdown level1 summary"><p>Rounds the current value to the nearest multiple of a specified number.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static decimal Round(this decimal value, decimal nearest)</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.Decimal</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to round.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Decimal</span></td>
<td><span class="parametername">nearest</span></td>
<td><p>The nearest multiple to which <code data-dev-comment-type="paramref" class="paramref">value</code> should be rounded.</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.Decimal</span></td>
<td><p><code data-dev-comment-type="paramref" class="paramref">value</code> rounded to the nearest multiple of <code data-dev-comment-type="paramref" class="paramref">nearest</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_Math_DecimalExtensions_Saturate_System_Decimal_.md&amp;value=---%0Auid%3A%20X10D.Math.DecimalExtensions.Saturate(System.Decimal)%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/Math/DecimalExtensions.cs/#L86">View Source</a>
</span>
<a id="X10D_Math_DecimalExtensions_Saturate_" data-uid="X10D.Math.DecimalExtensions.Saturate*"></a>
<h4 id="X10D_Math_DecimalExtensions_Saturate_System_Decimal_" data-uid="X10D.Math.DecimalExtensions.Saturate(System.Decimal)">Saturate(Decimal)</h4>
<div class="markdown level1 summary"><p>Saturates this decimal number.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static decimal Saturate(this decimal value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Decimal</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to saturate.</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.Decimal</span></td>
<td><p>The saturated value.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="X10D_Math_DecimalExtensions_Saturate_System_Decimal__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method clamps <code data-dev-comment-type="paramref" class="paramref">value</code> between 0 and 1.</p>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Math_DecimalExtensions_Sign_System_Decimal_.md&amp;value=---%0Auid%3A%20X10D.Math.DecimalExtensions.Sign(System.Decimal)%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/Math/DecimalExtensions.cs/#L120">View Source</a>
</span>
<a id="X10D_Math_DecimalExtensions_Sign_" data-uid="X10D.Math.DecimalExtensions.Sign*"></a>
<h4 id="X10D_Math_DecimalExtensions_Sign_System_Decimal_" data-uid="X10D.Math.DecimalExtensions.Sign(System.Decimal)">Sign(Decimal)</h4>
<div class="markdown level1 summary"><p>Returns an integer that indicates the sign of this decimal number.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static int Sign(this decimal value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Decimal</span></td>
<td><span class="parametername">value</span></td>
<td><p>A signed number.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>A number that indicates the sign of <code data-dev-comment-type="paramref" class="paramref">value</code>, as shown in the following table.</p>
<table><thead><tr><th>Return value</th><th>Meaning</th></tr></thead><tbody><tr><td>-1</td><td><code data-dev-comment-type="paramref" class="paramref">value</code> is less than zero.</td></tr><tr><td>0</td><td><code data-dev-comment-type="paramref" class="paramref">value</code> is equal to zero.</td></tr><tr><td>1</td><td><code data-dev-comment-type="paramref" class="paramref">value</code> is greater than zero.</td></tr></tbody></table>
</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_Math_DecimalExtensions_Sqrt_System_Decimal_.md&amp;value=---%0Auid%3A%20X10D.Math.DecimalExtensions.Sqrt(System.Decimal)%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/Math/DecimalExtensions.cs/#L155">View Source</a>
</span>
<a id="X10D_Math_DecimalExtensions_Sqrt_" data-uid="X10D.Math.DecimalExtensions.Sqrt*"></a>
<h4 id="X10D_Math_DecimalExtensions_Sqrt_System_Decimal_" data-uid="X10D.Math.DecimalExtensions.Sqrt(System.Decimal)">Sqrt(Decimal)</h4>
<div class="markdown level1 summary"><p>Returns the square root of this decimal number.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static decimal Sqrt(this decimal value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Decimal</span></td>
<td><span class="parametername">value</span></td>
<td><p>The number whose square root is to be found.</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.Decimal</span></td>
<td><p>One of the values in the following table.</p>
<table><thead><tr><th>Return value</th><th>Meaning</th></tr></thead><tbody><tr><td>The positive square root of <code data-dev-comment-type="paramref" class="paramref">value</code>.</td><td><code data-dev-comment-type="paramref" class="paramref">value</code> is greater than or equal to 0.</td></tr><tr><td><see cref="!:double.NaN"></see></td><td><code data-dev-comment-type="paramref" class="paramref">value</code> is equal to <see cref="!:double.NaN"></see> or is negative.</td></tr><tr><td><see cref="!:double.PositiveInfinity"></see></td><td><code data-dev-comment-type="paramref" class="paramref">value</code> is equal to <see cref="!:double.PositiveInfinity"></see>.</td></tr></tbody></table>
</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_Math_DecimalExtensions_Wrap_System_Decimal_System_Decimal_.md&amp;value=---%0Auid%3A%20X10D.Math.DecimalExtensions.Wrap(System.Decimal%2CSystem.Decimal)%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/Math/DecimalExtensions.cs/#L199">View Source</a>
</span>
<a id="X10D_Math_DecimalExtensions_Wrap_" data-uid="X10D.Math.DecimalExtensions.Wrap*"></a>
<h4 id="X10D_Math_DecimalExtensions_Wrap_System_Decimal_System_Decimal_" data-uid="X10D.Math.DecimalExtensions.Wrap(System.Decimal,System.Decimal)">Wrap(Decimal, Decimal)</h4>
<div class="markdown level1 summary"><p>Wraps the current decimal number between 0 and a high 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 decimal Wrap(this decimal value, decimal length)</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.Decimal</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to wrap.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Decimal</span></td>
<td><span class="parametername">length</span></td>
<td><p>The exclusive upper bound.</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.Decimal</span></td>
<td><p>The wrapped value.</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_Math_DecimalExtensions_Wrap_System_Decimal_System_Decimal_System_Decimal_.md&amp;value=---%0Auid%3A%20X10D.Math.DecimalExtensions.Wrap(System.Decimal%2CSystem.Decimal%2CSystem.Decimal)%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/Math/DecimalExtensions.cs/#L185">View Source</a>
</span>
<a id="X10D_Math_DecimalExtensions_Wrap_" data-uid="X10D.Math.DecimalExtensions.Wrap*"></a>
<h4 id="X10D_Math_DecimalExtensions_Wrap_System_Decimal_System_Decimal_System_Decimal_" data-uid="X10D.Math.DecimalExtensions.Wrap(System.Decimal,System.Decimal,System.Decimal)">Wrap(Decimal, Decimal, Decimal)</h4>
<div class="markdown level1 summary"><p>Wraps the current decimal number between a low and a high 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 decimal Wrap(this decimal value, decimal low, decimal high)</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.Decimal</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to wrap.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Decimal</span></td>
<td><span class="parametername">low</span></td>
<td><p>The inclusive lower bound.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Decimal</span></td>
<td><span class="parametername">high</span></td>
<td><p>The exclusive upper bound.</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.Decimal</span></td>
<td><p>The wrapped value.</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>

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,170 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Enum InclusiveOptions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Enum InclusiveOptions
| 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.Math.InclusiveOptions">
<h1 id="X10D_Math_InclusiveOptions" data-uid="X10D.Math.InclusiveOptions" class="text-break">Enum InclusiveOptions
</h1>
<div class="markdown level0 summary"><p>Provides options for <a class="xref" href="X10D.Math.ComparableExtensions.html#X10D_Math_ComparableExtensions_Between__3___0___1___2_X10D_Math_InclusiveOptions_">Between&lt;T1, T2, T3&gt;(T1, T2, T3, InclusiveOptions)</a> clusivity.</p>
</div>
<div class="markdown level0 conceptual"></div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.Math.html">X10D.Math</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_Math_InclusiveOptions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public enum InclusiveOptions : int</code></pre>
</div>
<h3 id="fields">Fields
</h3>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
<thead>
<tbody>
<tr>
<td id="X10D_Math_InclusiveOptions_Inclusive">Inclusive</td>
<td><p>Indicates that the comparison will treat both the upper and lower bound as exclusive.</p>
</td>
</tr>
<tr>
<td id="X10D_Math_InclusiveOptions_LowerInclusive">LowerInclusive</td>
<td><p>Indicates that the comparison will treat the lower bound as exclusive.</p>
</td>
</tr>
<tr>
<td id="X10D_Math_InclusiveOptions_None">None</td>
<td><p>Indicates that the comparison will be exclusive.</p>
</td>
</tr>
<tr>
<td id="X10D_Math_InclusiveOptions_UpperInclusive">UpperInclusive</td>
<td><p>Indicates that the comparison will treat the upper bound as exclusive.</p>
</td>
</tr>
</tbody>
</thead></thead></table>
<h3 id="extensionmethods">Extension Methods</h3>
<div>
<a class="xref" href="X10D.Core.Extensions.html#X10D_Core_Extensions_AsArrayValue__1___0_">Extensions.AsArrayValue&lt;InclusiveOptions&gt;()</a>
</div>
<div>
<a class="xref" href="X10D.Core.Extensions.html#X10D_Core_Extensions_AsEnumerableValue__1___0_">Extensions.AsEnumerableValue&lt;InclusiveOptions&gt;()</a>
</div>
<div>
<a class="xref" href="X10D.Core.Extensions.html#X10D_Core_Extensions_RepeatValue__1___0_System_Int32_">Extensions.RepeatValue&lt;InclusiveOptions&gt;(Int32)</a>
</div>
</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>

View File

@ -0,0 +1,837 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class Int16Extensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class Int16Extensions
| 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.Math.Int16Extensions">
<h1 id="X10D_Math_Int16Extensions" data-uid="X10D.Math.Int16Extensions" class="text-break">Class Int16Extensions
</h1>
<div class="markdown level0 summary"><p>Extension methods for <see cref="!:System.Int16"></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">Int16Extensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.Math.html">X10D.Math</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_Math_Int16Extensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class Int16Extensions : 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_Math_Int16Extensions_CountDigits_System_Int16_.md&amp;value=---%0Auid%3A%20X10D.Math.Int16Extensions.CountDigits(System.Int16)%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/Math/Int16Extensions.cs/#L17">View Source</a>
</span>
<a id="X10D_Math_Int16Extensions_CountDigits_" data-uid="X10D.Math.Int16Extensions.CountDigits*"></a>
<h4 id="X10D_Math_Int16Extensions_CountDigits_System_Int16_" data-uid="X10D.Math.Int16Extensions.CountDigits(System.Int16)">CountDigits(Int16)</h4>
<div class="markdown level1 summary"><p>Returns the number of digits in the current 16-bit signed integer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static int CountDigits(this short value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int16</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose digit count to compute.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>The number of digits in <code data-dev-comment-type="paramref" class="paramref">value</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_Math_Int16Extensions_DigitalRoot_System_Int16_.md&amp;value=---%0Auid%3A%20X10D.Math.Int16Extensions.DigitalRoot(System.Int16)%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/Math/Int16Extensions.cs/#L36">View Source</a>
</span>
<a id="X10D_Math_Int16Extensions_DigitalRoot_" data-uid="X10D.Math.Int16Extensions.DigitalRoot*"></a>
<h4 id="X10D_Math_Int16Extensions_DigitalRoot_System_Int16_" data-uid="X10D.Math.Int16Extensions.DigitalRoot(System.Int16)">DigitalRoot(Int16)</h4>
<div class="markdown level1 summary"><p>Computes the digital root of this 16-bit integer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static short DigitalRoot(this short value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int16</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose digital root to compute.</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.Int16</span></td>
<td><p>The digital root of <code data-dev-comment-type="paramref" class="paramref">value</code>.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="X10D_Math_Int16Extensions_DigitalRoot_System_Int16__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The digital root is defined as the recursive sum of digits until that result is a single digit.</p>
<p>For example, the digital root of 239 is 5: <code>2 + 3 + 9 = 14</code>, then <code>1 + 4 = 5</code>.</p>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Math_Int16Extensions_Factorial_System_Int16_.md&amp;value=---%0Auid%3A%20X10D.Math.Int16Extensions.Factorial(System.Int16)%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/Math/Int16Extensions.cs/#L50">View Source</a>
</span>
<a id="X10D_Math_Int16Extensions_Factorial_" data-uid="X10D.Math.Int16Extensions.Factorial*"></a>
<h4 id="X10D_Math_Int16Extensions_Factorial_System_Int16_" data-uid="X10D.Math.Int16Extensions.Factorial(System.Int16)">Factorial(Int16)</h4>
<div class="markdown level1 summary"><p>Returns the factorial of the current 16-bit signed integer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static long Factorial(this short value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int16</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose factorial to compute.</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.Int64</span></td>
<td><p>The factorial of <code data-dev-comment-type="paramref" class="paramref">value</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_Math_Int16Extensions_GreatestCommonFactor_System_Int16_System_Int16_.md&amp;value=---%0Auid%3A%20X10D.Math.Int16Extensions.GreatestCommonFactor(System.Int16%2CSystem.Int16)%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/Math/Int16Extensions.cs/#L79">View Source</a>
</span>
<a id="X10D_Math_Int16Extensions_GreatestCommonFactor_" data-uid="X10D.Math.Int16Extensions.GreatestCommonFactor*"></a>
<h4 id="X10D_Math_Int16Extensions_GreatestCommonFactor_System_Int16_System_Int16_" data-uid="X10D.Math.Int16Extensions.GreatestCommonFactor(System.Int16,System.Int16)">GreatestCommonFactor(Int16, Int16)</h4>
<div class="markdown level1 summary"><p>Calculates the greatest common factor between the current 16-bit signed integer, and another 16-bit signed integer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static short GreatestCommonFactor(this short value, short other)</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.Int16</span></td>
<td><span class="parametername">value</span></td>
<td><p>The first value.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int16</span></td>
<td><span class="parametername">other</span></td>
<td><p>The second value.</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.Int16</span></td>
<td><p>The greatest common factor between <code data-dev-comment-type="paramref" class="paramref">value</code> and <code data-dev-comment-type="paramref" class="paramref">other</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_Math_Int16Extensions_IsEven_System_Int16_.md&amp;value=---%0Auid%3A%20X10D.Math.Int16Extensions.IsEven(System.Int16)%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/Math/Int16Extensions.cs/#L94">View Source</a>
</span>
<a id="X10D_Math_Int16Extensions_IsEven_" data-uid="X10D.Math.Int16Extensions.IsEven*"></a>
<h4 id="X10D_Math_Int16Extensions_IsEven_System_Int16_" data-uid="X10D.Math.Int16Extensions.IsEven(System.Int16)">IsEven(Int16)</h4>
<div class="markdown level1 summary"><p>Returns a value indicating whether the current value is evenly divisible by 2.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool IsEven(this short value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int16</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose parity to check.</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><span class="xref">true</span> if <code data-dev-comment-type="paramref" class="paramref">value</code> is evenly divisible by 2, or <span class="xref">false</span>
otherwise.</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_Math_Int16Extensions_IsOdd_System_Int16_.md&amp;value=---%0Auid%3A%20X10D.Math.Int16Extensions.IsOdd(System.Int16)%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/Math/Int16Extensions.cs/#L109">View Source</a>
</span>
<a id="X10D_Math_Int16Extensions_IsOdd_" data-uid="X10D.Math.Int16Extensions.IsOdd*"></a>
<h4 id="X10D_Math_Int16Extensions_IsOdd_System_Int16_" data-uid="X10D.Math.Int16Extensions.IsOdd(System.Int16)">IsOdd(Int16)</h4>
<div class="markdown level1 summary"><p>Returns a value indicating whether the current value is not evenly divisible by 2.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool IsOdd(this short value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int16</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose parity to check.</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><span class="xref">true</span> if <code data-dev-comment-type="paramref" class="paramref">value</code> is not evenly divisible by 2, or <span class="xref">false</span>
otherwise.</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_Math_Int16Extensions_IsPrime_System_Int16_.md&amp;value=---%0Auid%3A%20X10D.Math.Int16Extensions.IsPrime(System.Int16)%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/Math/Int16Extensions.cs/#L123">View Source</a>
</span>
<a id="X10D_Math_Int16Extensions_IsPrime_" data-uid="X10D.Math.Int16Extensions.IsPrime*"></a>
<h4 id="X10D_Math_Int16Extensions_IsPrime_System_Int16_" data-uid="X10D.Math.Int16Extensions.IsPrime(System.Int16)">IsPrime(Int16)</h4>
<div class="markdown level1 summary"><p>Returns a value indicating whether the current value is a prime number.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool IsPrime(this short value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int16</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose primality to check.</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><span class="xref">true</span> if <code data-dev-comment-type="paramref" class="paramref">value</code> is prime; otherwise, <span class="xref">false</span>.</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_Math_Int16Extensions_LowestCommonMultiple_System_Int16_System_Int16_.md&amp;value=---%0Auid%3A%20X10D.Math.Int16Extensions.LowestCommonMultiple(System.Int16%2CSystem.Int16)%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/Math/Int16Extensions.cs/#L136">View Source</a>
</span>
<a id="X10D_Math_Int16Extensions_LowestCommonMultiple_" data-uid="X10D.Math.Int16Extensions.LowestCommonMultiple*"></a>
<h4 id="X10D_Math_Int16Extensions_LowestCommonMultiple_System_Int16_System_Int16_" data-uid="X10D.Math.Int16Extensions.LowestCommonMultiple(System.Int16,System.Int16)">LowestCommonMultiple(Int16, Int16)</h4>
<div class="markdown level1 summary"><p>Calculates the lowest common multiple between the current 16-bit signed integer, and another 16-bit signed integer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static short LowestCommonMultiple(this short value, short other)</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.Int16</span></td>
<td><span class="parametername">value</span></td>
<td><p>The first value.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int16</span></td>
<td><span class="parametername">other</span></td>
<td><p>The second value.</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.Int16</span></td>
<td><p>The lowest common multiple between <code data-dev-comment-type="paramref" class="paramref">value</code> and <code data-dev-comment-type="paramref" class="paramref">other</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_Math_Int16Extensions_Mod_System_Int16_System_Int16_.md&amp;value=---%0Auid%3A%20X10D.Math.Int16Extensions.Mod(System.Int16%2CSystem.Int16)%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/Math/Int16Extensions.cs/#L157">View Source</a>
</span>
<a id="X10D_Math_Int16Extensions_Mod_" data-uid="X10D.Math.Int16Extensions.Mod*"></a>
<h4 id="X10D_Math_Int16Extensions_Mod_System_Int16_System_Int16_" data-uid="X10D.Math.Int16Extensions.Mod(System.Int16,System.Int16)">Mod(Int16, Int16)</h4>
<div class="markdown level1 summary"><p>Performs a modulo operation which supports a negative dividend.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static short Mod(this short dividend, short divisor)</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.Int16</span></td>
<td><span class="parametername">dividend</span></td>
<td><p>The dividend.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int16</span></td>
<td><span class="parametername">divisor</span></td>
<td><p>The divisor.</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.Int16</span></td>
<td><p>The result of <code>dividend mod divisor</code>.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="X10D_Math_Int16Extensions_Mod_System_Int16_System_Int16__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The <code>%</code> operator (commonly called the modulo operator) in C# is not defined to be modulo, but is instead
remainder. This quirk inherently makes it difficult to use modulo in a negative context, as <code>x % y</code> where x is
negative will return a negative value, akin to <code>-(x % y)</code>, even if precedence is forced. This method provides a
modulo operation which supports negative dividends.</p>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Math_Int16Extensions_MultiplicativePersistence_System_Int16_.md&amp;value=---%0Auid%3A%20X10D.Math.Int16Extensions.MultiplicativePersistence(System.Int16)%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/Math/Int16Extensions.cs/#L173">View Source</a>
</span>
<a id="X10D_Math_Int16Extensions_MultiplicativePersistence_" data-uid="X10D.Math.Int16Extensions.MultiplicativePersistence*"></a>
<h4 id="X10D_Math_Int16Extensions_MultiplicativePersistence_System_Int16_" data-uid="X10D.Math.Int16Extensions.MultiplicativePersistence(System.Int16)">MultiplicativePersistence(Int16)</h4>
<div class="markdown level1 summary"><p>Returns the multiplicative persistence of 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 int MultiplicativePersistence(this short value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int16</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose multiplicative persistence to calculate.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>The multiplicative persistence.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="X10D_Math_Int16Extensions_MultiplicativePersistence_System_Int16__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Multiplicative persistence is defined as the recursive digital product until that product is a single digit.</p>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Math_Int16Extensions_Sign_System_Int16_.md&amp;value=---%0Auid%3A%20X10D.Math.Int16Extensions.Sign(System.Int16)%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/Math/Int16Extensions.cs/#L207">View Source</a>
</span>
<a id="X10D_Math_Int16Extensions_Sign_" data-uid="X10D.Math.Int16Extensions.Sign*"></a>
<h4 id="X10D_Math_Int16Extensions_Sign_System_Int16_" data-uid="X10D.Math.Int16Extensions.Sign(System.Int16)">Sign(Int16)</h4>
<div class="markdown level1 summary"><p>Returns an integer that indicates the sign of this 16-bit signed integer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static int Sign(this short value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int16</span></td>
<td><span class="parametername">value</span></td>
<td><p>A signed number.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>A number that indicates the sign of <code data-dev-comment-type="paramref" class="paramref">value</code>, as shown in the following table.</p>
<table><thead><tr><th>Return value</th><th>Meaning</th></tr></thead><tbody><tr><td>-1</td><td><code data-dev-comment-type="paramref" class="paramref">value</code> is less than zero.</td></tr><tr><td>0</td><td><code data-dev-comment-type="paramref" class="paramref">value</code> is equal to zero.</td></tr><tr><td>1</td><td><code data-dev-comment-type="paramref" class="paramref">value</code> is greater than zero.</td></tr></tbody></table>
</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_Math_Int16Extensions_Wrap_System_Int16_System_Int16_.md&amp;value=---%0Auid%3A%20X10D.Math.Int16Extensions.Wrap(System.Int16%2CSystem.Int16)%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/Math/Int16Extensions.cs/#L234">View Source</a>
</span>
<a id="X10D_Math_Int16Extensions_Wrap_" data-uid="X10D.Math.Int16Extensions.Wrap*"></a>
<h4 id="X10D_Math_Int16Extensions_Wrap_System_Int16_System_Int16_" data-uid="X10D.Math.Int16Extensions.Wrap(System.Int16,System.Int16)">Wrap(Int16, Int16)</h4>
<div class="markdown level1 summary"><p>Wraps the current 16-bit signed integer between 0 and a high 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 short Wrap(this short value, short length)</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.Int16</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to wrap.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int16</span></td>
<td><span class="parametername">length</span></td>
<td><p>The exclusive upper bound.</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.Int16</span></td>
<td><p>The wrapped value.</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_Math_Int16Extensions_Wrap_System_Int16_System_Int16_System_Int16_.md&amp;value=---%0Auid%3A%20X10D.Math.Int16Extensions.Wrap(System.Int16%2CSystem.Int16%2CSystem.Int16)%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/Math/Int16Extensions.cs/#L221">View Source</a>
</span>
<a id="X10D_Math_Int16Extensions_Wrap_" data-uid="X10D.Math.Int16Extensions.Wrap*"></a>
<h4 id="X10D_Math_Int16Extensions_Wrap_System_Int16_System_Int16_System_Int16_" data-uid="X10D.Math.Int16Extensions.Wrap(System.Int16,System.Int16,System.Int16)">Wrap(Int16, Int16, Int16)</h4>
<div class="markdown level1 summary"><p>Wraps the current 16-bit signed integer between a low and a high 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 short Wrap(this short value, short low, short high)</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.Int16</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to wrap.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int16</span></td>
<td><span class="parametername">low</span></td>
<td><p>The inclusive lower bound.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int16</span></td>
<td><span class="parametername">high</span></td>
<td><p>The exclusive upper bound.</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.Int16</span></td>
<td><p>The wrapped value.</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>

View File

@ -0,0 +1,837 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class Int32Extensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class Int32Extensions
| 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.Math.Int32Extensions">
<h1 id="X10D_Math_Int32Extensions" data-uid="X10D.Math.Int32Extensions" class="text-break">Class Int32Extensions
</h1>
<div class="markdown level0 summary"><p>Extension methods for <see cref="!:System.Int32"></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">Int32Extensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.Math.html">X10D.Math</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_Math_Int32Extensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class Int32Extensions : 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_Math_Int32Extensions_CountDigits_System_Int32_.md&amp;value=---%0Auid%3A%20X10D.Math.Int32Extensions.CountDigits(System.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Math/Int32Extensions.cs/#L17">View Source</a>
</span>
<a id="X10D_Math_Int32Extensions_CountDigits_" data-uid="X10D.Math.Int32Extensions.CountDigits*"></a>
<h4 id="X10D_Math_Int32Extensions_CountDigits_System_Int32_" data-uid="X10D.Math.Int32Extensions.CountDigits(System.Int32)">CountDigits(Int32)</h4>
<div class="markdown level1 summary"><p>Returns the number of digits in the current 32-bit signed integer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static int CountDigits(this int value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose digit count to compute.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>The number of digits in <code data-dev-comment-type="paramref" class="paramref">value</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_Math_Int32Extensions_DigitalRoot_System_Int32_.md&amp;value=---%0Auid%3A%20X10D.Math.Int32Extensions.DigitalRoot(System.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Math/Int32Extensions.cs/#L36">View Source</a>
</span>
<a id="X10D_Math_Int32Extensions_DigitalRoot_" data-uid="X10D.Math.Int32Extensions.DigitalRoot*"></a>
<h4 id="X10D_Math_Int32Extensions_DigitalRoot_System_Int32_" data-uid="X10D.Math.Int32Extensions.DigitalRoot(System.Int32)">DigitalRoot(Int32)</h4>
<div class="markdown level1 summary"><p>Computes the digital root of this 32-bit integer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static int DigitalRoot(this int value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose digital root to compute.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>The digital root of <code data-dev-comment-type="paramref" class="paramref">value</code>.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="X10D_Math_Int32Extensions_DigitalRoot_System_Int32__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The digital root is defined as the recursive sum of digits until that result is a single digit.</p>
<p>For example, the digital root of 239 is 5: <code>2 + 3 + 9 = 14</code>, then <code>1 + 4 = 5</code>.</p>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Math_Int32Extensions_Factorial_System_Int32_.md&amp;value=---%0Auid%3A%20X10D.Math.Int32Extensions.Factorial(System.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Math/Int32Extensions.cs/#L50">View Source</a>
</span>
<a id="X10D_Math_Int32Extensions_Factorial_" data-uid="X10D.Math.Int32Extensions.Factorial*"></a>
<h4 id="X10D_Math_Int32Extensions_Factorial_System_Int32_" data-uid="X10D.Math.Int32Extensions.Factorial(System.Int32)">Factorial(Int32)</h4>
<div class="markdown level1 summary"><p>Returns the factorial of the current 32-bit signed integer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static long Factorial(this int value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose factorial to compute.</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.Int64</span></td>
<td><p>The factorial of <code data-dev-comment-type="paramref" class="paramref">value</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_Math_Int32Extensions_GreatestCommonFactor_System_Int32_System_Int32_.md&amp;value=---%0Auid%3A%20X10D.Math.Int32Extensions.GreatestCommonFactor(System.Int32%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Math/Int32Extensions.cs/#L79">View Source</a>
</span>
<a id="X10D_Math_Int32Extensions_GreatestCommonFactor_" data-uid="X10D.Math.Int32Extensions.GreatestCommonFactor*"></a>
<h4 id="X10D_Math_Int32Extensions_GreatestCommonFactor_System_Int32_System_Int32_" data-uid="X10D.Math.Int32Extensions.GreatestCommonFactor(System.Int32,System.Int32)">GreatestCommonFactor(Int32, Int32)</h4>
<div class="markdown level1 summary"><p>Calculates the greatest common factor between the current 32-bit signed integer, and another 32-bit signed integer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static int GreatestCommonFactor(this int value, int other)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">value</span></td>
<td><p>The first value.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">other</span></td>
<td><p>The second value.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>The greatest common factor between <code data-dev-comment-type="paramref" class="paramref">value</code> and <code data-dev-comment-type="paramref" class="paramref">other</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_Math_Int32Extensions_IsEven_System_Int32_.md&amp;value=---%0Auid%3A%20X10D.Math.Int32Extensions.IsEven(System.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Math/Int32Extensions.cs/#L94">View Source</a>
</span>
<a id="X10D_Math_Int32Extensions_IsEven_" data-uid="X10D.Math.Int32Extensions.IsEven*"></a>
<h4 id="X10D_Math_Int32Extensions_IsEven_System_Int32_" data-uid="X10D.Math.Int32Extensions.IsEven(System.Int32)">IsEven(Int32)</h4>
<div class="markdown level1 summary"><p>Returns a value indicating whether the current value is evenly divisible by 2.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool IsEven(this int value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose parity to check.</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><span class="xref">true</span> if <code data-dev-comment-type="paramref" class="paramref">value</code> is evenly divisible by 2, or <span class="xref">false</span>
otherwise.</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_Math_Int32Extensions_IsOdd_System_Int32_.md&amp;value=---%0Auid%3A%20X10D.Math.Int32Extensions.IsOdd(System.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Math/Int32Extensions.cs/#L109">View Source</a>
</span>
<a id="X10D_Math_Int32Extensions_IsOdd_" data-uid="X10D.Math.Int32Extensions.IsOdd*"></a>
<h4 id="X10D_Math_Int32Extensions_IsOdd_System_Int32_" data-uid="X10D.Math.Int32Extensions.IsOdd(System.Int32)">IsOdd(Int32)</h4>
<div class="markdown level1 summary"><p>Returns a value indicating whether the current value is not evenly divisible by 2.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool IsOdd(this int value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose parity to check.</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><span class="xref">true</span> if <code data-dev-comment-type="paramref" class="paramref">value</code> is not evenly divisible by 2, or <span class="xref">false</span>
otherwise.</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_Math_Int32Extensions_IsPrime_System_Int32_.md&amp;value=---%0Auid%3A%20X10D.Math.Int32Extensions.IsPrime(System.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Math/Int32Extensions.cs/#L123">View Source</a>
</span>
<a id="X10D_Math_Int32Extensions_IsPrime_" data-uid="X10D.Math.Int32Extensions.IsPrime*"></a>
<h4 id="X10D_Math_Int32Extensions_IsPrime_System_Int32_" data-uid="X10D.Math.Int32Extensions.IsPrime(System.Int32)">IsPrime(Int32)</h4>
<div class="markdown level1 summary"><p>Returns a value indicating whether the current value is a prime number.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool IsPrime(this int value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose primality to check.</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><span class="xref">true</span> if <code data-dev-comment-type="paramref" class="paramref">value</code> is prime; otherwise, <span class="xref">false</span>.</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_Math_Int32Extensions_LowestCommonMultiple_System_Int32_System_Int32_.md&amp;value=---%0Auid%3A%20X10D.Math.Int32Extensions.LowestCommonMultiple(System.Int32%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Math/Int32Extensions.cs/#L136">View Source</a>
</span>
<a id="X10D_Math_Int32Extensions_LowestCommonMultiple_" data-uid="X10D.Math.Int32Extensions.LowestCommonMultiple*"></a>
<h4 id="X10D_Math_Int32Extensions_LowestCommonMultiple_System_Int32_System_Int32_" data-uid="X10D.Math.Int32Extensions.LowestCommonMultiple(System.Int32,System.Int32)">LowestCommonMultiple(Int32, Int32)</h4>
<div class="markdown level1 summary"><p>Calculates the lowest common multiple between the current 32-bit signed integer, and another 32-bit signed integer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static int LowestCommonMultiple(this int value, int other)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">value</span></td>
<td><p>The first value.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">other</span></td>
<td><p>The second value.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>The lowest common multiple between <code data-dev-comment-type="paramref" class="paramref">value</code> and <code data-dev-comment-type="paramref" class="paramref">other</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_Math_Int32Extensions_Mod_System_Int32_System_Int32_.md&amp;value=---%0Auid%3A%20X10D.Math.Int32Extensions.Mod(System.Int32%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Math/Int32Extensions.cs/#L157">View Source</a>
</span>
<a id="X10D_Math_Int32Extensions_Mod_" data-uid="X10D.Math.Int32Extensions.Mod*"></a>
<h4 id="X10D_Math_Int32Extensions_Mod_System_Int32_System_Int32_" data-uid="X10D.Math.Int32Extensions.Mod(System.Int32,System.Int32)">Mod(Int32, Int32)</h4>
<div class="markdown level1 summary"><p>Performs a modulo operation which supports a negative dividend.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static int Mod(this int dividend, int divisor)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">dividend</span></td>
<td><p>The dividend.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">divisor</span></td>
<td><p>The divisor.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>The result of <code>dividend mod divisor</code>.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="X10D_Math_Int32Extensions_Mod_System_Int32_System_Int32__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The <code>%</code> operator (commonly called the modulo operator) in C# is not defined to be modulo, but is instead
remainder. This quirk inherently makes it difficult to use modulo in a negative context, as <code>x % y</code> where x is
negative will return a negative value, akin to <code>-(x % y)</code>, even if precedence is forced. This method provides a
modulo operation which supports negative dividends.</p>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Math_Int32Extensions_MultiplicativePersistence_System_Int32_.md&amp;value=---%0Auid%3A%20X10D.Math.Int32Extensions.MultiplicativePersistence(System.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Math/Int32Extensions.cs/#L173">View Source</a>
</span>
<a id="X10D_Math_Int32Extensions_MultiplicativePersistence_" data-uid="X10D.Math.Int32Extensions.MultiplicativePersistence*"></a>
<h4 id="X10D_Math_Int32Extensions_MultiplicativePersistence_System_Int32_" data-uid="X10D.Math.Int32Extensions.MultiplicativePersistence(System.Int32)">MultiplicativePersistence(Int32)</h4>
<div class="markdown level1 summary"><p>Returns the multiplicative persistence of 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 int MultiplicativePersistence(this int value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose multiplicative persistence to calculate.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>The multiplicative persistence.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="X10D_Math_Int32Extensions_MultiplicativePersistence_System_Int32__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Multiplicative persistence is defined as the recursive digital product until that product is a single digit.</p>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Math_Int32Extensions_Sign_System_Int32_.md&amp;value=---%0Auid%3A%20X10D.Math.Int32Extensions.Sign(System.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Math/Int32Extensions.cs/#L207">View Source</a>
</span>
<a id="X10D_Math_Int32Extensions_Sign_" data-uid="X10D.Math.Int32Extensions.Sign*"></a>
<h4 id="X10D_Math_Int32Extensions_Sign_System_Int32_" data-uid="X10D.Math.Int32Extensions.Sign(System.Int32)">Sign(Int32)</h4>
<div class="markdown level1 summary"><p>Returns an integer that indicates the sign of this 32-bit signed integer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static int Sign(this int value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">value</span></td>
<td><p>A signed number.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>A number that indicates the sign of <code data-dev-comment-type="paramref" class="paramref">value</code>, as shown in the following table.</p>
<table><thead><tr><th>Return value</th><th>Meaning</th></tr></thead><tbody><tr><td>-1</td><td><code data-dev-comment-type="paramref" class="paramref">value</code> is less than zero.</td></tr><tr><td>0</td><td><code data-dev-comment-type="paramref" class="paramref">value</code> is equal to zero.</td></tr><tr><td>1</td><td><code data-dev-comment-type="paramref" class="paramref">value</code> is greater than zero.</td></tr></tbody></table>
</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_Math_Int32Extensions_Wrap_System_Int32_System_Int32_.md&amp;value=---%0Auid%3A%20X10D.Math.Int32Extensions.Wrap(System.Int32%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Math/Int32Extensions.cs/#L234">View Source</a>
</span>
<a id="X10D_Math_Int32Extensions_Wrap_" data-uid="X10D.Math.Int32Extensions.Wrap*"></a>
<h4 id="X10D_Math_Int32Extensions_Wrap_System_Int32_System_Int32_" data-uid="X10D.Math.Int32Extensions.Wrap(System.Int32,System.Int32)">Wrap(Int32, Int32)</h4>
<div class="markdown level1 summary"><p>Wraps the current 32-bit signed integer between 0 and a high 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 int Wrap(this int value, int length)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to wrap.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">length</span></td>
<td><p>The exclusive upper bound.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>The wrapped value.</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_Math_Int32Extensions_Wrap_System_Int32_System_Int32_System_Int32_.md&amp;value=---%0Auid%3A%20X10D.Math.Int32Extensions.Wrap(System.Int32%2CSystem.Int32%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Math/Int32Extensions.cs/#L221">View Source</a>
</span>
<a id="X10D_Math_Int32Extensions_Wrap_" data-uid="X10D.Math.Int32Extensions.Wrap*"></a>
<h4 id="X10D_Math_Int32Extensions_Wrap_System_Int32_System_Int32_System_Int32_" data-uid="X10D.Math.Int32Extensions.Wrap(System.Int32,System.Int32,System.Int32)">Wrap(Int32, Int32, Int32)</h4>
<div class="markdown level1 summary"><p>Wraps the current 32-bit signed integer between a low and a high 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 int Wrap(this int value, int low, int high)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to wrap.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">low</span></td>
<td><p>The inclusive lower bound.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">high</span></td>
<td><p>The exclusive upper bound.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>The wrapped value.</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>

View File

@ -0,0 +1,837 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class Int64Extensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class Int64Extensions
| 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.Math.Int64Extensions">
<h1 id="X10D_Math_Int64Extensions" data-uid="X10D.Math.Int64Extensions" class="text-break">Class Int64Extensions
</h1>
<div class="markdown level0 summary"><p>Extension methods for <see cref="!:System.Int64"></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">Int64Extensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.Math.html">X10D.Math</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_Math_Int64Extensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class Int64Extensions : 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_Math_Int64Extensions_CountDigits_System_Int64_.md&amp;value=---%0Auid%3A%20X10D.Math.Int64Extensions.CountDigits(System.Int64)%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/Math/Int64Extensions.cs/#L17">View Source</a>
</span>
<a id="X10D_Math_Int64Extensions_CountDigits_" data-uid="X10D.Math.Int64Extensions.CountDigits*"></a>
<h4 id="X10D_Math_Int64Extensions_CountDigits_System_Int64_" data-uid="X10D.Math.Int64Extensions.CountDigits(System.Int64)">CountDigits(Int64)</h4>
<div class="markdown level1 summary"><p>Returns the number of digits in the current 64-bit signed integer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static int CountDigits(this long value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int64</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose digit count to compute.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>The number of digits in <code data-dev-comment-type="paramref" class="paramref">value</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_Math_Int64Extensions_DigitalRoot_System_Int64_.md&amp;value=---%0Auid%3A%20X10D.Math.Int64Extensions.DigitalRoot(System.Int64)%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/Math/Int64Extensions.cs/#L36">View Source</a>
</span>
<a id="X10D_Math_Int64Extensions_DigitalRoot_" data-uid="X10D.Math.Int64Extensions.DigitalRoot*"></a>
<h4 id="X10D_Math_Int64Extensions_DigitalRoot_System_Int64_" data-uid="X10D.Math.Int64Extensions.DigitalRoot(System.Int64)">DigitalRoot(Int64)</h4>
<div class="markdown level1 summary"><p>Computes the digital root of this 64-bit integer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static long DigitalRoot(this long value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int64</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose digital root to compute.</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.Int64</span></td>
<td><p>The digital root of <code data-dev-comment-type="paramref" class="paramref">value</code>.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="X10D_Math_Int64Extensions_DigitalRoot_System_Int64__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The digital root is defined as the recursive sum of digits until that result is a single digit.</p>
<p>For example, the digital root of 239 is 5: <code>2 + 3 + 9 = 14</code>, then <code>1 + 4 = 5</code>.</p>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Math_Int64Extensions_Factorial_System_Int64_.md&amp;value=---%0Auid%3A%20X10D.Math.Int64Extensions.Factorial(System.Int64)%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/Math/Int64Extensions.cs/#L50">View Source</a>
</span>
<a id="X10D_Math_Int64Extensions_Factorial_" data-uid="X10D.Math.Int64Extensions.Factorial*"></a>
<h4 id="X10D_Math_Int64Extensions_Factorial_System_Int64_" data-uid="X10D.Math.Int64Extensions.Factorial(System.Int64)">Factorial(Int64)</h4>
<div class="markdown level1 summary"><p>Returns the factorial of the current 64-bit signed integer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static long Factorial(this long value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int64</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose factorial to compute.</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.Int64</span></td>
<td><p>The factorial of <code data-dev-comment-type="paramref" class="paramref">value</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_Math_Int64Extensions_GreatestCommonFactor_System_Int64_System_Int64_.md&amp;value=---%0Auid%3A%20X10D.Math.Int64Extensions.GreatestCommonFactor(System.Int64%2CSystem.Int64)%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/Math/Int64Extensions.cs/#L79">View Source</a>
</span>
<a id="X10D_Math_Int64Extensions_GreatestCommonFactor_" data-uid="X10D.Math.Int64Extensions.GreatestCommonFactor*"></a>
<h4 id="X10D_Math_Int64Extensions_GreatestCommonFactor_System_Int64_System_Int64_" data-uid="X10D.Math.Int64Extensions.GreatestCommonFactor(System.Int64,System.Int64)">GreatestCommonFactor(Int64, Int64)</h4>
<div class="markdown level1 summary"><p>Calculates the greatest common factor between the current 64-bit signed integer, and another 64-bit unsigned integer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static long GreatestCommonFactor(this long value, long other)</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.Int64</span></td>
<td><span class="parametername">value</span></td>
<td><p>The first value.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int64</span></td>
<td><span class="parametername">other</span></td>
<td><p>The second value.</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.Int64</span></td>
<td><p>The greatest common factor between <code data-dev-comment-type="paramref" class="paramref">value</code> and <code data-dev-comment-type="paramref" class="paramref">other</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_Math_Int64Extensions_IsEven_System_Int64_.md&amp;value=---%0Auid%3A%20X10D.Math.Int64Extensions.IsEven(System.Int64)%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/Math/Int64Extensions.cs/#L99">View Source</a>
</span>
<a id="X10D_Math_Int64Extensions_IsEven_" data-uid="X10D.Math.Int64Extensions.IsEven*"></a>
<h4 id="X10D_Math_Int64Extensions_IsEven_System_Int64_" data-uid="X10D.Math.Int64Extensions.IsEven(System.Int64)">IsEven(Int64)</h4>
<div class="markdown level1 summary"><p>Returns a value indicating whether the current value is evenly divisible by 2.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool IsEven(this long value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int64</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose parity to check.</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><span class="xref">true</span> if <code data-dev-comment-type="paramref" class="paramref">value</code> is evenly divisible by 2, or <span class="xref">false</span>
otherwise.</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_Math_Int64Extensions_IsOdd_System_Int64_.md&amp;value=---%0Auid%3A%20X10D.Math.Int64Extensions.IsOdd(System.Int64)%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/Math/Int64Extensions.cs/#L114">View Source</a>
</span>
<a id="X10D_Math_Int64Extensions_IsOdd_" data-uid="X10D.Math.Int64Extensions.IsOdd*"></a>
<h4 id="X10D_Math_Int64Extensions_IsOdd_System_Int64_" data-uid="X10D.Math.Int64Extensions.IsOdd(System.Int64)">IsOdd(Int64)</h4>
<div class="markdown level1 summary"><p>Returns a value indicating whether the current value is not evenly divisible by 2.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool IsOdd(this long value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int64</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose parity to check.</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><span class="xref">true</span> if <code data-dev-comment-type="paramref" class="paramref">value</code> is not evenly divisible by 2, or <span class="xref">false</span>
otherwise.</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_Math_Int64Extensions_IsPrime_System_Int64_.md&amp;value=---%0Auid%3A%20X10D.Math.Int64Extensions.IsPrime(System.Int64)%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/Math/Int64Extensions.cs/#L128">View Source</a>
</span>
<a id="X10D_Math_Int64Extensions_IsPrime_" data-uid="X10D.Math.Int64Extensions.IsPrime*"></a>
<h4 id="X10D_Math_Int64Extensions_IsPrime_System_Int64_" data-uid="X10D.Math.Int64Extensions.IsPrime(System.Int64)">IsPrime(Int64)</h4>
<div class="markdown level1 summary"><p>Returns a value indicating whether the current value is a prime number.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool IsPrime(this long value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int64</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose primality to check.</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><span class="xref">true</span> if <code data-dev-comment-type="paramref" class="paramref">value</code> is prime; otherwise, <span class="xref">false</span>.</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_Math_Int64Extensions_LowestCommonMultiple_System_Int64_System_Int64_.md&amp;value=---%0Auid%3A%20X10D.Math.Int64Extensions.LowestCommonMultiple(System.Int64%2CSystem.Int64)%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/Math/Int64Extensions.cs/#L160">View Source</a>
</span>
<a id="X10D_Math_Int64Extensions_LowestCommonMultiple_" data-uid="X10D.Math.Int64Extensions.LowestCommonMultiple*"></a>
<h4 id="X10D_Math_Int64Extensions_LowestCommonMultiple_System_Int64_System_Int64_" data-uid="X10D.Math.Int64Extensions.LowestCommonMultiple(System.Int64,System.Int64)">LowestCommonMultiple(Int64, Int64)</h4>
<div class="markdown level1 summary"><p>Calculates the lowest common multiple between the current 64-bit signed integer, and another 64-bit signed integer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static long LowestCommonMultiple(this long value, long other)</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.Int64</span></td>
<td><span class="parametername">value</span></td>
<td><p>The first value.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int64</span></td>
<td><span class="parametername">other</span></td>
<td><p>The second value.</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.Int64</span></td>
<td><p>The lowest common multiple between <code data-dev-comment-type="paramref" class="paramref">value</code> and <code data-dev-comment-type="paramref" class="paramref">other</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_Math_Int64Extensions_Mod_System_Int64_System_Int64_.md&amp;value=---%0Auid%3A%20X10D.Math.Int64Extensions.Mod(System.Int64%2CSystem.Int64)%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/Math/Int64Extensions.cs/#L196">View Source</a>
</span>
<a id="X10D_Math_Int64Extensions_Mod_" data-uid="X10D.Math.Int64Extensions.Mod*"></a>
<h4 id="X10D_Math_Int64Extensions_Mod_System_Int64_System_Int64_" data-uid="X10D.Math.Int64Extensions.Mod(System.Int64,System.Int64)">Mod(Int64, Int64)</h4>
<div class="markdown level1 summary"><p>Performs a modulo operation which supports a negative dividend.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static long Mod(this long dividend, long divisor)</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.Int64</span></td>
<td><span class="parametername">dividend</span></td>
<td><p>The dividend.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int64</span></td>
<td><span class="parametername">divisor</span></td>
<td><p>The divisor.</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.Int64</span></td>
<td><p>The result of <code>dividend mod divisor</code>.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="X10D_Math_Int64Extensions_Mod_System_Int64_System_Int64__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The <code>%</code> operator (commonly called the modulo operator) in C# is not defined to be modulo, but is instead
remainder. This quirk inherently makes it difficult to use modulo in a negative context, as <code>x % y</code> where x is
negative will return a negative value, akin to <code>-(x % y)</code>, even if precedence is forced. This method provides a
modulo operation which supports negative dividends.</p>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Math_Int64Extensions_MultiplicativePersistence_System_Int64_.md&amp;value=---%0Auid%3A%20X10D.Math.Int64Extensions.MultiplicativePersistence(System.Int64)%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/Math/Int64Extensions.cs/#L212">View Source</a>
</span>
<a id="X10D_Math_Int64Extensions_MultiplicativePersistence_" data-uid="X10D.Math.Int64Extensions.MultiplicativePersistence*"></a>
<h4 id="X10D_Math_Int64Extensions_MultiplicativePersistence_System_Int64_" data-uid="X10D.Math.Int64Extensions.MultiplicativePersistence(System.Int64)">MultiplicativePersistence(Int64)</h4>
<div class="markdown level1 summary"><p>Returns the multiplicative persistence of 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 int MultiplicativePersistence(this long value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int64</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose multiplicative persistence to calculate.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>The multiplicative persistence.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="X10D_Math_Int64Extensions_MultiplicativePersistence_System_Int64__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Multiplicative persistence is defined as the recursive digital product until that product is a single digit.</p>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Math_Int64Extensions_Sign_System_Int64_.md&amp;value=---%0Auid%3A%20X10D.Math.Int64Extensions.Sign(System.Int64)%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/Math/Int64Extensions.cs/#L277">View Source</a>
</span>
<a id="X10D_Math_Int64Extensions_Sign_" data-uid="X10D.Math.Int64Extensions.Sign*"></a>
<h4 id="X10D_Math_Int64Extensions_Sign_System_Int64_" data-uid="X10D.Math.Int64Extensions.Sign(System.Int64)">Sign(Int64)</h4>
<div class="markdown level1 summary"><p>Returns an integer that indicates the sign of this 64-bit signed integer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static int Sign(this long value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int64</span></td>
<td><span class="parametername">value</span></td>
<td><p>A signed number.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>A number that indicates the sign of <code data-dev-comment-type="paramref" class="paramref">value</code>, as shown in the following table.</p>
<table><thead><tr><th>Return value</th><th>Meaning</th></tr></thead><tbody><tr><td>-1</td><td><code data-dev-comment-type="paramref" class="paramref">value</code> is less than zero.</td></tr><tr><td>0</td><td><code data-dev-comment-type="paramref" class="paramref">value</code> is equal to zero.</td></tr><tr><td>1</td><td><code data-dev-comment-type="paramref" class="paramref">value</code> is greater than zero.</td></tr></tbody></table>
</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_Math_Int64Extensions_Wrap_System_Int64_System_Int64_.md&amp;value=---%0Auid%3A%20X10D.Math.Int64Extensions.Wrap(System.Int64%2CSystem.Int64)%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/Math/Int64Extensions.cs/#L305">View Source</a>
</span>
<a id="X10D_Math_Int64Extensions_Wrap_" data-uid="X10D.Math.Int64Extensions.Wrap*"></a>
<h4 id="X10D_Math_Int64Extensions_Wrap_System_Int64_System_Int64_" data-uid="X10D.Math.Int64Extensions.Wrap(System.Int64,System.Int64)">Wrap(Int64, Int64)</h4>
<div class="markdown level1 summary"><p>Wraps the current 64-bit signed integer between 0 and a high 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 long Wrap(this long value, long length)</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.Int64</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to wrap.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int64</span></td>
<td><span class="parametername">length</span></td>
<td><p>The exclusive upper bound.</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.Int64</span></td>
<td><p>The wrapped value.</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_Math_Int64Extensions_Wrap_System_Int64_System_Int64_System_Int64_.md&amp;value=---%0Auid%3A%20X10D.Math.Int64Extensions.Wrap(System.Int64%2CSystem.Int64%2CSystem.Int64)%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/Math/Int64Extensions.cs/#L291">View Source</a>
</span>
<a id="X10D_Math_Int64Extensions_Wrap_" data-uid="X10D.Math.Int64Extensions.Wrap*"></a>
<h4 id="X10D_Math_Int64Extensions_Wrap_System_Int64_System_Int64_System_Int64_" data-uid="X10D.Math.Int64Extensions.Wrap(System.Int64,System.Int64,System.Int64)">Wrap(Int64, Int64, Int64)</h4>
<div class="markdown level1 summary"><p>Wraps the current 64-bit signed integer between a low and a high 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 long Wrap(this long value, long low, long high)</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.Int64</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to wrap.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int64</span></td>
<td><span class="parametername">low</span></td>
<td><p>The inclusive lower bound.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int64</span></td>
<td><span class="parametername">high</span></td>
<td><p>The exclusive upper bound.</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.Int64</span></td>
<td><p>The wrapped value.</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>

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,837 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class SByteExtensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class SByteExtensions
| 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.Math.SByteExtensions">
<h1 id="X10D_Math_SByteExtensions" data-uid="X10D.Math.SByteExtensions" class="text-break">Class SByteExtensions
</h1>
<div class="markdown level0 summary"><p>Math-related extension methods for <see cref="!:System.SByte"></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">SByteExtensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.Math.html">X10D.Math</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_Math_SByteExtensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class SByteExtensions : 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_Math_SByteExtensions_CountDigits_System_SByte_.md&amp;value=---%0Auid%3A%20X10D.Math.SByteExtensions.CountDigits(System.SByte)%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/Math/SByteExtensions.cs/#L18">View Source</a>
</span>
<a id="X10D_Math_SByteExtensions_CountDigits_" data-uid="X10D.Math.SByteExtensions.CountDigits*"></a>
<h4 id="X10D_Math_SByteExtensions_CountDigits_System_SByte_" data-uid="X10D.Math.SByteExtensions.CountDigits(System.SByte)">CountDigits(SByte)</h4>
<div class="markdown level1 summary"><p>Returns the number of digits in the current 8-bit signed integer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static int CountDigits(this sbyte value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.SByte</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose digit count to compute.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>The number of digits in <code data-dev-comment-type="paramref" class="paramref">value</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_Math_SByteExtensions_DigitalRoot_System_SByte_.md&amp;value=---%0Auid%3A%20X10D.Math.SByteExtensions.DigitalRoot(System.SByte)%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/Math/SByteExtensions.cs/#L37">View Source</a>
</span>
<a id="X10D_Math_SByteExtensions_DigitalRoot_" data-uid="X10D.Math.SByteExtensions.DigitalRoot*"></a>
<h4 id="X10D_Math_SByteExtensions_DigitalRoot_System_SByte_" data-uid="X10D.Math.SByteExtensions.DigitalRoot(System.SByte)">DigitalRoot(SByte)</h4>
<div class="markdown level1 summary"><p>Computes the digital root of this 32-bit integer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static sbyte DigitalRoot(this sbyte value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.SByte</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose digital root to compute.</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.SByte</span></td>
<td><p>The digital root of <code data-dev-comment-type="paramref" class="paramref">value</code>.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="X10D_Math_SByteExtensions_DigitalRoot_System_SByte__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The digital root is defined as the recursive sum of digits until that result is a single digit.</p>
<p>For example, the digital root of 239 is 5: <code>2 + 3 + 9 = 14</code>, then <code>1 + 4 = 5</code>.</p>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Math_SByteExtensions_Factorial_System_SByte_.md&amp;value=---%0Auid%3A%20X10D.Math.SByteExtensions.Factorial(System.SByte)%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/Math/SByteExtensions.cs/#L51">View Source</a>
</span>
<a id="X10D_Math_SByteExtensions_Factorial_" data-uid="X10D.Math.SByteExtensions.Factorial*"></a>
<h4 id="X10D_Math_SByteExtensions_Factorial_System_SByte_" data-uid="X10D.Math.SByteExtensions.Factorial(System.SByte)">Factorial(SByte)</h4>
<div class="markdown level1 summary"><p>Returns the factorial of the current 8-bit signed integer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static long Factorial(this sbyte value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.SByte</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose factorial to compute.</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.Int64</span></td>
<td><p>The factorial of <code data-dev-comment-type="paramref" class="paramref">value</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_Math_SByteExtensions_GreatestCommonFactor_System_SByte_System_SByte_.md&amp;value=---%0Auid%3A%20X10D.Math.SByteExtensions.GreatestCommonFactor(System.SByte%2CSystem.SByte)%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/Math/SByteExtensions.cs/#L80">View Source</a>
</span>
<a id="X10D_Math_SByteExtensions_GreatestCommonFactor_" data-uid="X10D.Math.SByteExtensions.GreatestCommonFactor*"></a>
<h4 id="X10D_Math_SByteExtensions_GreatestCommonFactor_System_SByte_System_SByte_" data-uid="X10D.Math.SByteExtensions.GreatestCommonFactor(System.SByte,System.SByte)">GreatestCommonFactor(SByte, SByte)</h4>
<div class="markdown level1 summary"><p>Calculates the greatest common factor between the current 8-bit signed integer, and another 8-bit signed integer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static sbyte GreatestCommonFactor(this sbyte value, sbyte other)</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.SByte</span></td>
<td><span class="parametername">value</span></td>
<td><p>The first value.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.SByte</span></td>
<td><span class="parametername">other</span></td>
<td><p>The second value.</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.SByte</span></td>
<td><p>The greatest common factor between <code data-dev-comment-type="paramref" class="paramref">value</code> and <code data-dev-comment-type="paramref" class="paramref">other</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_Math_SByteExtensions_IsEven_System_SByte_.md&amp;value=---%0Auid%3A%20X10D.Math.SByteExtensions.IsEven(System.SByte)%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/Math/SByteExtensions.cs/#L95">View Source</a>
</span>
<a id="X10D_Math_SByteExtensions_IsEven_" data-uid="X10D.Math.SByteExtensions.IsEven*"></a>
<h4 id="X10D_Math_SByteExtensions_IsEven_System_SByte_" data-uid="X10D.Math.SByteExtensions.IsEven(System.SByte)">IsEven(SByte)</h4>
<div class="markdown level1 summary"><p>Returns a value indicating whether the current value is evenly divisible by 2.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool IsEven(this sbyte value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.SByte</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose parity to check.</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><span class="xref">true</span> if <code data-dev-comment-type="paramref" class="paramref">value</code> is evenly divisible by 2, or <span class="xref">false</span>
otherwise.</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_Math_SByteExtensions_IsOdd_System_SByte_.md&amp;value=---%0Auid%3A%20X10D.Math.SByteExtensions.IsOdd(System.SByte)%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/Math/SByteExtensions.cs/#L110">View Source</a>
</span>
<a id="X10D_Math_SByteExtensions_IsOdd_" data-uid="X10D.Math.SByteExtensions.IsOdd*"></a>
<h4 id="X10D_Math_SByteExtensions_IsOdd_System_SByte_" data-uid="X10D.Math.SByteExtensions.IsOdd(System.SByte)">IsOdd(SByte)</h4>
<div class="markdown level1 summary"><p>Returns a value indicating whether the current value is not evenly divisible by 2.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool IsOdd(this sbyte value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.SByte</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose parity to check.</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><span class="xref">true</span> if <code data-dev-comment-type="paramref" class="paramref">value</code> is not evenly divisible by 2, or <span class="xref">false</span>
otherwise.</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_Math_SByteExtensions_IsPrime_System_SByte_.md&amp;value=---%0Auid%3A%20X10D.Math.SByteExtensions.IsPrime(System.SByte)%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/Math/SByteExtensions.cs/#L124">View Source</a>
</span>
<a id="X10D_Math_SByteExtensions_IsPrime_" data-uid="X10D.Math.SByteExtensions.IsPrime*"></a>
<h4 id="X10D_Math_SByteExtensions_IsPrime_System_SByte_" data-uid="X10D.Math.SByteExtensions.IsPrime(System.SByte)">IsPrime(SByte)</h4>
<div class="markdown level1 summary"><p>Returns a value indicating whether the current value is a prime number.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool IsPrime(this sbyte value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.SByte</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose primality to check.</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><span class="xref">true</span> if <code data-dev-comment-type="paramref" class="paramref">value</code> is prime; otherwise, <span class="xref">false</span>.</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_Math_SByteExtensions_LowestCommonMultiple_System_SByte_System_SByte_.md&amp;value=---%0Auid%3A%20X10D.Math.SByteExtensions.LowestCommonMultiple(System.SByte%2CSystem.SByte)%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/Math/SByteExtensions.cs/#L137">View Source</a>
</span>
<a id="X10D_Math_SByteExtensions_LowestCommonMultiple_" data-uid="X10D.Math.SByteExtensions.LowestCommonMultiple*"></a>
<h4 id="X10D_Math_SByteExtensions_LowestCommonMultiple_System_SByte_System_SByte_" data-uid="X10D.Math.SByteExtensions.LowestCommonMultiple(System.SByte,System.SByte)">LowestCommonMultiple(SByte, SByte)</h4>
<div class="markdown level1 summary"><p>Calculates the lowest common multiple between the current 8-bit signed integer, and another 8-bit signed integer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static sbyte LowestCommonMultiple(this sbyte value, sbyte other)</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.SByte</span></td>
<td><span class="parametername">value</span></td>
<td><p>The first value.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.SByte</span></td>
<td><span class="parametername">other</span></td>
<td><p>The second value.</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.SByte</span></td>
<td><p>The lowest common multiple between <code data-dev-comment-type="paramref" class="paramref">value</code> and <code data-dev-comment-type="paramref" class="paramref">other</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_Math_SByteExtensions_Mod_System_SByte_System_SByte_.md&amp;value=---%0Auid%3A%20X10D.Math.SByteExtensions.Mod(System.SByte%2CSystem.SByte)%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/Math/SByteExtensions.cs/#L158">View Source</a>
</span>
<a id="X10D_Math_SByteExtensions_Mod_" data-uid="X10D.Math.SByteExtensions.Mod*"></a>
<h4 id="X10D_Math_SByteExtensions_Mod_System_SByte_System_SByte_" data-uid="X10D.Math.SByteExtensions.Mod(System.SByte,System.SByte)">Mod(SByte, SByte)</h4>
<div class="markdown level1 summary"><p>Performs a modulo operation which supports a negative dividend.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static sbyte Mod(this sbyte dividend, sbyte divisor)</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.SByte</span></td>
<td><span class="parametername">dividend</span></td>
<td><p>The dividend.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.SByte</span></td>
<td><span class="parametername">divisor</span></td>
<td><p>The divisor.</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.SByte</span></td>
<td><p>The result of <code>dividend mod divisor</code>.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="X10D_Math_SByteExtensions_Mod_System_SByte_System_SByte__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The <code>%</code> operator (commonly called the modulo operator) in C# is not defined to be modulo, but is instead
remainder. This quirk inherently makes it difficult to use modulo in a negative context, as <code>x % y</code> where x is
negative will return a negative value, akin to <code>-(x % y)</code>, even if precedence is forced. This method provides a
modulo operation which supports negative dividends.</p>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Math_SByteExtensions_MultiplicativePersistence_System_SByte_.md&amp;value=---%0Auid%3A%20X10D.Math.SByteExtensions.MultiplicativePersistence(System.SByte)%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/Math/SByteExtensions.cs/#L174">View Source</a>
</span>
<a id="X10D_Math_SByteExtensions_MultiplicativePersistence_" data-uid="X10D.Math.SByteExtensions.MultiplicativePersistence*"></a>
<h4 id="X10D_Math_SByteExtensions_MultiplicativePersistence_System_SByte_" data-uid="X10D.Math.SByteExtensions.MultiplicativePersistence(System.SByte)">MultiplicativePersistence(SByte)</h4>
<div class="markdown level1 summary"><p>Returns the multiplicative persistence of 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 int MultiplicativePersistence(this sbyte value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.SByte</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose multiplicative persistence to calculate.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>The multiplicative persistence.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="X10D_Math_SByteExtensions_MultiplicativePersistence_System_SByte__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Multiplicative persistence is defined as the recursive digital product until that product is a single digit.</p>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Math_SByteExtensions_Sign_System_SByte_.md&amp;value=---%0Auid%3A%20X10D.Math.SByteExtensions.Sign(System.SByte)%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/Math/SByteExtensions.cs/#L208">View Source</a>
</span>
<a id="X10D_Math_SByteExtensions_Sign_" data-uid="X10D.Math.SByteExtensions.Sign*"></a>
<h4 id="X10D_Math_SByteExtensions_Sign_System_SByte_" data-uid="X10D.Math.SByteExtensions.Sign(System.SByte)">Sign(SByte)</h4>
<div class="markdown level1 summary"><p>Returns an integer that indicates the sign of this 8-bit signed integer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static int Sign(this sbyte value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.SByte</span></td>
<td><span class="parametername">value</span></td>
<td><p>A signed number.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>A number that indicates the sign of <code data-dev-comment-type="paramref" class="paramref">value</code>, as shown in the following table.</p>
<table><thead><tr><th>Return value</th><th>Meaning</th></tr></thead><tbody><tr><td>-1</td><td><code data-dev-comment-type="paramref" class="paramref">value</code> is less than zero.</td></tr><tr><td>0</td><td><code data-dev-comment-type="paramref" class="paramref">value</code> is equal to zero.</td></tr><tr><td>1</td><td><code data-dev-comment-type="paramref" class="paramref">value</code> is greater than zero.</td></tr></tbody></table>
</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_Math_SByteExtensions_Wrap_System_SByte_System_SByte_.md&amp;value=---%0Auid%3A%20X10D.Math.SByteExtensions.Wrap(System.SByte%2CSystem.SByte)%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/Math/SByteExtensions.cs/#L235">View Source</a>
</span>
<a id="X10D_Math_SByteExtensions_Wrap_" data-uid="X10D.Math.SByteExtensions.Wrap*"></a>
<h4 id="X10D_Math_SByteExtensions_Wrap_System_SByte_System_SByte_" data-uid="X10D.Math.SByteExtensions.Wrap(System.SByte,System.SByte)">Wrap(SByte, SByte)</h4>
<div class="markdown level1 summary"><p>Wraps the current 8-bit signed integer between 0 and a high 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 sbyte Wrap(this sbyte value, sbyte length)</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.SByte</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to wrap.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.SByte</span></td>
<td><span class="parametername">length</span></td>
<td><p>The exclusive upper bound.</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.SByte</span></td>
<td><p>The wrapped value.</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_Math_SByteExtensions_Wrap_System_SByte_System_SByte_System_SByte_.md&amp;value=---%0Auid%3A%20X10D.Math.SByteExtensions.Wrap(System.SByte%2CSystem.SByte%2CSystem.SByte)%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/Math/SByteExtensions.cs/#L222">View Source</a>
</span>
<a id="X10D_Math_SByteExtensions_Wrap_" data-uid="X10D.Math.SByteExtensions.Wrap*"></a>
<h4 id="X10D_Math_SByteExtensions_Wrap_System_SByte_System_SByte_System_SByte_" data-uid="X10D.Math.SByteExtensions.Wrap(System.SByte,System.SByte,System.SByte)">Wrap(SByte, SByte, SByte)</h4>
<div class="markdown level1 summary"><p>Wraps the current 8-bit signed integer between a low and a high 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 sbyte Wrap(this sbyte value, sbyte low, sbyte high)</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.SByte</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to wrap.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.SByte</span></td>
<td><span class="parametername">low</span></td>
<td><p>The inclusive lower bound.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.SByte</span></td>
<td><span class="parametername">high</span></td>
<td><p>The exclusive upper bound.</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.SByte</span></td>
<td><p>The wrapped value.</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>

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,726 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class UInt16Extensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class UInt16Extensions
| 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.Math.UInt16Extensions">
<h1 id="X10D_Math_UInt16Extensions" data-uid="X10D.Math.UInt16Extensions" class="text-break">Class UInt16Extensions
</h1>
<div class="markdown level0 summary"><p>Extension methods for <see cref="!:System.UInt16"></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">UInt16Extensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.Math.html">X10D.Math</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_Math_UInt16Extensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class UInt16Extensions : 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_Math_UInt16Extensions_CountDigits_System_UInt16_.md&amp;value=---%0Auid%3A%20X10D.Math.UInt16Extensions.CountDigits(System.UInt16)%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/Math/UInt16Extensions.cs/#L18">View Source</a>
</span>
<a id="X10D_Math_UInt16Extensions_CountDigits_" data-uid="X10D.Math.UInt16Extensions.CountDigits*"></a>
<h4 id="X10D_Math_UInt16Extensions_CountDigits_System_UInt16_" data-uid="X10D.Math.UInt16Extensions.CountDigits(System.UInt16)">CountDigits(UInt16)</h4>
<div class="markdown level1 summary"><p>Returns the number of digits in the current 16-bit signed integer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static int CountDigits(this ushort value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.UInt16</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose digit count to compute.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>The number of digits in <code data-dev-comment-type="paramref" class="paramref">value</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_Math_UInt16Extensions_DigitalRoot_System_UInt16_.md&amp;value=---%0Auid%3A%20X10D.Math.UInt16Extensions.DigitalRoot(System.UInt16)%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/Math/UInt16Extensions.cs/#L37">View Source</a>
</span>
<a id="X10D_Math_UInt16Extensions_DigitalRoot_" data-uid="X10D.Math.UInt16Extensions.DigitalRoot*"></a>
<h4 id="X10D_Math_UInt16Extensions_DigitalRoot_System_UInt16_" data-uid="X10D.Math.UInt16Extensions.DigitalRoot(System.UInt16)">DigitalRoot(UInt16)</h4>
<div class="markdown level1 summary"><p>Computes the digital root of the current 16-bit unsigned integer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static ushort DigitalRoot(this ushort value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.UInt16</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose digital root to compute.</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.UInt16</span></td>
<td><p>The digital root of <code data-dev-comment-type="paramref" class="paramref">value</code>.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="X10D_Math_UInt16Extensions_DigitalRoot_System_UInt16__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The digital root is defined as the recursive sum of digits until that result is a single digit.</p>
<p>For example, the digital root of 239 is 5: <code>2 + 3 + 9 = 14</code>, then <code>1 + 4 = 5</code>.</p>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Math_UInt16Extensions_Factorial_System_UInt16_.md&amp;value=---%0Auid%3A%20X10D.Math.UInt16Extensions.Factorial(System.UInt16)%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/Math/UInt16Extensions.cs/#L50">View Source</a>
</span>
<a id="X10D_Math_UInt16Extensions_Factorial_" data-uid="X10D.Math.UInt16Extensions.Factorial*"></a>
<h4 id="X10D_Math_UInt16Extensions_Factorial_System_UInt16_" data-uid="X10D.Math.UInt16Extensions.Factorial(System.UInt16)">Factorial(UInt16)</h4>
<div class="markdown level1 summary"><p>Returns the factorial of the current 16-bit unsigned integer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static ulong Factorial(this ushort value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.UInt16</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose factorial to compute.</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.UInt64</span></td>
<td><p>The factorial of <code data-dev-comment-type="paramref" class="paramref">value</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_Math_UInt16Extensions_GreatestCommonFactor_System_UInt16_System_UInt16_.md&amp;value=---%0Auid%3A%20X10D.Math.UInt16Extensions.GreatestCommonFactor(System.UInt16%2CSystem.UInt16)%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/Math/UInt16Extensions.cs/#L75">View Source</a>
</span>
<a id="X10D_Math_UInt16Extensions_GreatestCommonFactor_" data-uid="X10D.Math.UInt16Extensions.GreatestCommonFactor*"></a>
<h4 id="X10D_Math_UInt16Extensions_GreatestCommonFactor_System_UInt16_System_UInt16_" data-uid="X10D.Math.UInt16Extensions.GreatestCommonFactor(System.UInt16,System.UInt16)">GreatestCommonFactor(UInt16, UInt16)</h4>
<div class="markdown level1 summary"><p>Calculates the greatest common factor between the current 16-bit unsigned integer, and another 16-bit unsigned
integer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static ushort GreatestCommonFactor(this ushort value, ushort other)</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.UInt16</span></td>
<td><span class="parametername">value</span></td>
<td><p>The first value.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.UInt16</span></td>
<td><span class="parametername">other</span></td>
<td><p>The second value.</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.UInt16</span></td>
<td><p>The greatest common factor between <code data-dev-comment-type="paramref" class="paramref">value</code> and <code data-dev-comment-type="paramref" class="paramref">other</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_Math_UInt16Extensions_IsEven_System_UInt16_.md&amp;value=---%0Auid%3A%20X10D.Math.UInt16Extensions.IsEven(System.UInt16)%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/Math/UInt16Extensions.cs/#L90">View Source</a>
</span>
<a id="X10D_Math_UInt16Extensions_IsEven_" data-uid="X10D.Math.UInt16Extensions.IsEven*"></a>
<h4 id="X10D_Math_UInt16Extensions_IsEven_System_UInt16_" data-uid="X10D.Math.UInt16Extensions.IsEven(System.UInt16)">IsEven(UInt16)</h4>
<div class="markdown level1 summary"><p>Returns a value indicating whether the current value is evenly divisible by 2.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool IsEven(this ushort value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.UInt16</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose parity to check.</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><span class="xref">true</span> if <code data-dev-comment-type="paramref" class="paramref">value</code> is evenly divisible by 2, or <span class="xref">false</span>
otherwise.</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_Math_UInt16Extensions_IsOdd_System_UInt16_.md&amp;value=---%0Auid%3A%20X10D.Math.UInt16Extensions.IsOdd(System.UInt16)%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/Math/UInt16Extensions.cs/#L119">View Source</a>
</span>
<a id="X10D_Math_UInt16Extensions_IsOdd_" data-uid="X10D.Math.UInt16Extensions.IsOdd*"></a>
<h4 id="X10D_Math_UInt16Extensions_IsOdd_System_UInt16_" data-uid="X10D.Math.UInt16Extensions.IsOdd(System.UInt16)">IsOdd(UInt16)</h4>
<div class="markdown level1 summary"><p>Returns a value indicating whether the current value is not evenly divisible by 2.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool IsOdd(this ushort value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.UInt16</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose parity to check.</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><span class="xref">true</span> if <code data-dev-comment-type="paramref" class="paramref">value</code> is not evenly divisible by 2, or <span class="xref">false</span>
otherwise.</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_Math_UInt16Extensions_IsPrime_System_UInt16_.md&amp;value=---%0Auid%3A%20X10D.Math.UInt16Extensions.IsPrime(System.UInt16)%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/Math/UInt16Extensions.cs/#L104">View Source</a>
</span>
<a id="X10D_Math_UInt16Extensions_IsPrime_" data-uid="X10D.Math.UInt16Extensions.IsPrime*"></a>
<h4 id="X10D_Math_UInt16Extensions_IsPrime_System_UInt16_" data-uid="X10D.Math.UInt16Extensions.IsPrime(System.UInt16)">IsPrime(UInt16)</h4>
<div class="markdown level1 summary"><p>Returns a value indicating whether the current value is a prime number.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool IsPrime(this ushort value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.UInt16</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose primality to check.</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><span class="xref">true</span> if <code data-dev-comment-type="paramref" class="paramref">value</code> is prime; otherwise, <span class="xref">false</span>.</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_Math_UInt16Extensions_LowestCommonMultiple_System_UInt16_System_UInt16_.md&amp;value=---%0Auid%3A%20X10D.Math.UInt16Extensions.LowestCommonMultiple(System.UInt16%2CSystem.UInt16)%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/Math/UInt16Extensions.cs/#L133">View Source</a>
</span>
<a id="X10D_Math_UInt16Extensions_LowestCommonMultiple_" data-uid="X10D.Math.UInt16Extensions.LowestCommonMultiple*"></a>
<h4 id="X10D_Math_UInt16Extensions_LowestCommonMultiple_System_UInt16_System_UInt16_" data-uid="X10D.Math.UInt16Extensions.LowestCommonMultiple(System.UInt16,System.UInt16)">LowestCommonMultiple(UInt16, UInt16)</h4>
<div class="markdown level1 summary"><p>Calculates the lowest common multiple between the current 16-bit unsigned integer, and another 16-bit unsigned
integer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static ushort LowestCommonMultiple(this ushort value, ushort other)</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.UInt16</span></td>
<td><span class="parametername">value</span></td>
<td><p>The first value.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.UInt16</span></td>
<td><span class="parametername">other</span></td>
<td><p>The second value.</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.UInt16</span></td>
<td><p>The lowest common multiple between <code data-dev-comment-type="paramref" class="paramref">value</code> and <code data-dev-comment-type="paramref" class="paramref">other</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_Math_UInt16Extensions_MultiplicativePersistence_System_UInt16_.md&amp;value=---%0Auid%3A%20X10D.Math.UInt16Extensions.MultiplicativePersistence(System.UInt16)%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/Math/UInt16Extensions.cs/#L148">View Source</a>
</span>
<a id="X10D_Math_UInt16Extensions_MultiplicativePersistence_" data-uid="X10D.Math.UInt16Extensions.MultiplicativePersistence*"></a>
<h4 id="X10D_Math_UInt16Extensions_MultiplicativePersistence_System_UInt16_" data-uid="X10D.Math.UInt16Extensions.MultiplicativePersistence(System.UInt16)">MultiplicativePersistence(UInt16)</h4>
<div class="markdown level1 summary"><p>Returns the multiplicative persistence of 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 int MultiplicativePersistence(this ushort value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.UInt16</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose multiplicative persistence to calculate.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>The multiplicative persistence.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="X10D_Math_UInt16Extensions_MultiplicativePersistence_System_UInt16__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Multiplicative persistence is defined as the recursive digital product until that product is a single digit.</p>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Math_UInt16Extensions_Wrap_System_UInt16_System_UInt16_.md&amp;value=---%0Auid%3A%20X10D.Math.UInt16Extensions.Wrap(System.UInt16%2CSystem.UInt16)%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/Math/UInt16Extensions.cs/#L175">View Source</a>
</span>
<a id="X10D_Math_UInt16Extensions_Wrap_" data-uid="X10D.Math.UInt16Extensions.Wrap*"></a>
<h4 id="X10D_Math_UInt16Extensions_Wrap_System_UInt16_System_UInt16_" data-uid="X10D.Math.UInt16Extensions.Wrap(System.UInt16,System.UInt16)">Wrap(UInt16, UInt16)</h4>
<div class="markdown level1 summary"><p>Wraps the current 16-bit unsigned integer between 0 and a high 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 ushort Wrap(this ushort value, ushort length)</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.UInt16</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to wrap.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.UInt16</span></td>
<td><span class="parametername">length</span></td>
<td><p>The exclusive upper bound.</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.UInt16</span></td>
<td><p>The wrapped value.</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_Math_UInt16Extensions_Wrap_System_UInt16_System_UInt16_System_UInt16_.md&amp;value=---%0Auid%3A%20X10D.Math.UInt16Extensions.Wrap(System.UInt16%2CSystem.UInt16%2CSystem.UInt16)%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/Math/UInt16Extensions.cs/#L162">View Source</a>
</span>
<a id="X10D_Math_UInt16Extensions_Wrap_" data-uid="X10D.Math.UInt16Extensions.Wrap*"></a>
<h4 id="X10D_Math_UInt16Extensions_Wrap_System_UInt16_System_UInt16_System_UInt16_" data-uid="X10D.Math.UInt16Extensions.Wrap(System.UInt16,System.UInt16,System.UInt16)">Wrap(UInt16, UInt16, UInt16)</h4>
<div class="markdown level1 summary"><p>Wraps the current 16-bit unsigned integer between a low and a high 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 ushort Wrap(this ushort value, ushort low, ushort high)</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.UInt16</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to wrap.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.UInt16</span></td>
<td><span class="parametername">low</span></td>
<td><p>The inclusive lower bound.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.UInt16</span></td>
<td><span class="parametername">high</span></td>
<td><p>The exclusive upper bound.</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.UInt16</span></td>
<td><p>The wrapped value.</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>

View File

@ -0,0 +1,726 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class UInt32Extensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class UInt32Extensions
| 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.Math.UInt32Extensions">
<h1 id="X10D_Math_UInt32Extensions" data-uid="X10D.Math.UInt32Extensions" class="text-break">Class UInt32Extensions
</h1>
<div class="markdown level0 summary"><p>Extension methods for <see cref="!:System.UInt32"></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">UInt32Extensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.Math.html">X10D.Math</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_Math_UInt32Extensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class UInt32Extensions : 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_Math_UInt32Extensions_CountDigits_System_UInt32_.md&amp;value=---%0Auid%3A%20X10D.Math.UInt32Extensions.CountDigits(System.UInt32)%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/Math/UInt32Extensions.cs/#L18">View Source</a>
</span>
<a id="X10D_Math_UInt32Extensions_CountDigits_" data-uid="X10D.Math.UInt32Extensions.CountDigits*"></a>
<h4 id="X10D_Math_UInt32Extensions_CountDigits_System_UInt32_" data-uid="X10D.Math.UInt32Extensions.CountDigits(System.UInt32)">CountDigits(UInt32)</h4>
<div class="markdown level1 summary"><p>Returns the number of digits in the current 32-bit unsigned integer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static int CountDigits(this uint value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.UInt32</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose digit count to compute.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>The number of digits in <code data-dev-comment-type="paramref" class="paramref">value</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_Math_UInt32Extensions_DigitalRoot_System_UInt32_.md&amp;value=---%0Auid%3A%20X10D.Math.UInt32Extensions.DigitalRoot(System.UInt32)%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/Math/UInt32Extensions.cs/#L37">View Source</a>
</span>
<a id="X10D_Math_UInt32Extensions_DigitalRoot_" data-uid="X10D.Math.UInt32Extensions.DigitalRoot*"></a>
<h4 id="X10D_Math_UInt32Extensions_DigitalRoot_System_UInt32_" data-uid="X10D.Math.UInt32Extensions.DigitalRoot(System.UInt32)">DigitalRoot(UInt32)</h4>
<div class="markdown level1 summary"><p>Computes the digital root of the current 32-bit unsigned integer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static uint DigitalRoot(this uint value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.UInt32</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose digital root to compute.</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.UInt32</span></td>
<td><p>The digital root of <code data-dev-comment-type="paramref" class="paramref">value</code>.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="X10D_Math_UInt32Extensions_DigitalRoot_System_UInt32__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The digital root is defined as the recursive sum of digits until that result is a single digit.</p>
<p>For example, the digital root of 239 is 5: <code>2 + 3 + 9 = 14</code>, then <code>1 + 4 = 5</code>.</p>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Math_UInt32Extensions_Factorial_System_UInt32_.md&amp;value=---%0Auid%3A%20X10D.Math.UInt32Extensions.Factorial(System.UInt32)%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/Math/UInt32Extensions.cs/#L50">View Source</a>
</span>
<a id="X10D_Math_UInt32Extensions_Factorial_" data-uid="X10D.Math.UInt32Extensions.Factorial*"></a>
<h4 id="X10D_Math_UInt32Extensions_Factorial_System_UInt32_" data-uid="X10D.Math.UInt32Extensions.Factorial(System.UInt32)">Factorial(UInt32)</h4>
<div class="markdown level1 summary"><p>Returns the factorial of the current 32-bit unsigned integer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static ulong Factorial(this uint value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.UInt32</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose factorial to compute.</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.UInt64</span></td>
<td><p>The factorial of <code data-dev-comment-type="paramref" class="paramref">value</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_Math_UInt32Extensions_GreatestCommonFactor_System_UInt32_System_UInt32_.md&amp;value=---%0Auid%3A%20X10D.Math.UInt32Extensions.GreatestCommonFactor(System.UInt32%2CSystem.UInt32)%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/Math/UInt32Extensions.cs/#L75">View Source</a>
</span>
<a id="X10D_Math_UInt32Extensions_GreatestCommonFactor_" data-uid="X10D.Math.UInt32Extensions.GreatestCommonFactor*"></a>
<h4 id="X10D_Math_UInt32Extensions_GreatestCommonFactor_System_UInt32_System_UInt32_" data-uid="X10D.Math.UInt32Extensions.GreatestCommonFactor(System.UInt32,System.UInt32)">GreatestCommonFactor(UInt32, UInt32)</h4>
<div class="markdown level1 summary"><p>Calculates the greatest common factor between the current 32-bit unsigned integer, and another 32-bit unsigned
integer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static uint GreatestCommonFactor(this uint value, uint other)</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.UInt32</span></td>
<td><span class="parametername">value</span></td>
<td><p>The first value.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.UInt32</span></td>
<td><span class="parametername">other</span></td>
<td><p>The second value.</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.UInt32</span></td>
<td><p>The greatest common factor between <code data-dev-comment-type="paramref" class="paramref">value</code> and <code data-dev-comment-type="paramref" class="paramref">other</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_Math_UInt32Extensions_IsEven_System_UInt32_.md&amp;value=---%0Auid%3A%20X10D.Math.UInt32Extensions.IsEven(System.UInt32)%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/Math/UInt32Extensions.cs/#L90">View Source</a>
</span>
<a id="X10D_Math_UInt32Extensions_IsEven_" data-uid="X10D.Math.UInt32Extensions.IsEven*"></a>
<h4 id="X10D_Math_UInt32Extensions_IsEven_System_UInt32_" data-uid="X10D.Math.UInt32Extensions.IsEven(System.UInt32)">IsEven(UInt32)</h4>
<div class="markdown level1 summary"><p>Returns a value indicating whether the current value is evenly divisible by 2.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool IsEven(this uint value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.UInt32</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose parity to check.</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><span class="xref">true</span> if <code data-dev-comment-type="paramref" class="paramref">value</code> is evenly divisible by 2, or <span class="xref">false</span>
otherwise.</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_Math_UInt32Extensions_IsOdd_System_UInt32_.md&amp;value=---%0Auid%3A%20X10D.Math.UInt32Extensions.IsOdd(System.UInt32)%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/Math/UInt32Extensions.cs/#L119">View Source</a>
</span>
<a id="X10D_Math_UInt32Extensions_IsOdd_" data-uid="X10D.Math.UInt32Extensions.IsOdd*"></a>
<h4 id="X10D_Math_UInt32Extensions_IsOdd_System_UInt32_" data-uid="X10D.Math.UInt32Extensions.IsOdd(System.UInt32)">IsOdd(UInt32)</h4>
<div class="markdown level1 summary"><p>Returns a value indicating whether the current value is not evenly divisible by 2.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool IsOdd(this uint value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.UInt32</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose parity to check.</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><span class="xref">true</span> if <code data-dev-comment-type="paramref" class="paramref">value</code> is not evenly divisible by 2, or <span class="xref">false</span>
otherwise.</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_Math_UInt32Extensions_IsPrime_System_UInt32_.md&amp;value=---%0Auid%3A%20X10D.Math.UInt32Extensions.IsPrime(System.UInt32)%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/Math/UInt32Extensions.cs/#L104">View Source</a>
</span>
<a id="X10D_Math_UInt32Extensions_IsPrime_" data-uid="X10D.Math.UInt32Extensions.IsPrime*"></a>
<h4 id="X10D_Math_UInt32Extensions_IsPrime_System_UInt32_" data-uid="X10D.Math.UInt32Extensions.IsPrime(System.UInt32)">IsPrime(UInt32)</h4>
<div class="markdown level1 summary"><p>Returns a value indicating whether the current value is a prime number.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool IsPrime(this uint value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.UInt32</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose primality to check.</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><span class="xref">true</span> if <code data-dev-comment-type="paramref" class="paramref">value</code> is prime; otherwise, <span class="xref">false</span>.</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_Math_UInt32Extensions_LowestCommonMultiple_System_UInt32_System_UInt32_.md&amp;value=---%0Auid%3A%20X10D.Math.UInt32Extensions.LowestCommonMultiple(System.UInt32%2CSystem.UInt32)%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/Math/UInt32Extensions.cs/#L133">View Source</a>
</span>
<a id="X10D_Math_UInt32Extensions_LowestCommonMultiple_" data-uid="X10D.Math.UInt32Extensions.LowestCommonMultiple*"></a>
<h4 id="X10D_Math_UInt32Extensions_LowestCommonMultiple_System_UInt32_System_UInt32_" data-uid="X10D.Math.UInt32Extensions.LowestCommonMultiple(System.UInt32,System.UInt32)">LowestCommonMultiple(UInt32, UInt32)</h4>
<div class="markdown level1 summary"><p>Calculates the lowest common multiple between the current 32-bit unsigned integer, and another 32-bit unsigned
integer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static uint LowestCommonMultiple(this uint value, uint other)</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.UInt32</span></td>
<td><span class="parametername">value</span></td>
<td><p>The first value.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.UInt32</span></td>
<td><span class="parametername">other</span></td>
<td><p>The second value.</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.UInt32</span></td>
<td><p>The lowest common multiple between <code data-dev-comment-type="paramref" class="paramref">value</code> and <code data-dev-comment-type="paramref" class="paramref">other</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_Math_UInt32Extensions_MultiplicativePersistence_System_UInt32_.md&amp;value=---%0Auid%3A%20X10D.Math.UInt32Extensions.MultiplicativePersistence(System.UInt32)%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/Math/UInt32Extensions.cs/#L148">View Source</a>
</span>
<a id="X10D_Math_UInt32Extensions_MultiplicativePersistence_" data-uid="X10D.Math.UInt32Extensions.MultiplicativePersistence*"></a>
<h4 id="X10D_Math_UInt32Extensions_MultiplicativePersistence_System_UInt32_" data-uid="X10D.Math.UInt32Extensions.MultiplicativePersistence(System.UInt32)">MultiplicativePersistence(UInt32)</h4>
<div class="markdown level1 summary"><p>Returns the multiplicative persistence of 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 int MultiplicativePersistence(this uint value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.UInt32</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose multiplicative persistence to calculate.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>The multiplicative persistence.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="X10D_Math_UInt32Extensions_MultiplicativePersistence_System_UInt32__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Multiplicative persistence is defined as the recursive digital product until that product is a single digit.</p>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Math_UInt32Extensions_Wrap_System_UInt32_System_UInt32_.md&amp;value=---%0Auid%3A%20X10D.Math.UInt32Extensions.Wrap(System.UInt32%2CSystem.UInt32)%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/Math/UInt32Extensions.cs/#L175">View Source</a>
</span>
<a id="X10D_Math_UInt32Extensions_Wrap_" data-uid="X10D.Math.UInt32Extensions.Wrap*"></a>
<h4 id="X10D_Math_UInt32Extensions_Wrap_System_UInt32_System_UInt32_" data-uid="X10D.Math.UInt32Extensions.Wrap(System.UInt32,System.UInt32)">Wrap(UInt32, UInt32)</h4>
<div class="markdown level1 summary"><p>Wraps the current 32-bit unsigned integer between 0 and a high 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 uint Wrap(this uint value, uint length)</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.UInt32</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to wrap.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.UInt32</span></td>
<td><span class="parametername">length</span></td>
<td><p>The exclusive upper bound.</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.UInt32</span></td>
<td><p>The wrapped value.</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_Math_UInt32Extensions_Wrap_System_UInt32_System_UInt32_System_UInt32_.md&amp;value=---%0Auid%3A%20X10D.Math.UInt32Extensions.Wrap(System.UInt32%2CSystem.UInt32%2CSystem.UInt32)%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/Math/UInt32Extensions.cs/#L162">View Source</a>
</span>
<a id="X10D_Math_UInt32Extensions_Wrap_" data-uid="X10D.Math.UInt32Extensions.Wrap*"></a>
<h4 id="X10D_Math_UInt32Extensions_Wrap_System_UInt32_System_UInt32_System_UInt32_" data-uid="X10D.Math.UInt32Extensions.Wrap(System.UInt32,System.UInt32,System.UInt32)">Wrap(UInt32, UInt32, UInt32)</h4>
<div class="markdown level1 summary"><p>Wraps the current 32-bit unsigned integer between a low and a high 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 uint Wrap(this uint value, uint low, uint high)</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.UInt32</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to wrap.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.UInt32</span></td>
<td><span class="parametername">low</span></td>
<td><p>The inclusive lower bound.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.UInt32</span></td>
<td><span class="parametername">high</span></td>
<td><p>The exclusive upper bound.</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.UInt32</span></td>
<td><p>The wrapped value.</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>

View File

@ -0,0 +1,726 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class UInt64Extensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class UInt64Extensions
| 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.Math.UInt64Extensions">
<h1 id="X10D_Math_UInt64Extensions" data-uid="X10D.Math.UInt64Extensions" class="text-break">Class UInt64Extensions
</h1>
<div class="markdown level0 summary"><p>Extension methods for <see cref="!:System.UInt64"></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">UInt64Extensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.Math.html">X10D.Math</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_Math_UInt64Extensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class UInt64Extensions : 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_Math_UInt64Extensions_CountDigits_System_UInt64_.md&amp;value=---%0Auid%3A%20X10D.Math.UInt64Extensions.CountDigits(System.UInt64)%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/Math/UInt64Extensions.cs/#L18">View Source</a>
</span>
<a id="X10D_Math_UInt64Extensions_CountDigits_" data-uid="X10D.Math.UInt64Extensions.CountDigits*"></a>
<h4 id="X10D_Math_UInt64Extensions_CountDigits_System_UInt64_" data-uid="X10D.Math.UInt64Extensions.CountDigits(System.UInt64)">CountDigits(UInt64)</h4>
<div class="markdown level1 summary"><p>Returns the number of digits in the current 64-bit unsigned integer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static int CountDigits(this ulong value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.UInt64</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose digit count to compute.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>The number of digits in <code data-dev-comment-type="paramref" class="paramref">value</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_Math_UInt64Extensions_DigitalRoot_System_UInt64_.md&amp;value=---%0Auid%3A%20X10D.Math.UInt64Extensions.DigitalRoot(System.UInt64)%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/Math/UInt64Extensions.cs/#L37">View Source</a>
</span>
<a id="X10D_Math_UInt64Extensions_DigitalRoot_" data-uid="X10D.Math.UInt64Extensions.DigitalRoot*"></a>
<h4 id="X10D_Math_UInt64Extensions_DigitalRoot_System_UInt64_" data-uid="X10D.Math.UInt64Extensions.DigitalRoot(System.UInt64)">DigitalRoot(UInt64)</h4>
<div class="markdown level1 summary"><p>Computes the digital root of the current 64-bit unsigned integer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static ulong DigitalRoot(this ulong value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.UInt64</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose digital root to compute.</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.UInt64</span></td>
<td><p>The digital root of <code data-dev-comment-type="paramref" class="paramref">value</code>.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="X10D_Math_UInt64Extensions_DigitalRoot_System_UInt64__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The digital root is defined as the recursive sum of digits until that result is a single digit.</p>
<p>For example, the digital root of 239 is 5: <code>2 + 3 + 9 = 14</code>, then <code>1 + 4 = 5</code>.</p>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Math_UInt64Extensions_Factorial_System_UInt64_.md&amp;value=---%0Auid%3A%20X10D.Math.UInt64Extensions.Factorial(System.UInt64)%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/Math/UInt64Extensions.cs/#L50">View Source</a>
</span>
<a id="X10D_Math_UInt64Extensions_Factorial_" data-uid="X10D.Math.UInt64Extensions.Factorial*"></a>
<h4 id="X10D_Math_UInt64Extensions_Factorial_System_UInt64_" data-uid="X10D.Math.UInt64Extensions.Factorial(System.UInt64)">Factorial(UInt64)</h4>
<div class="markdown level1 summary"><p>Returns the factorial of the current 64-bit unsigned integer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static ulong Factorial(this ulong value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.UInt64</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose factorial to compute.</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.UInt64</span></td>
<td><p>The factorial of <code data-dev-comment-type="paramref" class="paramref">value</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_Math_UInt64Extensions_GreatestCommonFactor_System_UInt64_System_UInt64_.md&amp;value=---%0Auid%3A%20X10D.Math.UInt64Extensions.GreatestCommonFactor(System.UInt64%2CSystem.UInt64)%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/Math/UInt64Extensions.cs/#L75">View Source</a>
</span>
<a id="X10D_Math_UInt64Extensions_GreatestCommonFactor_" data-uid="X10D.Math.UInt64Extensions.GreatestCommonFactor*"></a>
<h4 id="X10D_Math_UInt64Extensions_GreatestCommonFactor_System_UInt64_System_UInt64_" data-uid="X10D.Math.UInt64Extensions.GreatestCommonFactor(System.UInt64,System.UInt64)">GreatestCommonFactor(UInt64, UInt64)</h4>
<div class="markdown level1 summary"><p>Calculates the greatest common factor between the current 64-bit unsigned integer, and another 64-bit unsigned
integer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static ulong GreatestCommonFactor(this ulong value, ulong other)</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.UInt64</span></td>
<td><span class="parametername">value</span></td>
<td><p>The first value.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.UInt64</span></td>
<td><span class="parametername">other</span></td>
<td><p>The second value.</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.UInt64</span></td>
<td><p>The greatest common factor between <code data-dev-comment-type="paramref" class="paramref">value</code> and <code data-dev-comment-type="paramref" class="paramref">other</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_Math_UInt64Extensions_IsEven_System_UInt64_.md&amp;value=---%0Auid%3A%20X10D.Math.UInt64Extensions.IsEven(System.UInt64)%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/Math/UInt64Extensions.cs/#L95">View Source</a>
</span>
<a id="X10D_Math_UInt64Extensions_IsEven_" data-uid="X10D.Math.UInt64Extensions.IsEven*"></a>
<h4 id="X10D_Math_UInt64Extensions_IsEven_System_UInt64_" data-uid="X10D.Math.UInt64Extensions.IsEven(System.UInt64)">IsEven(UInt64)</h4>
<div class="markdown level1 summary"><p>Returns a value indicating whether the current value is evenly divisible by 2.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool IsEven(this ulong value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.UInt64</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose parity to check.</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><span class="xref">true</span> if <code data-dev-comment-type="paramref" class="paramref">value</code> is evenly divisible by 2, or <span class="xref">false</span>
otherwise.</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_Math_UInt64Extensions_IsOdd_System_UInt64_.md&amp;value=---%0Auid%3A%20X10D.Math.UInt64Extensions.IsOdd(System.UInt64)%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/Math/UInt64Extensions.cs/#L143">View Source</a>
</span>
<a id="X10D_Math_UInt64Extensions_IsOdd_" data-uid="X10D.Math.UInt64Extensions.IsOdd*"></a>
<h4 id="X10D_Math_UInt64Extensions_IsOdd_System_UInt64_" data-uid="X10D.Math.UInt64Extensions.IsOdd(System.UInt64)">IsOdd(UInt64)</h4>
<div class="markdown level1 summary"><p>Returns a value indicating whether the current value is not evenly divisible by 2.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool IsOdd(this ulong value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.UInt64</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose parity to check.</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><span class="xref">true</span> if <code data-dev-comment-type="paramref" class="paramref">value</code> is not evenly divisible by 2, or <span class="xref">false</span>
otherwise.</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_Math_UInt64Extensions_IsPrime_System_UInt64_.md&amp;value=---%0Auid%3A%20X10D.Math.UInt64Extensions.IsPrime(System.UInt64)%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/Math/UInt64Extensions.cs/#L109">View Source</a>
</span>
<a id="X10D_Math_UInt64Extensions_IsPrime_" data-uid="X10D.Math.UInt64Extensions.IsPrime*"></a>
<h4 id="X10D_Math_UInt64Extensions_IsPrime_System_UInt64_" data-uid="X10D.Math.UInt64Extensions.IsPrime(System.UInt64)">IsPrime(UInt64)</h4>
<div class="markdown level1 summary"><p>Returns a value indicating whether the current value is a prime number.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool IsPrime(this ulong value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.UInt64</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose primality to check.</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><span class="xref">true</span> if <code data-dev-comment-type="paramref" class="paramref">value</code> is prime; otherwise, <span class="xref">false</span>.</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_Math_UInt64Extensions_LowestCommonMultiple_System_UInt64_System_UInt64_.md&amp;value=---%0Auid%3A%20X10D.Math.UInt64Extensions.LowestCommonMultiple(System.UInt64%2CSystem.UInt64)%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/Math/UInt64Extensions.cs/#L157">View Source</a>
</span>
<a id="X10D_Math_UInt64Extensions_LowestCommonMultiple_" data-uid="X10D.Math.UInt64Extensions.LowestCommonMultiple*"></a>
<h4 id="X10D_Math_UInt64Extensions_LowestCommonMultiple_System_UInt64_System_UInt64_" data-uid="X10D.Math.UInt64Extensions.LowestCommonMultiple(System.UInt64,System.UInt64)">LowestCommonMultiple(UInt64, UInt64)</h4>
<div class="markdown level1 summary"><p>Calculates the lowest common multiple between the current 64-bit unsigned integer, and another 64-bit unsigned
integer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static ulong LowestCommonMultiple(this ulong value, ulong other)</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.UInt64</span></td>
<td><span class="parametername">value</span></td>
<td><p>The first value.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.UInt64</span></td>
<td><span class="parametername">other</span></td>
<td><p>The second value.</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.UInt64</span></td>
<td><p>The lowest common multiple between <code data-dev-comment-type="paramref" class="paramref">value</code> and <code data-dev-comment-type="paramref" class="paramref">other</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_Math_UInt64Extensions_MultiplicativePersistence_System_UInt64_.md&amp;value=---%0Auid%3A%20X10D.Math.UInt64Extensions.MultiplicativePersistence(System.UInt64)%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/Math/UInt64Extensions.cs/#L187">View Source</a>
</span>
<a id="X10D_Math_UInt64Extensions_MultiplicativePersistence_" data-uid="X10D.Math.UInt64Extensions.MultiplicativePersistence*"></a>
<h4 id="X10D_Math_UInt64Extensions_MultiplicativePersistence_System_UInt64_" data-uid="X10D.Math.UInt64Extensions.MultiplicativePersistence(System.UInt64)">MultiplicativePersistence(UInt64)</h4>
<div class="markdown level1 summary"><p>Returns the multiplicative persistence of 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 int MultiplicativePersistence(this ulong value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.UInt64</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value whose multiplicative persistence to calculate.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>The multiplicative persistence.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="X10D_Math_UInt64Extensions_MultiplicativePersistence_System_UInt64__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Multiplicative persistence is defined as the recursive digital product until that product is a single digit.</p>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Math_UInt64Extensions_Wrap_System_UInt64_System_UInt64_.md&amp;value=---%0Auid%3A%20X10D.Math.UInt64Extensions.Wrap(System.UInt64%2CSystem.UInt64)%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/Math/UInt64Extensions.cs/#L246">View Source</a>
</span>
<a id="X10D_Math_UInt64Extensions_Wrap_" data-uid="X10D.Math.UInt64Extensions.Wrap*"></a>
<h4 id="X10D_Math_UInt64Extensions_Wrap_System_UInt64_System_UInt64_" data-uid="X10D.Math.UInt64Extensions.Wrap(System.UInt64,System.UInt64)">Wrap(UInt64, UInt64)</h4>
<div class="markdown level1 summary"><p>Wraps the current 64-bit unsigned integer between 0 and a high 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 ulong Wrap(this ulong value, ulong length)</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.UInt64</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to wrap.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.UInt64</span></td>
<td><span class="parametername">length</span></td>
<td><p>The exclusive upper bound.</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.UInt64</span></td>
<td><p>The wrapped value.</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_Math_UInt64Extensions_Wrap_System_UInt64_System_UInt64_System_UInt64_.md&amp;value=---%0Auid%3A%20X10D.Math.UInt64Extensions.Wrap(System.UInt64%2CSystem.UInt64%2CSystem.UInt64)%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/Math/UInt64Extensions.cs/#L232">View Source</a>
</span>
<a id="X10D_Math_UInt64Extensions_Wrap_" data-uid="X10D.Math.UInt64Extensions.Wrap*"></a>
<h4 id="X10D_Math_UInt64Extensions_Wrap_System_UInt64_System_UInt64_System_UInt64_" data-uid="X10D.Math.UInt64Extensions.Wrap(System.UInt64,System.UInt64,System.UInt64)">Wrap(UInt64, UInt64, UInt64)</h4>
<div class="markdown level1 summary"><p>Wraps the current 64-bit unsigned integer between a low and a high 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 ulong Wrap(this ulong value, ulong low, ulong high)</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.UInt64</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to wrap.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.UInt64</span></td>
<td><span class="parametername">low</span></td>
<td><p>The inclusive lower bound.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.UInt64</span></td>
<td><span class="parametername">high</span></td>
<td><p>The exclusive upper bound.</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.UInt64</span></td>
<td><p>The wrapped value.</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>

170
api/X10D.Math.html Normal file
View File

@ -0,0 +1,170 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Namespace X10D.Math
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Namespace X10D.Math
| 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.Math">
<h1 id="X10D_Math" data-uid="X10D.Math" class="text-break">Namespace X10D.Math
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>
<div class="markdown level0 remarks"></div>
<h3 id="classes">Classes
</h3>
<h5><a class="xref" href="X10D.Math.BigIntegerExtensions.html">BigIntegerExtensions</a></h5>
<section><p>Math-related extension methods for <see cref="!:BigInteger"></see>.</p>
</section>
<h5><a class="xref" href="X10D.Math.ByteExtensions.html">ByteExtensions</a></h5>
<section><p>Math-related extension methods for <see cref="!:System.Byte"></see>.</p>
</section>
<h5><a class="xref" href="X10D.Math.ComparableExtensions.html">ComparableExtensions</a></h5>
<section><p>Extension methods for <see cref="!:IComparable&lt;T>"></see>.</p>
</section>
<h5><a class="xref" href="X10D.Math.DecimalExtensions.html">DecimalExtensions</a></h5>
<section><p>Extension methods for <see cref="!:System.Decimal"></see>.</p>
</section>
<h5><a class="xref" href="X10D.Math.DoubleExtensions.html">DoubleExtensions</a></h5>
<section><p>Mathematical extension methods.</p>
</section>
<h5><a class="xref" href="X10D.Math.Int16Extensions.html">Int16Extensions</a></h5>
<section><p>Extension methods for <see cref="!:System.Int16"></see>.</p>
</section>
<h5><a class="xref" href="X10D.Math.Int32Extensions.html">Int32Extensions</a></h5>
<section><p>Extension methods for <see cref="!:System.Int32"></see>.</p>
</section>
<h5><a class="xref" href="X10D.Math.Int64Extensions.html">Int64Extensions</a></h5>
<section><p>Extension methods for <see cref="!:System.Int64"></see>.</p>
</section>
<h5><a class="xref" href="X10D.Math.MathUtility.html">MathUtility</a></h5>
<section><p>Provides static helpers methods for mathematical functions not found in the .NET <see cref="!:System.Math"></see> class.</p>
</section>
<h5><a class="xref" href="X10D.Math.SByteExtensions.html">SByteExtensions</a></h5>
<section><p>Math-related extension methods for <see cref="!:System.SByte"></see>.</p>
</section>
<h5><a class="xref" href="X10D.Math.SingleExtensions.html">SingleExtensions</a></h5>
<section><p>Extension methods for <see cref="!:System.Single"></see>.</p>
</section>
<h5><a class="xref" href="X10D.Math.UInt16Extensions.html">UInt16Extensions</a></h5>
<section><p>Extension methods for <see cref="!:System.UInt16"></see>.</p>
</section>
<h5><a class="xref" href="X10D.Math.UInt32Extensions.html">UInt32Extensions</a></h5>
<section><p>Extension methods for <see cref="!:System.UInt32"></see>.</p>
</section>
<h5><a class="xref" href="X10D.Math.UInt64Extensions.html">UInt64Extensions</a></h5>
<section><p>Extension methods for <see cref="!:System.UInt64"></see>.</p>
</section>
<h3 id="enums">Enums
</h3>
<h5><a class="xref" href="X10D.Math.InclusiveOptions.html">InclusiveOptions</a></h5>
<section><p>Provides options for <a class="xref" href="X10D.Math.ComparableExtensions.html#X10D_Math_ComparableExtensions_Between__3___0___1___2_X10D_Math_InclusiveOptions_">Between&lt;T1, T2, T3&gt;(T1, T2, T3, InclusiveOptions)</a> clusivity.</p>
</section>
</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>

View File

@ -0,0 +1,243 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class EndPointExtensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class EndPointExtensions
| 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.Net.EndPointExtensions">
<h1 id="X10D_Net_EndPointExtensions" data-uid="X10D.Net.EndPointExtensions" class="text-break">Class EndPointExtensions
</h1>
<div class="markdown level0 summary"><p>Extension methods for <see cref="!:EndPoint"></see> and derived types.</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">EndPointExtensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.Net.html">X10D.Net</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_Net_EndPointExtensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class EndPointExtensions : 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_Net_EndPointExtensions_GetHost_EndPoint_.md&amp;value=---%0Auid%3A%20X10D.Net.EndPointExtensions.GetHost(EndPoint)%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/Net/EndPointExtensions.cs/#L25">View Source</a>
</span>
<a id="X10D_Net_EndPointExtensions_GetHost_" data-uid="X10D.Net.EndPointExtensions.GetHost*"></a>
<h4 id="X10D_Net_EndPointExtensions_GetHost_EndPoint_" data-uid="X10D.Net.EndPointExtensions.GetHost(EndPoint)">GetHost(EndPoint)</h4>
<div class="markdown level1 summary"><p>Returns the hostname for the current <see cref="!:System.Net.EndPoint"></see>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static string GetHost(this EndPoint endPoint)</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">EndPoint</span></td>
<td><span class="parametername">endPoint</span></td>
<td><p>The endpoint whose hostname to get.</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.String</span></td>
<td><p><see cref="!:IPEndPoint.Address"></see> if <code data-dev-comment-type="paramref" class="paramref">endPoint</code> is <see cref="!:IPEndPoint"></see>.</p>
-or-
<p><see cref="!:DnsEndPoint.Host"></see> if <code data-dev-comment-type="paramref" class="paramref">endPoint</code> is <see cref="!:DnsEndPoint"></see>.</p>
-or-
<p><see cref="!:string.Empty"></see> otherwise.</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_Net_EndPointExtensions_GetPort_EndPoint_.md&amp;value=---%0Auid%3A%20X10D.Net.EndPointExtensions.GetPort(EndPoint)%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/Net/EndPointExtensions.cs/#L58">View Source</a>
</span>
<a id="X10D_Net_EndPointExtensions_GetPort_" data-uid="X10D.Net.EndPointExtensions.GetPort*"></a>
<h4 id="X10D_Net_EndPointExtensions_GetPort_EndPoint_" data-uid="X10D.Net.EndPointExtensions.GetPort(EndPoint)">GetPort(EndPoint)</h4>
<div class="markdown level1 summary"><p>Returns the port number for the current <see cref="!:System.Net.EndPoint"></see>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static int GetPort(this EndPoint endPoint)</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">EndPoint</span></td>
<td><span class="parametername">endPoint</span></td>
<td><p>The endpoint whose port number to get.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p><see cref="!:IPEndPoint.Port"></see> if <code data-dev-comment-type="paramref" class="paramref">endPoint</code> is <see cref="!:IPEndPoint"></see>.</p>
-or-
<p><see cref="!:DnsEndPoint.Port"></see> if <code data-dev-comment-type="paramref" class="paramref">endPoint</code> is <see cref="!:DnsEndPoint"></see>.</p>
-or-
<p><code>0</code> otherwise.</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>

View File

@ -0,0 +1,235 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class IPAddressExtensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class IPAddressExtensions
| 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.Net.IPAddressExtensions">
<h1 id="X10D_Net_IPAddressExtensions" data-uid="X10D.Net.IPAddressExtensions" class="text-break">Class IPAddressExtensions
</h1>
<div class="markdown level0 summary"><p>Extension methods for <see cref="!:IPAddress"></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">IPAddressExtensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.Net.html">X10D.Net</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_Net_IPAddressExtensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class IPAddressExtensions : 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_Net_IPAddressExtensions_IsIPv4_IPAddress_.md&amp;value=---%0Auid%3A%20X10D.Net.IPAddressExtensions.IsIPv4(IPAddress)%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/Net/IPAddressExtensions.cs/#L22">View Source</a>
</span>
<a id="X10D_Net_IPAddressExtensions_IsIPv4_" data-uid="X10D.Net.IPAddressExtensions.IsIPv4*"></a>
<h4 id="X10D_Net_IPAddressExtensions_IsIPv4_IPAddress_" data-uid="X10D.Net.IPAddressExtensions.IsIPv4(IPAddress)">IsIPv4(IPAddress)</h4>
<div class="markdown level1 summary"><p>Returns a value indicating whether the specified IP address is a valid IPv4 address.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool IsIPv4(this IPAddress address)</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">IPAddress</span></td>
<td><span class="parametername">address</span></td>
<td><p>The IP address to check.</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><span class="xref">true</span> if the specified IP address is a valid IPv4 address; otherwise, <span class="xref">false</span>.</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_Net_IPAddressExtensions_IsIPv6_IPAddress_.md&amp;value=---%0Auid%3A%20X10D.Net.IPAddressExtensions.IsIPv6(IPAddress)%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/Net/IPAddressExtensions.cs/#L46">View Source</a>
</span>
<a id="X10D_Net_IPAddressExtensions_IsIPv6_" data-uid="X10D.Net.IPAddressExtensions.IsIPv6*"></a>
<h4 id="X10D_Net_IPAddressExtensions_IsIPv6_IPAddress_" data-uid="X10D.Net.IPAddressExtensions.IsIPv6(IPAddress)">IsIPv6(IPAddress)</h4>
<div class="markdown level1 summary"><p>Returns a value indicating whether the specified IP address is a valid IPv6 address.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool IsIPv6(this IPAddress address)</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">IPAddress</span></td>
<td><span class="parametername">address</span></td>
<td><p>The IP address to check.</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><span class="xref">true</span> if the specified IP address is a valid IPv6 address; otherwise, <span class="xref">false</span>.</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>

View File

@ -0,0 +1,235 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class Int16Extensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class Int16Extensions
| 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.Net.Int16Extensions">
<h1 id="X10D_Net_Int16Extensions" data-uid="X10D.Net.Int16Extensions" class="text-break">Class Int16Extensions
</h1>
<div class="markdown level0 summary"><p>Network-related extension methods for <see cref="!:System.Int16"></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">Int16Extensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.Net.html">X10D.Net</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_Net_Int16Extensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class Int16Extensions : 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_Net_Int16Extensions_HostToNetworkOrder_System_Int16_.md&amp;value=---%0Auid%3A%20X10D.Net.Int16Extensions.HostToNetworkOrder(System.Int16)%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/Net/Int16Extensions.cs/#L18">View Source</a>
</span>
<a id="X10D_Net_Int16Extensions_HostToNetworkOrder_" data-uid="X10D.Net.Int16Extensions.HostToNetworkOrder*"></a>
<h4 id="X10D_Net_Int16Extensions_HostToNetworkOrder_System_Int16_" data-uid="X10D.Net.Int16Extensions.HostToNetworkOrder(System.Int16)">HostToNetworkOrder(Int16)</h4>
<div class="markdown level1 summary"><p>Converts a 16-bit signed integer value from host byte order to network byte order.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static short HostToNetworkOrder(this short value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int16</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to convert, expressed in host byte order.</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.Int16</span></td>
<td><p>An integer value, expressed in network byte order.</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_Net_Int16Extensions_NetworkToHostOrder_System_Int16_.md&amp;value=---%0Auid%3A%20X10D.Net.Int16Extensions.NetworkToHostOrder(System.Int16)%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/Net/Int16Extensions.cs/#L30">View Source</a>
</span>
<a id="X10D_Net_Int16Extensions_NetworkToHostOrder_" data-uid="X10D.Net.Int16Extensions.NetworkToHostOrder*"></a>
<h4 id="X10D_Net_Int16Extensions_NetworkToHostOrder_System_Int16_" data-uid="X10D.Net.Int16Extensions.NetworkToHostOrder(System.Int16)">NetworkToHostOrder(Int16)</h4>
<div class="markdown level1 summary"><p>Converts a 16-bit signed integer value from network byte order to host byte order.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static short NetworkToHostOrder(this short value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int16</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to convert, expressed in network byte order.</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.Int16</span></td>
<td><p>An integer value, expressed in host byte order.</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>

View File

@ -0,0 +1,235 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class Int32Extensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class Int32Extensions
| 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.Net.Int32Extensions">
<h1 id="X10D_Net_Int32Extensions" data-uid="X10D.Net.Int32Extensions" class="text-break">Class Int32Extensions
</h1>
<div class="markdown level0 summary"><p>IO-related extension methods for <see cref="!:System.Int32"></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">Int32Extensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.Net.html">X10D.Net</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_Net_Int32Extensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class Int32Extensions : 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_Net_Int32Extensions_HostToNetworkOrder_System_Int32_.md&amp;value=---%0Auid%3A%20X10D.Net.Int32Extensions.HostToNetworkOrder(System.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Net/Int32Extensions.cs/#L18">View Source</a>
</span>
<a id="X10D_Net_Int32Extensions_HostToNetworkOrder_" data-uid="X10D.Net.Int32Extensions.HostToNetworkOrder*"></a>
<h4 id="X10D_Net_Int32Extensions_HostToNetworkOrder_System_Int32_" data-uid="X10D.Net.Int32Extensions.HostToNetworkOrder(System.Int32)">HostToNetworkOrder(Int32)</h4>
<div class="markdown level1 summary"><p>Converts a 32-bit signed integer value from host byte order to network byte order.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static int HostToNetworkOrder(this int value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to convert, expressed in host byte order.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>An integer value, expressed in network byte order.</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_Net_Int32Extensions_NetworkToHostOrder_System_Int32_.md&amp;value=---%0Auid%3A%20X10D.Net.Int32Extensions.NetworkToHostOrder(System.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Net/Int32Extensions.cs/#L30">View Source</a>
</span>
<a id="X10D_Net_Int32Extensions_NetworkToHostOrder_" data-uid="X10D.Net.Int32Extensions.NetworkToHostOrder*"></a>
<h4 id="X10D_Net_Int32Extensions_NetworkToHostOrder_System_Int32_" data-uid="X10D.Net.Int32Extensions.NetworkToHostOrder(System.Int32)">NetworkToHostOrder(Int32)</h4>
<div class="markdown level1 summary"><p>Converts a 32-bit signed integer value from network byte order to host byte order.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static int NetworkToHostOrder(this int value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to convert, expressed in network byte order.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>An integer value, expressed in host byte order.</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>

View File

@ -0,0 +1,235 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class Int64Extensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class Int64Extensions
| 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.Net.Int64Extensions">
<h1 id="X10D_Net_Int64Extensions" data-uid="X10D.Net.Int64Extensions" class="text-break">Class Int64Extensions
</h1>
<div class="markdown level0 summary"><p>IO-related extension methods for <see cref="!:System.Int64"></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">Int64Extensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.Net.html">X10D.Net</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_Net_Int64Extensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class Int64Extensions : 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_Net_Int64Extensions_HostToNetworkOrder_System_Int64_.md&amp;value=---%0Auid%3A%20X10D.Net.Int64Extensions.HostToNetworkOrder(System.Int64)%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/Net/Int64Extensions.cs/#L18">View Source</a>
</span>
<a id="X10D_Net_Int64Extensions_HostToNetworkOrder_" data-uid="X10D.Net.Int64Extensions.HostToNetworkOrder*"></a>
<h4 id="X10D_Net_Int64Extensions_HostToNetworkOrder_System_Int64_" data-uid="X10D.Net.Int64Extensions.HostToNetworkOrder(System.Int64)">HostToNetworkOrder(Int64)</h4>
<div class="markdown level1 summary"><p>Converts a 64-bit signed integer value from host byte order to network byte order.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static long HostToNetworkOrder(this long value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int64</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to convert, expressed in host byte order.</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.Int64</span></td>
<td><p>An integer value, expressed in network byte order.</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_Net_Int64Extensions_NetworkToHostOrder_System_Int64_.md&amp;value=---%0Auid%3A%20X10D.Net.Int64Extensions.NetworkToHostOrder(System.Int64)%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/Net/Int64Extensions.cs/#L30">View Source</a>
</span>
<a id="X10D_Net_Int64Extensions_NetworkToHostOrder_" data-uid="X10D.Net.Int64Extensions.NetworkToHostOrder*"></a>
<h4 id="X10D_Net_Int64Extensions_NetworkToHostOrder_System_Int64_" data-uid="X10D.Net.Int64Extensions.NetworkToHostOrder(System.Int64)">NetworkToHostOrder(Int64)</h4>
<div class="markdown level1 summary"><p>Converts a 64-bit signed integer value from network byte order to host byte order.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static long NetworkToHostOrder(this long value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int64</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to convert, expressed in network byte order.</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.Int64</span></td>
<td><p>An integer value, expressed in host byte order.</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>

138
api/X10D.Net.html Normal file
View File

@ -0,0 +1,138 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Namespace X10D.Net
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Namespace X10D.Net
| 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.Net">
<h1 id="X10D_Net" data-uid="X10D.Net" class="text-break">Namespace X10D.Net
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>
<div class="markdown level0 remarks"></div>
<h3 id="classes">Classes
</h3>
<h5><a class="xref" href="X10D.Net.EndPointExtensions.html">EndPointExtensions</a></h5>
<section><p>Extension methods for <see cref="!:EndPoint"></see> and derived types.</p>
</section>
<h5><a class="xref" href="X10D.Net.Int16Extensions.html">Int16Extensions</a></h5>
<section><p>Network-related extension methods for <see cref="!:System.Int16"></see>.</p>
</section>
<h5><a class="xref" href="X10D.Net.Int32Extensions.html">Int32Extensions</a></h5>
<section><p>IO-related extension methods for <see cref="!:System.Int32"></see>.</p>
</section>
<h5><a class="xref" href="X10D.Net.Int64Extensions.html">Int64Extensions</a></h5>
<section><p>IO-related extension methods for <see cref="!:System.Int64"></see>.</p>
</section>
<h5><a class="xref" href="X10D.Net.IPAddressExtensions.html">IPAddressExtensions</a></h5>
<section><p>Extension methods for <see cref="!:IPAddress"></see>.</p>
</section>
</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>

View File

@ -0,0 +1,352 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class ByteExtensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class ByteExtensions
| 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.Numerics.ByteExtensions">
<h1 id="X10D_Numerics_ByteExtensions" data-uid="X10D.Numerics.ByteExtensions" class="text-break">Class ByteExtensions
</h1>
<div class="markdown level0 summary"><p>Numeric-related extension methods for <see cref="!:System.Byte"></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">ByteExtensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.Numerics.html">X10D.Numerics</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_Numerics_ByteExtensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class ByteExtensions : 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_Numerics_ByteExtensions_PopCount_System_Byte_.md&amp;value=---%0Auid%3A%20X10D.Numerics.ByteExtensions.PopCount(System.Byte)%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/Numerics/ByteExtensions.cs/#L22">View Source</a>
</span>
<a id="X10D_Numerics_ByteExtensions_PopCount_" data-uid="X10D.Numerics.ByteExtensions.PopCount*"></a>
<h4 id="X10D_Numerics_ByteExtensions_PopCount_System_Byte_" data-uid="X10D.Numerics.ByteExtensions.PopCount(System.Byte)">PopCount(Byte)</h4>
<div class="markdown level1 summary"><p>Returns the population count (number of bits set) of a mask.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static int PopCount(this byte value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Byte</span></td>
<td><span class="parametername">value</span></td>
<td><p>The mask.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>The population count of <code data-dev-comment-type="paramref" class="paramref">value</code>.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="X10D_Numerics_ByteExtensions_PopCount_System_Byte__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method is similar in behavior to the x86 instruction
<a href="https://docs.microsoft.com/en-us/dotnet/api/system.runtime.intrinsics.x86.popcnt?view=net-6.0">POPCNT</a></p>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Numerics_ByteExtensions_RotateLeft_System_Byte_System_Int32_.md&amp;value=---%0Auid%3A%20X10D.Numerics.ByteExtensions.RotateLeft(System.Byte%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Numerics/ByteExtensions.cs/#L37">View Source</a>
</span>
<a id="X10D_Numerics_ByteExtensions_RotateLeft_" data-uid="X10D.Numerics.ByteExtensions.RotateLeft*"></a>
<h4 id="X10D_Numerics_ByteExtensions_RotateLeft_System_Byte_System_Int32_" data-uid="X10D.Numerics.ByteExtensions.RotateLeft(System.Byte,System.Int32)">RotateLeft(Byte, Int32)</h4>
<div class="markdown level1 summary"><p>Rotates the current value left by the specified number of bits.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static byte RotateLeft(this byte value, int count)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Byte</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to rotate.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">count</span></td>
<td><p>The number of bits by which to rotate. Any value outside the range [0..7] is treated as congruent mod 8.</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.Byte</span></td>
<td><p>The rotated value.</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_Numerics_ByteExtensions_RotateRight_System_Byte_System_Int32_.md&amp;value=---%0Auid%3A%20X10D.Numerics.ByteExtensions.RotateRight(System.Byte%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Numerics/ByteExtensions.cs/#L53">View Source</a>
</span>
<a id="X10D_Numerics_ByteExtensions_RotateRight_" data-uid="X10D.Numerics.ByteExtensions.RotateRight*"></a>
<h4 id="X10D_Numerics_ByteExtensions_RotateRight_System_Byte_System_Int32_" data-uid="X10D.Numerics.ByteExtensions.RotateRight(System.Byte,System.Int32)">RotateRight(Byte, Int32)</h4>
<div class="markdown level1 summary"><p>Rotates the current value right by the specified number of bits.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static byte RotateRight(this byte value, int count)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Byte</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to rotate.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">count</span></td>
<td><p>The number of bits by which to rotate. Any value outside the range [0..7] is treated as congruent mod 8.</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.Byte</span></td>
<td><p>The rotated value.</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_Numerics_ByteExtensions_RoundUpToPowerOf2_System_Byte_.md&amp;value=---%0Auid%3A%20X10D.Numerics.ByteExtensions.RoundUpToPowerOf2(System.Byte)%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/Numerics/ByteExtensions.cs/#L69">View Source</a>
</span>
<a id="X10D_Numerics_ByteExtensions_RoundUpToPowerOf2_" data-uid="X10D.Numerics.ByteExtensions.RoundUpToPowerOf2*"></a>
<h4 id="X10D_Numerics_ByteExtensions_RoundUpToPowerOf2_System_Byte_" data-uid="X10D.Numerics.ByteExtensions.RoundUpToPowerOf2(System.Byte)">RoundUpToPowerOf2(Byte)</h4>
<div class="markdown level1 summary"><p>Rounds the current value up to a power of two.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static byte RoundUpToPowerOf2(this byte value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Byte</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to round.</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.Byte</span></td>
<td><p>The smallest power of two that's greater than or equal to <code data-dev-comment-type="paramref" class="paramref">value</code>, or 0 if <code data-dev-comment-type="paramref" class="paramref">value</code>
is 0 or the result overflows.</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>

View File

@ -0,0 +1,352 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class Int16Extensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class Int16Extensions
| 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.Numerics.Int16Extensions">
<h1 id="X10D_Numerics_Int16Extensions" data-uid="X10D.Numerics.Int16Extensions" class="text-break">Class Int16Extensions
</h1>
<div class="markdown level0 summary"><p>Numeric-related extension methods for <see cref="!:System.Int16"></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">Int16Extensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.Numerics.html">X10D.Numerics</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_Numerics_Int16Extensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class Int16Extensions : 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_Numerics_Int16Extensions_PopCount_System_Int16_.md&amp;value=---%0Auid%3A%20X10D.Numerics.Int16Extensions.PopCount(System.Int16)%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/Numerics/Int16Extensions.cs/#L21">View Source</a>
</span>
<a id="X10D_Numerics_Int16Extensions_PopCount_" data-uid="X10D.Numerics.Int16Extensions.PopCount*"></a>
<h4 id="X10D_Numerics_Int16Extensions_PopCount_System_Int16_" data-uid="X10D.Numerics.Int16Extensions.PopCount(System.Int16)">PopCount(Int16)</h4>
<div class="markdown level1 summary"><p>Returns the population count (number of bits set) of a mask.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static int PopCount(this short value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int16</span></td>
<td><span class="parametername">value</span></td>
<td><p>The mask.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>The population count of <code data-dev-comment-type="paramref" class="paramref">value</code>.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="X10D_Numerics_Int16Extensions_PopCount_System_Int16__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method is similar in behavior to the x86 instruction
<a href="https://docs.microsoft.com/en-us/dotnet/api/system.runtime.intrinsics.x86.popcnt?view=net-6.0">POPCNT</a></p>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Numerics_Int16Extensions_RotateLeft_System_Int16_System_Int32_.md&amp;value=---%0Auid%3A%20X10D.Numerics.Int16Extensions.RotateLeft(System.Int16%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Numerics/Int16Extensions.cs/#L36">View Source</a>
</span>
<a id="X10D_Numerics_Int16Extensions_RotateLeft_" data-uid="X10D.Numerics.Int16Extensions.RotateLeft*"></a>
<h4 id="X10D_Numerics_Int16Extensions_RotateLeft_System_Int16_System_Int32_" data-uid="X10D.Numerics.Int16Extensions.RotateLeft(System.Int16,System.Int32)">RotateLeft(Int16, Int32)</h4>
<div class="markdown level1 summary"><p>Rotates the current value left by the specified number of bits.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static short RotateLeft(this short value, int count)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int16</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to rotate.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">count</span></td>
<td><p>The number of bits by which to rotate. Any value outside the range [0..15] is treated as congruent mod 16.</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.Int16</span></td>
<td><p>The rotated value.</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_Numerics_Int16Extensions_RotateRight_System_Int16_System_Int32_.md&amp;value=---%0Auid%3A%20X10D.Numerics.Int16Extensions.RotateRight(System.Int16%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Numerics/Int16Extensions.cs/#L52">View Source</a>
</span>
<a id="X10D_Numerics_Int16Extensions_RotateRight_" data-uid="X10D.Numerics.Int16Extensions.RotateRight*"></a>
<h4 id="X10D_Numerics_Int16Extensions_RotateRight_System_Int16_System_Int32_" data-uid="X10D.Numerics.Int16Extensions.RotateRight(System.Int16,System.Int32)">RotateRight(Int16, Int32)</h4>
<div class="markdown level1 summary"><p>Rotates the current value right by the specified number of bits.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static short RotateRight(this short value, int count)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int16</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to rotate.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">count</span></td>
<td><p>The number of bits by which to rotate. Any value outside the range [0..15] is treated as congruent mod 16.</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.Int16</span></td>
<td><p>The rotated value.</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_Numerics_Int16Extensions_RoundUpToPowerOf2_System_Int16_.md&amp;value=---%0Auid%3A%20X10D.Numerics.Int16Extensions.RoundUpToPowerOf2(System.Int16)%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/Numerics/Int16Extensions.cs/#L68">View Source</a>
</span>
<a id="X10D_Numerics_Int16Extensions_RoundUpToPowerOf2_" data-uid="X10D.Numerics.Int16Extensions.RoundUpToPowerOf2*"></a>
<h4 id="X10D_Numerics_Int16Extensions_RoundUpToPowerOf2_System_Int16_" data-uid="X10D.Numerics.Int16Extensions.RoundUpToPowerOf2(System.Int16)">RoundUpToPowerOf2(Int16)</h4>
<div class="markdown level1 summary"><p>Rounds the current value up to a power of two.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static short RoundUpToPowerOf2(this short value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int16</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to round.</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.Int16</span></td>
<td><p>The smallest power of two that's greater than or equal to <code data-dev-comment-type="paramref" class="paramref">value</code>, or 0 if <code data-dev-comment-type="paramref" class="paramref">value</code>
is 0 or the result overflows.</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>

View File

@ -0,0 +1,352 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class Int32Extensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class Int32Extensions
| 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.Numerics.Int32Extensions">
<h1 id="X10D_Numerics_Int32Extensions" data-uid="X10D.Numerics.Int32Extensions" class="text-break">Class Int32Extensions
</h1>
<div class="markdown level0 summary"><p>Numeric-related extension methods for <see cref="!:System.Int32"></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">Int32Extensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.Numerics.html">X10D.Numerics</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_Numerics_Int32Extensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class Int32Extensions : 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_Numerics_Int32Extensions_PopCount_System_Int32_.md&amp;value=---%0Auid%3A%20X10D.Numerics.Int32Extensions.PopCount(System.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Numerics/Int32Extensions.cs/#L21">View Source</a>
</span>
<a id="X10D_Numerics_Int32Extensions_PopCount_" data-uid="X10D.Numerics.Int32Extensions.PopCount*"></a>
<h4 id="X10D_Numerics_Int32Extensions_PopCount_System_Int32_" data-uid="X10D.Numerics.Int32Extensions.PopCount(System.Int32)">PopCount(Int32)</h4>
<div class="markdown level1 summary"><p>Returns the population count (number of bits set) of a mask.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static int PopCount(this int value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">value</span></td>
<td><p>The mask.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>The population count of <code data-dev-comment-type="paramref" class="paramref">value</code>.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="X10D_Numerics_Int32Extensions_PopCount_System_Int32__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method is similar in behavior to the x86 instruction
<a href="https://docs.microsoft.com/en-us/dotnet/api/system.runtime.intrinsics.x86.popcnt?view=net-6.0">POPCNT</a></p>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Numerics_Int32Extensions_RotateLeft_System_Int32_System_Int32_.md&amp;value=---%0Auid%3A%20X10D.Numerics.Int32Extensions.RotateLeft(System.Int32%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Numerics/Int32Extensions.cs/#L36">View Source</a>
</span>
<a id="X10D_Numerics_Int32Extensions_RotateLeft_" data-uid="X10D.Numerics.Int32Extensions.RotateLeft*"></a>
<h4 id="X10D_Numerics_Int32Extensions_RotateLeft_System_Int32_System_Int32_" data-uid="X10D.Numerics.Int32Extensions.RotateLeft(System.Int32,System.Int32)">RotateLeft(Int32, Int32)</h4>
<div class="markdown level1 summary"><p>Rotates the current value left by the specified number of bits.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static int RotateLeft(this int value, int count)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to rotate.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">count</span></td>
<td><p>The number of bits by which to rotate. Any value outside the range [0..31] is treated as congruent mod 32.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>The rotated value.</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_Numerics_Int32Extensions_RotateRight_System_Int32_System_Int32_.md&amp;value=---%0Auid%3A%20X10D.Numerics.Int32Extensions.RotateRight(System.Int32%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Numerics/Int32Extensions.cs/#L52">View Source</a>
</span>
<a id="X10D_Numerics_Int32Extensions_RotateRight_" data-uid="X10D.Numerics.Int32Extensions.RotateRight*"></a>
<h4 id="X10D_Numerics_Int32Extensions_RotateRight_System_Int32_System_Int32_" data-uid="X10D.Numerics.Int32Extensions.RotateRight(System.Int32,System.Int32)">RotateRight(Int32, Int32)</h4>
<div class="markdown level1 summary"><p>Rotates the current value right by the specified number of bits.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static int RotateRight(this int value, int count)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to rotate.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">count</span></td>
<td><p>The number of bits by which to rotate. Any value outside the range [0..31] is treated as congruent mod 32.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>The rotated value.</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_Numerics_Int32Extensions_RoundUpToPowerOf2_System_Int32_.md&amp;value=---%0Auid%3A%20X10D.Numerics.Int32Extensions.RoundUpToPowerOf2(System.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Numerics/Int32Extensions.cs/#L68">View Source</a>
</span>
<a id="X10D_Numerics_Int32Extensions_RoundUpToPowerOf2_" data-uid="X10D.Numerics.Int32Extensions.RoundUpToPowerOf2*"></a>
<h4 id="X10D_Numerics_Int32Extensions_RoundUpToPowerOf2_System_Int32_" data-uid="X10D.Numerics.Int32Extensions.RoundUpToPowerOf2(System.Int32)">RoundUpToPowerOf2(Int32)</h4>
<div class="markdown level1 summary"><p>Rounds the current value up to a power of two.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static int RoundUpToPowerOf2(this int value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to round.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>The smallest power of two that's greater than or equal to <code data-dev-comment-type="paramref" class="paramref">value</code>, or 0 if <code data-dev-comment-type="paramref" class="paramref">value</code>
is 0 or the result overflows.</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>

View File

@ -0,0 +1,352 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class Int64Extensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class Int64Extensions
| 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.Numerics.Int64Extensions">
<h1 id="X10D_Numerics_Int64Extensions" data-uid="X10D.Numerics.Int64Extensions" class="text-break">Class Int64Extensions
</h1>
<div class="markdown level0 summary"><p>Numeric-related extension methods for <see cref="!:System.Int64"></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">Int64Extensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.Numerics.html">X10D.Numerics</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_Numerics_Int64Extensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class Int64Extensions : 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_Numerics_Int64Extensions_PopCount_System_Int64_.md&amp;value=---%0Auid%3A%20X10D.Numerics.Int64Extensions.PopCount(System.Int64)%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/Numerics/Int64Extensions.cs/#L21">View Source</a>
</span>
<a id="X10D_Numerics_Int64Extensions_PopCount_" data-uid="X10D.Numerics.Int64Extensions.PopCount*"></a>
<h4 id="X10D_Numerics_Int64Extensions_PopCount_System_Int64_" data-uid="X10D.Numerics.Int64Extensions.PopCount(System.Int64)">PopCount(Int64)</h4>
<div class="markdown level1 summary"><p>Returns the population count (number of bits set) of a mask.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static int PopCount(this long value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int64</span></td>
<td><span class="parametername">value</span></td>
<td><p>The mask.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>The population count of <code data-dev-comment-type="paramref" class="paramref">value</code>.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="X10D_Numerics_Int64Extensions_PopCount_System_Int64__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method is similar in behavior to the x86 instruction
<a href="https://docs.microsoft.com/en-us/dotnet/api/system.runtime.intrinsics.x86.popcnt?view=net-6.0">POPCNT</a></p>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Numerics_Int64Extensions_RotateLeft_System_Int64_System_Int32_.md&amp;value=---%0Auid%3A%20X10D.Numerics.Int64Extensions.RotateLeft(System.Int64%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Numerics/Int64Extensions.cs/#L36">View Source</a>
</span>
<a id="X10D_Numerics_Int64Extensions_RotateLeft_" data-uid="X10D.Numerics.Int64Extensions.RotateLeft*"></a>
<h4 id="X10D_Numerics_Int64Extensions_RotateLeft_System_Int64_System_Int32_" data-uid="X10D.Numerics.Int64Extensions.RotateLeft(System.Int64,System.Int32)">RotateLeft(Int64, Int32)</h4>
<div class="markdown level1 summary"><p>Rotates the current value left by the specified number of bits.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static long RotateLeft(this long value, int count)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int64</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to rotate.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">count</span></td>
<td><p>The number of bits by which to rotate. Any value outside the range [0..63] is treated as congruent mod 64.</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.Int64</span></td>
<td><p>The rotated value.</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_Numerics_Int64Extensions_RotateRight_System_Int64_System_Int32_.md&amp;value=---%0Auid%3A%20X10D.Numerics.Int64Extensions.RotateRight(System.Int64%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Numerics/Int64Extensions.cs/#L52">View Source</a>
</span>
<a id="X10D_Numerics_Int64Extensions_RotateRight_" data-uid="X10D.Numerics.Int64Extensions.RotateRight*"></a>
<h4 id="X10D_Numerics_Int64Extensions_RotateRight_System_Int64_System_Int32_" data-uid="X10D.Numerics.Int64Extensions.RotateRight(System.Int64,System.Int32)">RotateRight(Int64, Int32)</h4>
<div class="markdown level1 summary"><p>Rotates the current value right by the specified number of bits.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static long RotateRight(this long value, int count)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int64</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to rotate.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">count</span></td>
<td><p>The number of bits by which to rotate. Any value outside the range [0..63] is treated as congruent mod 64.</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.Int64</span></td>
<td><p>The rotated value.</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_Numerics_Int64Extensions_RoundUpToPowerOf2_System_Int64_.md&amp;value=---%0Auid%3A%20X10D.Numerics.Int64Extensions.RoundUpToPowerOf2(System.Int64)%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/Numerics/Int64Extensions.cs/#L68">View Source</a>
</span>
<a id="X10D_Numerics_Int64Extensions_RoundUpToPowerOf2_" data-uid="X10D.Numerics.Int64Extensions.RoundUpToPowerOf2*"></a>
<h4 id="X10D_Numerics_Int64Extensions_RoundUpToPowerOf2_System_Int64_" data-uid="X10D.Numerics.Int64Extensions.RoundUpToPowerOf2(System.Int64)">RoundUpToPowerOf2(Int64)</h4>
<div class="markdown level1 summary"><p>Rounds the current value up to a power of two.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static long RoundUpToPowerOf2(this long value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int64</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to round.</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.Int64</span></td>
<td><p>The smallest power of two that's greater than or equal to <code data-dev-comment-type="paramref" class="paramref">value</code>, or 0 if <code data-dev-comment-type="paramref" class="paramref">value</code>
is 0 or the result overflows.</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>

View File

@ -0,0 +1,291 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class QuaternionExtensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class QuaternionExtensions
| 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.Numerics.QuaternionExtensions">
<h1 id="X10D_Numerics_QuaternionExtensions" data-uid="X10D.Numerics.QuaternionExtensions" class="text-break">Class QuaternionExtensions
</h1>
<div class="markdown level0 summary"><p>Numeric-related extension methods for <see cref="!:Quaternion"></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">QuaternionExtensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.Numerics.html">X10D.Numerics</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_Numerics_QuaternionExtensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class QuaternionExtensions : 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_Numerics_QuaternionExtensions_Multiply_Quaternion__Vector3__.md&amp;value=---%0Auid%3A%20X10D.Numerics.QuaternionExtensions.Multiply(Quaternion%40%2CVector3%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/oliverbooth/X10D/blob/main/X10D/src/Numerics/QuaternionExtensions.cs/#L16">View Source</a>
</span>
<a id="X10D_Numerics_QuaternionExtensions_Multiply_" data-uid="X10D.Numerics.QuaternionExtensions.Multiply*"></a>
<h4 id="X10D_Numerics_QuaternionExtensions_Multiply_Quaternion__Vector3__" data-uid="X10D.Numerics.QuaternionExtensions.Multiply(Quaternion@,Vector3@)">Multiply(Quaternion, Vector3)</h4>
<div class="markdown level1 summary"><p>Rotates the specified point with the specified rotation.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static Vector3 Multiply(this in Quaternion rotation, in Vector3 point)</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">Quaternion</span></td>
<td><span class="parametername">rotation</span></td>
<td><p>The rotation.</p>
</td>
</tr>
<tr>
<td><span class="xref">Vector3</span></td>
<td><span class="parametername">point</span></td>
<td><p>The point.</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">Vector3</span></td>
<td><p>The rotated point.</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_Numerics_QuaternionExtensions_ToAxisAngle_Quaternion__.md&amp;value=---%0Auid%3A%20X10D.Numerics.QuaternionExtensions.ToAxisAngle(Quaternion%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/oliverbooth/X10D/blob/main/X10D/src/Numerics/QuaternionExtensions.cs/#L47">View Source</a>
</span>
<a id="X10D_Numerics_QuaternionExtensions_ToAxisAngle_" data-uid="X10D.Numerics.QuaternionExtensions.ToAxisAngle*"></a>
<h4 id="X10D_Numerics_QuaternionExtensions_ToAxisAngle_Quaternion__" data-uid="X10D.Numerics.QuaternionExtensions.ToAxisAngle(Quaternion@)">ToAxisAngle(Quaternion)</h4>
<div class="markdown level1 summary"><p>Converts this quaternion to an axis/angle pair.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static (Vector3 Axis, float Angle) ToAxisAngle(this in Quaternion value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Quaternion</span></td>
<td><span class="parametername">value</span></td>
<td><p>The quaternion to convert.</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;<span class="xref">Vector3</span>, <span class="xref">System.Single</span>&gt;</td>
<td><p>A tuple containing the converted axis, and the angle in radians.</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_Numerics_QuaternionExtensions_ToVector3_Quaternion__.md&amp;value=---%0Auid%3A%20X10D.Numerics.QuaternionExtensions.ToVector3(Quaternion%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/oliverbooth/X10D/blob/main/X10D/src/Numerics/QuaternionExtensions.cs/#L59">View Source</a>
</span>
<a id="X10D_Numerics_QuaternionExtensions_ToVector3_" data-uid="X10D.Numerics.QuaternionExtensions.ToVector3*"></a>
<h4 id="X10D_Numerics_QuaternionExtensions_ToVector3_Quaternion__" data-uid="X10D.Numerics.QuaternionExtensions.ToVector3(Quaternion@)">ToVector3(Quaternion)</h4>
<div class="markdown level1 summary"><p>Converts this quaternion to a <see cref="!:Vector3"></see> containing an Euler representation of the rotation.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static Vector3 ToVector3(this in Quaternion value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Quaternion</span></td>
<td><span class="parametername">value</span></td>
<td><p>The quaternion to convert.</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">Vector3</span></td>
<td><p>The Euler representation of <code data-dev-comment-type="paramref" class="paramref">value</code>, in radians.</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>

View File

@ -0,0 +1,338 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class RandomExtensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class RandomExtensions
| 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.Numerics.RandomExtensions">
<h1 id="X10D_Numerics_RandomExtensions" data-uid="X10D.Numerics.RandomExtensions" class="text-break">Class RandomExtensions
</h1>
<div class="markdown level0 summary"><p>Extension methods for <see cref="!:System.Random"></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">RandomExtensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.Numerics.html">X10D.Numerics</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_Numerics_RandomExtensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class RandomExtensions : 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_Numerics_RandomExtensions_NextRotation_Random_.md&amp;value=---%0Auid%3A%20X10D.Numerics.RandomExtensions.NextRotation(Random)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Numerics/RandomExtensions.cs/#L22">View Source</a>
</span>
<a id="X10D_Numerics_RandomExtensions_NextRotation_" data-uid="X10D.Numerics.RandomExtensions.NextRotation*"></a>
<h4 id="X10D_Numerics_RandomExtensions_NextRotation_Random_" data-uid="X10D.Numerics.RandomExtensions.NextRotation(Random)">NextRotation(Random)</h4>
<div class="markdown level1 summary"><p>Returns a randomly generated rotation as represented by a <see cref="!:Quaternion"></see>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static Quaternion NextRotation(this Random random)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Random</span></td>
<td><span class="parametername">random</span></td>
<td><p>The <see cref="!:System.Random"></see> instance.</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">Quaternion</span></td>
<td><p>A <see cref="!:Quaternion"></see> constructed from 3 random single-precision floating point numbers representing the
yaw, pitch, and roll.</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_Numerics_RandomExtensions_NextRotationUniform_Random_.md&amp;value=---%0Auid%3A%20X10D.Numerics.RandomExtensions.NextRotationUniform(Random)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Numerics/RandomExtensions.cs/#L49">View Source</a>
</span>
<a id="X10D_Numerics_RandomExtensions_NextRotationUniform_" data-uid="X10D.Numerics.RandomExtensions.NextRotationUniform*"></a>
<h4 id="X10D_Numerics_RandomExtensions_NextRotationUniform_Random_" data-uid="X10D.Numerics.RandomExtensions.NextRotationUniform(Random)">NextRotationUniform(Random)</h4>
<div class="markdown level1 summary"><p>Returns a randomly generated rotation with uniform distribution.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static Quaternion NextRotationUniform(this Random random)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Random</span></td>
<td><span class="parametername">random</span></td>
<td><p>The <see cref="!:System.Random"></see> instance.</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">Quaternion</span></td>
<td><p>A <see cref="!:Quaternion"></see> constructed with uniform distribution.</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_Numerics_RandomExtensions_NextUnitVector2_Random_.md&amp;value=---%0Auid%3A%20X10D.Numerics.RandomExtensions.NextUnitVector2(Random)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Numerics/RandomExtensions.cs/#L85">View Source</a>
</span>
<a id="X10D_Numerics_RandomExtensions_NextUnitVector2_" data-uid="X10D.Numerics.RandomExtensions.NextUnitVector2*"></a>
<h4 id="X10D_Numerics_RandomExtensions_NextUnitVector2_Random_" data-uid="X10D.Numerics.RandomExtensions.NextUnitVector2(Random)">NextUnitVector2(Random)</h4>
<div class="markdown level1 summary"><p>Returns a <see cref="!:Vector2"></see> with magnitude 1 whose components indicate a random point on the unit circle.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static Vector2 NextUnitVector2(this Random random)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Random</span></td>
<td><span class="parametername">random</span></td>
<td><p>The <see cref="!:System.Random"></see> instance</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">Vector2</span></td>
<td><p>A <see cref="!:Vector2"></see> whose <see cref="!:Vector2.Length()"></see> returns 1, and whose components indicate a random
point on the unit circle.</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_Numerics_RandomExtensions_NextUnitVector3_Random_.md&amp;value=---%0Auid%3A%20X10D.Numerics.RandomExtensions.NextUnitVector3(Random)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Numerics/RandomExtensions.cs/#L113">View Source</a>
</span>
<a id="X10D_Numerics_RandomExtensions_NextUnitVector3_" data-uid="X10D.Numerics.RandomExtensions.NextUnitVector3*"></a>
<h4 id="X10D_Numerics_RandomExtensions_NextUnitVector3_Random_" data-uid="X10D.Numerics.RandomExtensions.NextUnitVector3(Random)">NextUnitVector3(Random)</h4>
<div class="markdown level1 summary"><p>Returns a <see cref="!:Vector3"></see> with magnitude 1 whose components indicate a random point on the unit sphere.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static Vector3 NextUnitVector3(this Random random)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Random</span></td>
<td><span class="parametername">random</span></td>
<td><p>The <see cref="!:System.Random"></see> instance</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">Vector3</span></td>
<td><p>A <see cref="!:Vector3"></see> whose <see cref="!:Vector3.Length()"></see> returns 1, and whose components indicate a random
point on the unit sphere.</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>

View File

@ -0,0 +1,352 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class SByteExtensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class SByteExtensions
| 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.Numerics.SByteExtensions">
<h1 id="X10D_Numerics_SByteExtensions" data-uid="X10D.Numerics.SByteExtensions" class="text-break">Class SByteExtensions
</h1>
<div class="markdown level0 summary"><p>Numeric-related extension methods for <see cref="!:System.SByte"></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">SByteExtensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.Numerics.html">X10D.Numerics</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_Numerics_SByteExtensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class SByteExtensions : 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_Numerics_SByteExtensions_PopCount_System_SByte_.md&amp;value=---%0Auid%3A%20X10D.Numerics.SByteExtensions.PopCount(System.SByte)%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/Numerics/SByteExtensions.cs/#L22">View Source</a>
</span>
<a id="X10D_Numerics_SByteExtensions_PopCount_" data-uid="X10D.Numerics.SByteExtensions.PopCount*"></a>
<h4 id="X10D_Numerics_SByteExtensions_PopCount_System_SByte_" data-uid="X10D.Numerics.SByteExtensions.PopCount(System.SByte)">PopCount(SByte)</h4>
<div class="markdown level1 summary"><p>Returns the population count (number of bits set) of a mask.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static int PopCount(this sbyte value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.SByte</span></td>
<td><span class="parametername">value</span></td>
<td><p>The mask.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>The population count of <code data-dev-comment-type="paramref" class="paramref">value</code>.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="X10D_Numerics_SByteExtensions_PopCount_System_SByte__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method is similar in behavior to the x86 instruction
<a href="https://docs.microsoft.com/en-us/dotnet/api/system.runtime.intrinsics.x86.popcnt?view=net-6.0">POPCNT</a></p>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Numerics_SByteExtensions_RotateLeft_System_SByte_System_Int32_.md&amp;value=---%0Auid%3A%20X10D.Numerics.SByteExtensions.RotateLeft(System.SByte%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Numerics/SByteExtensions.cs/#L37">View Source</a>
</span>
<a id="X10D_Numerics_SByteExtensions_RotateLeft_" data-uid="X10D.Numerics.SByteExtensions.RotateLeft*"></a>
<h4 id="X10D_Numerics_SByteExtensions_RotateLeft_System_SByte_System_Int32_" data-uid="X10D.Numerics.SByteExtensions.RotateLeft(System.SByte,System.Int32)">RotateLeft(SByte, Int32)</h4>
<div class="markdown level1 summary"><p>Rotates the current value left by the specified number of bits.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static sbyte RotateLeft(this sbyte value, int count)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.SByte</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to rotate.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">count</span></td>
<td><p>The number of bits by which to rotate. Any value outside the range [0..7] is treated as congruent mod 8.</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.SByte</span></td>
<td><p>The rotated value.</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_Numerics_SByteExtensions_RotateRight_System_SByte_System_Int32_.md&amp;value=---%0Auid%3A%20X10D.Numerics.SByteExtensions.RotateRight(System.SByte%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Numerics/SByteExtensions.cs/#L53">View Source</a>
</span>
<a id="X10D_Numerics_SByteExtensions_RotateRight_" data-uid="X10D.Numerics.SByteExtensions.RotateRight*"></a>
<h4 id="X10D_Numerics_SByteExtensions_RotateRight_System_SByte_System_Int32_" data-uid="X10D.Numerics.SByteExtensions.RotateRight(System.SByte,System.Int32)">RotateRight(SByte, Int32)</h4>
<div class="markdown level1 summary"><p>Rotates the current value right by the specified number of bits.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static sbyte RotateRight(this sbyte value, int count)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.SByte</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to rotate.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">count</span></td>
<td><p>The number of bits by which to rotate. Any value outside the range [0..7] is treated as congruent mod 8.</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.SByte</span></td>
<td><p>The rotated value.</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_Numerics_SByteExtensions_RoundUpToPowerOf2_System_SByte_.md&amp;value=---%0Auid%3A%20X10D.Numerics.SByteExtensions.RoundUpToPowerOf2(System.SByte)%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/Numerics/SByteExtensions.cs/#L69">View Source</a>
</span>
<a id="X10D_Numerics_SByteExtensions_RoundUpToPowerOf2_" data-uid="X10D.Numerics.SByteExtensions.RoundUpToPowerOf2*"></a>
<h4 id="X10D_Numerics_SByteExtensions_RoundUpToPowerOf2_System_SByte_" data-uid="X10D.Numerics.SByteExtensions.RoundUpToPowerOf2(System.SByte)">RoundUpToPowerOf2(SByte)</h4>
<div class="markdown level1 summary"><p>Rounds the current value up to a power of two.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static sbyte RoundUpToPowerOf2(this sbyte value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.SByte</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to round.</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.SByte</span></td>
<td><p>The smallest power of two that's greater than or equal to <code data-dev-comment-type="paramref" class="paramref">value</code>, or 0 if <code data-dev-comment-type="paramref" class="paramref">value</code>
is 0 or the result overflows.</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>

View File

@ -0,0 +1,352 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class UInt16Extensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class UInt16Extensions
| 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.Numerics.UInt16Extensions">
<h1 id="X10D_Numerics_UInt16Extensions" data-uid="X10D.Numerics.UInt16Extensions" class="text-break">Class UInt16Extensions
</h1>
<div class="markdown level0 summary"><p>Numeric-related extension methods for <see cref="!:System.UInt16"></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">UInt16Extensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.Numerics.html">X10D.Numerics</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_Numerics_UInt16Extensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class UInt16Extensions : 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_Numerics_UInt16Extensions_PopCount_System_UInt16_.md&amp;value=---%0Auid%3A%20X10D.Numerics.UInt16Extensions.PopCount(System.UInt16)%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/Numerics/UInt16Extensions.cs/#L22">View Source</a>
</span>
<a id="X10D_Numerics_UInt16Extensions_PopCount_" data-uid="X10D.Numerics.UInt16Extensions.PopCount*"></a>
<h4 id="X10D_Numerics_UInt16Extensions_PopCount_System_UInt16_" data-uid="X10D.Numerics.UInt16Extensions.PopCount(System.UInt16)">PopCount(UInt16)</h4>
<div class="markdown level1 summary"><p>Returns the population count (number of bits set) of a mask.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static int PopCount(this ushort value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.UInt16</span></td>
<td><span class="parametername">value</span></td>
<td><p>The mask.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>The population count of <code data-dev-comment-type="paramref" class="paramref">value</code>.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="X10D_Numerics_UInt16Extensions_PopCount_System_UInt16__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method is similar in behavior to the x86 instruction
<a href="https://docs.microsoft.com/en-us/dotnet/api/system.runtime.intrinsics.x86.popcnt?view=net-6.0">POPCNT</a></p>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Numerics_UInt16Extensions_RotateLeft_System_UInt16_System_Int32_.md&amp;value=---%0Auid%3A%20X10D.Numerics.UInt16Extensions.RotateLeft(System.UInt16%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Numerics/UInt16Extensions.cs/#L37">View Source</a>
</span>
<a id="X10D_Numerics_UInt16Extensions_RotateLeft_" data-uid="X10D.Numerics.UInt16Extensions.RotateLeft*"></a>
<h4 id="X10D_Numerics_UInt16Extensions_RotateLeft_System_UInt16_System_Int32_" data-uid="X10D.Numerics.UInt16Extensions.RotateLeft(System.UInt16,System.Int32)">RotateLeft(UInt16, Int32)</h4>
<div class="markdown level1 summary"><p>Rotates the current value left by the specified number of bits.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static ushort RotateLeft(this ushort value, int count)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.UInt16</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to rotate.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">count</span></td>
<td><p>The number of bits by which to rotate. Any value outside the range [0..15] is treated as congruent mod 16.</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.UInt16</span></td>
<td><p>The rotated value.</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_Numerics_UInt16Extensions_RotateRight_System_UInt16_System_Int32_.md&amp;value=---%0Auid%3A%20X10D.Numerics.UInt16Extensions.RotateRight(System.UInt16%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Numerics/UInt16Extensions.cs/#L52">View Source</a>
</span>
<a id="X10D_Numerics_UInt16Extensions_RotateRight_" data-uid="X10D.Numerics.UInt16Extensions.RotateRight*"></a>
<h4 id="X10D_Numerics_UInt16Extensions_RotateRight_System_UInt16_System_Int32_" data-uid="X10D.Numerics.UInt16Extensions.RotateRight(System.UInt16,System.Int32)">RotateRight(UInt16, Int32)</h4>
<div class="markdown level1 summary"><p>Rotates the current value right by the specified number of bits.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static ushort RotateRight(this ushort value, int count)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.UInt16</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to rotate.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">count</span></td>
<td><p>The number of bits by which to rotate. Any value outside the range [0..15] is treated as congruent mod 16.</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.UInt16</span></td>
<td><p>The rotated value.</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_Numerics_UInt16Extensions_RoundUpToPowerOf2_System_UInt16_.md&amp;value=---%0Auid%3A%20X10D.Numerics.UInt16Extensions.RoundUpToPowerOf2(System.UInt16)%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/Numerics/UInt16Extensions.cs/#L67">View Source</a>
</span>
<a id="X10D_Numerics_UInt16Extensions_RoundUpToPowerOf2_" data-uid="X10D.Numerics.UInt16Extensions.RoundUpToPowerOf2*"></a>
<h4 id="X10D_Numerics_UInt16Extensions_RoundUpToPowerOf2_System_UInt16_" data-uid="X10D.Numerics.UInt16Extensions.RoundUpToPowerOf2(System.UInt16)">RoundUpToPowerOf2(UInt16)</h4>
<div class="markdown level1 summary"><p>Rounds the current value up to a power of two.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static ushort RoundUpToPowerOf2(this ushort value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.UInt16</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to round.</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.UInt16</span></td>
<td><p>The smallest power of two that's greater than or equal to <code data-dev-comment-type="paramref" class="paramref">value</code>, or 0 if <code data-dev-comment-type="paramref" class="paramref">value</code>
is 0 or the result overflows.</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>

View File

@ -0,0 +1,352 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class UInt32Extensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class UInt32Extensions
| 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.Numerics.UInt32Extensions">
<h1 id="X10D_Numerics_UInt32Extensions" data-uid="X10D.Numerics.UInt32Extensions" class="text-break">Class UInt32Extensions
</h1>
<div class="markdown level0 summary"><p>Numeric-related extension methods for <see cref="!:System.UInt32"></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">UInt32Extensions</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.Numerics.html">X10D.Numerics</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_Numerics_UInt32Extensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class UInt32Extensions : 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_Numerics_UInt32Extensions_PopCount_System_UInt32_.md&amp;value=---%0Auid%3A%20X10D.Numerics.UInt32Extensions.PopCount(System.UInt32)%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/Numerics/UInt32Extensions.cs/#L23">View Source</a>
</span>
<a id="X10D_Numerics_UInt32Extensions_PopCount_" data-uid="X10D.Numerics.UInt32Extensions.PopCount*"></a>
<h4 id="X10D_Numerics_UInt32Extensions_PopCount_System_UInt32_" data-uid="X10D.Numerics.UInt32Extensions.PopCount(System.UInt32)">PopCount(UInt32)</h4>
<div class="markdown level1 summary"><p>Returns the population count (number of bits set) of a mask.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static int PopCount(this uint value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.UInt32</span></td>
<td><span class="parametername">value</span></td>
<td><p>The mask.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>The population count of <code data-dev-comment-type="paramref" class="paramref">value</code>.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="X10D_Numerics_UInt32Extensions_PopCount_System_UInt32__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method is similar in behavior to the x86 instruction
<a href="https://docs.microsoft.com/en-us/dotnet/api/system.runtime.intrinsics.x86.popcnt?view=net-6.0">POPCNT</a></p>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Numerics_UInt32Extensions_RotateLeft_System_UInt32_System_Int32_.md&amp;value=---%0Auid%3A%20X10D.Numerics.UInt32Extensions.RotateLeft(System.UInt32%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Numerics/UInt32Extensions.cs/#L51">View Source</a>
</span>
<a id="X10D_Numerics_UInt32Extensions_RotateLeft_" data-uid="X10D.Numerics.UInt32Extensions.RotateLeft*"></a>
<h4 id="X10D_Numerics_UInt32Extensions_RotateLeft_System_UInt32_System_Int32_" data-uid="X10D.Numerics.UInt32Extensions.RotateLeft(System.UInt32,System.Int32)">RotateLeft(UInt32, Int32)</h4>
<div class="markdown level1 summary"><p>Rotates the current value left by the specified number of bits.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static uint RotateLeft(this uint value, int count)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.UInt32</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to rotate.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">count</span></td>
<td><p>The number of bits by which to rotate. Any value outside the range [0..31] is treated as congruent mod 32.</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.UInt32</span></td>
<td><p>The rotated value.</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_Numerics_UInt32Extensions_RotateRight_System_UInt32_System_Int32_.md&amp;value=---%0Auid%3A%20X10D.Numerics.UInt32Extensions.RotateRight(System.UInt32%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Numerics/UInt32Extensions.cs/#L66">View Source</a>
</span>
<a id="X10D_Numerics_UInt32Extensions_RotateRight_" data-uid="X10D.Numerics.UInt32Extensions.RotateRight*"></a>
<h4 id="X10D_Numerics_UInt32Extensions_RotateRight_System_UInt32_System_Int32_" data-uid="X10D.Numerics.UInt32Extensions.RotateRight(System.UInt32,System.Int32)">RotateRight(UInt32, Int32)</h4>
<div class="markdown level1 summary"><p>Rotates the current value right by the specified number of bits.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static uint RotateRight(this uint value, int count)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.UInt32</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to rotate.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">count</span></td>
<td><p>The number of bits by which to rotate. Any value outside the range [0..31] is treated as congruent mod 32.</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.UInt32</span></td>
<td><p>The rotated value.</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_Numerics_UInt32Extensions_RoundUpToPowerOf2_System_UInt32_.md&amp;value=---%0Auid%3A%20X10D.Numerics.UInt32Extensions.RoundUpToPowerOf2(System.UInt32)%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/Numerics/UInt32Extensions.cs/#L81">View Source</a>
</span>
<a id="X10D_Numerics_UInt32Extensions_RoundUpToPowerOf2_" data-uid="X10D.Numerics.UInt32Extensions.RoundUpToPowerOf2*"></a>
<h4 id="X10D_Numerics_UInt32Extensions_RoundUpToPowerOf2_System_UInt32_" data-uid="X10D.Numerics.UInt32Extensions.RoundUpToPowerOf2(System.UInt32)">RoundUpToPowerOf2(UInt32)</h4>
<div class="markdown level1 summary"><p>Rounds the current value up to a power of two.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static uint RoundUpToPowerOf2(this uint value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.UInt32</span></td>
<td><span class="parametername">value</span></td>
<td><p>The value to round.</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.UInt32</span></td>
<td><p>The smallest power of two that's greater than or equal to <code data-dev-comment-type="paramref" class="paramref">value</code>, or 0 if <code data-dev-comment-type="paramref" class="paramref">value</code>
is 0 or the result overflows.</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>

Some files were not shown because too many files have changed in this diff Show More