1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-10 00:05:42 +00:00
X10D/api/X10D.Collections.DictionaryExtensions.html
2024-06-12 13:17:02 +00:00

1175 lines
58 KiB
HTML

<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class DictionaryExtensions
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class DictionaryExtensions
| 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.DictionaryExtensions">
<h1 id="X10D_Collections_DictionaryExtensions" data-uid="X10D.Collections.DictionaryExtensions" class="text-break">Class DictionaryExtensions
</h1>
<div class="markdown level0 summary"><p>Extension methods for <see cref="!:Dictionary&lt;TKey,TValue>"></see> and similar 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">DictionaryExtensions</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_DictionaryExtensions_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class DictionaryExtensions : 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_DictionaryExtensions_AddOrUpdate__2_Dictionary___0___1____0___1_Func___0___1___1__.md&amp;value=---%0Auid%3A%20X10D.Collections.DictionaryExtensions.AddOrUpdate%60%602(Dictionary%7B%60%600%2C%60%601%7D%2C%60%600%2C%60%601%2CFunc%7B%60%600%2C%60%601%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/Collections/DictionaryExtensions.cs/#L34">View Source</a>
</span>
<a id="X10D_Collections_DictionaryExtensions_AddOrUpdate_" data-uid="X10D.Collections.DictionaryExtensions.AddOrUpdate*"></a>
<h4 id="X10D_Collections_DictionaryExtensions_AddOrUpdate__2_Dictionary___0___1____0___1_Func___0___1___1__" data-uid="X10D.Collections.DictionaryExtensions.AddOrUpdate``2(Dictionary{``0,``1},``0,``1,Func{``0,``1,``1})">AddOrUpdate&lt;TKey, TValue&gt;(Dictionary&lt;TKey, TValue&gt;, TKey, TValue, Func&lt;TKey, TValue, TValue&gt;)</h4>
<div class="markdown level1 summary"><p>Adds a key/value pair to the <see cref="!:Dictionary&lt;TKey,TValue>"></see> if the key does not already exist, or updates a
key/value pair in the <see cref="!:Dictionary&lt;TKey,TValue>"></see> by using the specified function if the key already
exists.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static TValue AddOrUpdate&lt;TKey, TValue&gt;(this Dictionary&lt;TKey, TValue&gt; dictionary, TKey key, TValue addValue, Func&lt;TKey, TValue, TValue&gt; updateValueFactory)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Dictionary</span>&lt;TKey, TValue&gt;</td>
<td><span class="parametername">dictionary</span></td>
<td><p>The dictionary to update.</p>
</td>
</tr>
<tr>
<td><span class="xref">TKey</span></td>
<td><span class="parametername">key</span></td>
<td><p>The key to be added or whose value should be updated.</p>
</td>
</tr>
<tr>
<td><span class="xref">TValue</span></td>
<td><span class="parametername">addValue</span></td>
<td><p>The value to be added for an absent key.</p>
</td>
</tr>
<tr>
<td><span class="xref">Func</span>&lt;TKey, TValue, TValue&gt;</td>
<td><span class="parametername">updateValueFactory</span></td>
<td><p>The function used to generate a new value for an existing key based on the key's existing 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">TValue</span></td>
<td><p>The new value for the key. This will be either be <code data-dev-comment-type="paramref" class="paramref">addValue</code> (if the key was absent) or the result
of <code data-dev-comment-type="paramref" class="paramref">updateValueFactory</code> (if the key was present).</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">TKey</span></td>
<td><p>The type of the keys in the dictionary.</p>
</td>
</tr>
<tr>
<td><span class="parametername">TValue</span></td>
<td><p>The type of the values in the dictionary.</p>
</td>
</tr>
</tbody>
</table>
<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_DictionaryExtensions_AddOrUpdate__2_Dictionary___0___1____0_Func___0___1__Func___0___1___1__.md&amp;value=---%0Auid%3A%20X10D.Collections.DictionaryExtensions.AddOrUpdate%60%602(Dictionary%7B%60%600%2C%60%601%7D%2C%60%600%2CFunc%7B%60%600%2C%60%601%7D%2CFunc%7B%60%600%2C%60%601%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/Collections/DictionaryExtensions.cs/#L126">View Source</a>
</span>
<a id="X10D_Collections_DictionaryExtensions_AddOrUpdate_" data-uid="X10D.Collections.DictionaryExtensions.AddOrUpdate*"></a>
<h4 id="X10D_Collections_DictionaryExtensions_AddOrUpdate__2_Dictionary___0___1____0_Func___0___1__Func___0___1___1__" data-uid="X10D.Collections.DictionaryExtensions.AddOrUpdate``2(Dictionary{``0,``1},``0,Func{``0,``1},Func{``0,``1,``1})">AddOrUpdate&lt;TKey, TValue&gt;(Dictionary&lt;TKey, TValue&gt;, TKey, Func&lt;TKey, TValue&gt;, Func&lt;TKey, TValue, TValue&gt;)</h4>
<div class="markdown level1 summary"><p>Uses the specified functions to add a key/value pair to the <see cref="!:Dictionary&lt;TKey,TValue>"></see> if the key does
not already exist, or to update a key/value pair in the <see cref="!:Dictionary&lt;TKey,TValue>"></see> if the key already
exists.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static TValue AddOrUpdate&lt;TKey, TValue&gt;(this Dictionary&lt;TKey, TValue&gt; dictionary, TKey key, Func&lt;TKey, TValue&gt; addValueFactory, Func&lt;TKey, TValue, TValue&gt; updateValueFactory)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Dictionary</span>&lt;TKey, TValue&gt;</td>
<td><span class="parametername">dictionary</span></td>
<td><p>The dictionary to update.</p>
</td>
</tr>
<tr>
<td><span class="xref">TKey</span></td>
<td><span class="parametername">key</span></td>
<td><p>The key to be added or whose value should be updated.</p>
</td>
</tr>
<tr>
<td><span class="xref">Func</span>&lt;TKey, TValue&gt;</td>
<td><span class="parametername">addValueFactory</span></td>
<td><p>The function used to generate a value for an absent key.</p>
</td>
</tr>
<tr>
<td><span class="xref">Func</span>&lt;TKey, TValue, TValue&gt;</td>
<td><span class="parametername">updateValueFactory</span></td>
<td><p>The function used to generate a new value for an existing key based on the key's existing 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">TValue</span></td>
<td><p>The new value for the key. This will be either be the result of <code data-dev-comment-type="paramref" class="paramref">addValueFactory </code> (if the key was
absent) or the result of <code data-dev-comment-type="paramref" class="paramref">updateValueFactory</code> (if the key was present).</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">TKey</span></td>
<td><p>The type of the keys in the dictionary.</p>
</td>
</tr>
<tr>
<td><span class="parametername">TValue</span></td>
<td><p>The type of the values in the dictionary.</p>
</td>
</tr>
</tbody>
</table>
<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_DictionaryExtensions_AddOrUpdate__2_IDictionary___0___1____0___1_Func___0___1___1__.md&amp;value=---%0Auid%3A%20X10D.Collections.DictionaryExtensions.AddOrUpdate%60%602(IDictionary%7B%60%600%2C%60%601%7D%2C%60%600%2C%60%601%2CFunc%7B%60%600%2C%60%601%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/Collections/DictionaryExtensions.cs/#L76">View Source</a>
</span>
<a id="X10D_Collections_DictionaryExtensions_AddOrUpdate_" data-uid="X10D.Collections.DictionaryExtensions.AddOrUpdate*"></a>
<h4 id="X10D_Collections_DictionaryExtensions_AddOrUpdate__2_IDictionary___0___1____0___1_Func___0___1___1__" data-uid="X10D.Collections.DictionaryExtensions.AddOrUpdate``2(IDictionary{``0,``1},``0,``1,Func{``0,``1,``1})">AddOrUpdate&lt;TKey, TValue&gt;(IDictionary&lt;TKey, TValue&gt;, TKey, TValue, Func&lt;TKey, TValue, TValue&gt;)</h4>
<div class="markdown level1 summary"><p>Adds a key/value pair to the <see cref="!:IDictionary&lt;TKey,TValue>"></see> if the key does not already exist, or updates a
key/value pair in the <see cref="!:IDictionary&lt;TKey,TValue>"></see> by using the specified function if the key already
exists.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static TValue AddOrUpdate&lt;TKey, TValue&gt;(this IDictionary&lt;TKey, TValue&gt; dictionary, TKey key, TValue addValue, Func&lt;TKey, TValue, TValue&gt; updateValueFactory)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">IDictionary</span>&lt;TKey, TValue&gt;</td>
<td><span class="parametername">dictionary</span></td>
<td><p>The dictionary to update.</p>
</td>
</tr>
<tr>
<td><span class="xref">TKey</span></td>
<td><span class="parametername">key</span></td>
<td><p>The key to be added or whose value should be updated.</p>
</td>
</tr>
<tr>
<td><span class="xref">TValue</span></td>
<td><span class="parametername">addValue</span></td>
<td><p>The value to be added for an absent key.</p>
</td>
</tr>
<tr>
<td><span class="xref">Func</span>&lt;TKey, TValue, TValue&gt;</td>
<td><span class="parametername">updateValueFactory</span></td>
<td><p>The function used to generate a new value for an existing key based on the key's existing 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">TValue</span></td>
<td><p>The new value for the key. This will be either be <code data-dev-comment-type="paramref" class="paramref">addValue</code> (if the key was absent) or the result
of <code data-dev-comment-type="paramref" class="paramref">updateValueFactory</code> (if the key was present).</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">TKey</span></td>
<td><p>The type of the keys in the dictionary.</p>
</td>
</tr>
<tr>
<td><span class="parametername">TValue</span></td>
<td><p>The type of the values in the dictionary.</p>
</td>
</tr>
</tbody>
</table>
<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_DictionaryExtensions_AddOrUpdate__2_IDictionary___0___1____0_Func___0___1__Func___0___1___1__.md&amp;value=---%0Auid%3A%20X10D.Collections.DictionaryExtensions.AddOrUpdate%60%602(IDictionary%7B%60%600%2C%60%601%7D%2C%60%600%2CFunc%7B%60%600%2C%60%601%7D%2CFunc%7B%60%600%2C%60%601%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/Collections/DictionaryExtensions.cs/#L175">View Source</a>
</span>
<a id="X10D_Collections_DictionaryExtensions_AddOrUpdate_" data-uid="X10D.Collections.DictionaryExtensions.AddOrUpdate*"></a>
<h4 id="X10D_Collections_DictionaryExtensions_AddOrUpdate__2_IDictionary___0___1____0_Func___0___1__Func___0___1___1__" data-uid="X10D.Collections.DictionaryExtensions.AddOrUpdate``2(IDictionary{``0,``1},``0,Func{``0,``1},Func{``0,``1,``1})">AddOrUpdate&lt;TKey, TValue&gt;(IDictionary&lt;TKey, TValue&gt;, TKey, Func&lt;TKey, TValue&gt;, Func&lt;TKey, TValue, TValue&gt;)</h4>
<div class="markdown level1 summary"><p>Uses the specified functions to add a key/value pair to the <see cref="!:IDictionary&lt;TKey,TValue>"></see> if the key does
not already exist, or to update a key/value pair in the <see cref="!:IDictionary&lt;TKey,TValue>"></see> if the key already
exists.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static TValue AddOrUpdate&lt;TKey, TValue&gt;(this IDictionary&lt;TKey, TValue&gt; dictionary, TKey key, Func&lt;TKey, TValue&gt; addValueFactory, Func&lt;TKey, TValue, TValue&gt; updateValueFactory)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">IDictionary</span>&lt;TKey, TValue&gt;</td>
<td><span class="parametername">dictionary</span></td>
<td><p>The dictionary to update.</p>
</td>
</tr>
<tr>
<td><span class="xref">TKey</span></td>
<td><span class="parametername">key</span></td>
<td><p>The key to be added or whose value should be updated.</p>
</td>
</tr>
<tr>
<td><span class="xref">Func</span>&lt;TKey, TValue&gt;</td>
<td><span class="parametername">addValueFactory</span></td>
<td><p>The function used to generate a value for an absent key.</p>
</td>
</tr>
<tr>
<td><span class="xref">Func</span>&lt;TKey, TValue, TValue&gt;</td>
<td><span class="parametername">updateValueFactory</span></td>
<td><p>The function used to generate a new value for an existing key based on the key's existing 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">TValue</span></td>
<td><p>The new value for the key. This will be either be the result of <code data-dev-comment-type="paramref" class="paramref">addValueFactory </code> (if the key was
absent) or the result of <code data-dev-comment-type="paramref" class="paramref">updateValueFactory</code> (if the key was present).</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">TKey</span></td>
<td><p>The type of the keys in the dictionary.</p>
</td>
</tr>
<tr>
<td><span class="parametername">TValue</span></td>
<td><p>The type of the values in the dictionary.</p>
</td>
</tr>
</tbody>
</table>
<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_DictionaryExtensions_AddOrUpdate__3_Dictionary___0___1____0_Func___0___2___1__Func___0___1___2___1____2_.md&amp;value=---%0Auid%3A%20X10D.Collections.DictionaryExtensions.AddOrUpdate%60%603(Dictionary%7B%60%600%2C%60%601%7D%2C%60%600%2CFunc%7B%60%600%2C%60%602%2C%60%601%7D%2CFunc%7B%60%600%2C%60%601%2C%60%602%2C%60%601%7D%2C%60%602)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Collections/DictionaryExtensions.cs/#L238">View Source</a>
</span>
<a id="X10D_Collections_DictionaryExtensions_AddOrUpdate_" data-uid="X10D.Collections.DictionaryExtensions.AddOrUpdate*"></a>
<h4 id="X10D_Collections_DictionaryExtensions_AddOrUpdate__3_Dictionary___0___1____0_Func___0___2___1__Func___0___1___2___1____2_" data-uid="X10D.Collections.DictionaryExtensions.AddOrUpdate``3(Dictionary{``0,``1},``0,Func{``0,``2,``1},Func{``0,``1,``2,``1},``2)">AddOrUpdate&lt;TKey, TValue, TArg&gt;(Dictionary&lt;TKey, TValue&gt;, TKey, Func&lt;TKey, TArg, TValue&gt;, Func&lt;TKey, TValue, TArg, TValue&gt;, TArg)</h4>
<div class="markdown level1 summary"><p>Uses the specified functions and argument to add a key/value pair to the <see cref="!:Dictionary&lt;TKey,TValue>"></see> if
the key does not already exist, or to update a key/value pair in the <see cref="!:Dictionary&lt;TKey,TValue>"></see> if th
key already exists.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static TValue AddOrUpdate&lt;TKey, TValue, TArg&gt;(this Dictionary&lt;TKey, TValue&gt; dictionary, TKey key, Func&lt;TKey, TArg, TValue&gt; addValueFactory, Func&lt;TKey, TValue, TArg, TValue&gt; updateValueFactory, TArg factoryArgument)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Dictionary</span>&lt;TKey, TValue&gt;</td>
<td><span class="parametername">dictionary</span></td>
<td><p>The dictionary to update.</p>
</td>
</tr>
<tr>
<td><span class="xref">TKey</span></td>
<td><span class="parametername">key</span></td>
<td><p>The key to be added or whose value should be updated.</p>
</td>
</tr>
<tr>
<td><span class="xref">Func</span>&lt;TKey, TArg, TValue&gt;</td>
<td><span class="parametername">addValueFactory</span></td>
<td><p>The function used to generate a value for an absent key.</p>
</td>
</tr>
<tr>
<td><span class="xref">Func</span>&lt;TKey, TValue, TArg, TValue&gt;</td>
<td><span class="parametername">updateValueFactory</span></td>
<td><p>The function used to generate a new value for an existing key based on the key's existing value.</p>
</td>
</tr>
<tr>
<td><span class="xref">TArg</span></td>
<td><span class="parametername">factoryArgument</span></td>
<td><p>An argument to pass into <code data-dev-comment-type="paramref" class="paramref">addValueFactory</code> and <code data-dev-comment-type="paramref" class="paramref">updateValueFactory</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">TValue</span></td>
<td><p>The new value for the key. This will be either be the result of <code data-dev-comment-type="paramref" class="paramref">addValueFactory </code> (if the key was
absent) or the result of <code data-dev-comment-type="paramref" class="paramref">updateValueFactory</code> (if the key was present).</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">TKey</span></td>
<td><p>The type of the keys in the dictionary.</p>
</td>
</tr>
<tr>
<td><span class="parametername">TValue</span></td>
<td><p>The type of the values in the dictionary.</p>
</td>
</tr>
<tr>
<td><span class="parametername">TArg</span></td>
<td><p>The type of an argument to pass into <code data-dev-comment-type="paramref" class="paramref">addValueFactory</code> and <code data-dev-comment-type="paramref" class="paramref">updateValueFactory</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_DictionaryExtensions_AddOrUpdate__3_IDictionary___0___1____0_Func___0___2___1__Func___0___1___2___1____2_.md&amp;value=---%0Auid%3A%20X10D.Collections.DictionaryExtensions.AddOrUpdate%60%603(IDictionary%7B%60%600%2C%60%601%7D%2C%60%600%2CFunc%7B%60%600%2C%60%602%2C%60%601%7D%2CFunc%7B%60%600%2C%60%601%2C%60%602%2C%60%601%7D%2C%60%602)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Collections/DictionaryExtensions.cs/#L293">View Source</a>
</span>
<a id="X10D_Collections_DictionaryExtensions_AddOrUpdate_" data-uid="X10D.Collections.DictionaryExtensions.AddOrUpdate*"></a>
<h4 id="X10D_Collections_DictionaryExtensions_AddOrUpdate__3_IDictionary___0___1____0_Func___0___2___1__Func___0___1___2___1____2_" data-uid="X10D.Collections.DictionaryExtensions.AddOrUpdate``3(IDictionary{``0,``1},``0,Func{``0,``2,``1},Func{``0,``1,``2,``1},``2)">AddOrUpdate&lt;TKey, TValue, TArg&gt;(IDictionary&lt;TKey, TValue&gt;, TKey, Func&lt;TKey, TArg, TValue&gt;, Func&lt;TKey, TValue, TArg, TValue&gt;, TArg)</h4>
<div class="markdown level1 summary"><p>Uses the specified functions and argument to add a key/value pair to the <see cref="!:IDictionary&lt;TKey,TValue>"></see> if
the key does not already exist, or to update a key/value pair in the <see cref="!:IDictionary&lt;TKey,TValue>"></see> if th
key already exists.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static TValue AddOrUpdate&lt;TKey, TValue, TArg&gt;(this IDictionary&lt;TKey, TValue&gt; dictionary, TKey key, Func&lt;TKey, TArg, TValue&gt; addValueFactory, Func&lt;TKey, TValue, TArg, TValue&gt; updateValueFactory, TArg factoryArgument)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">IDictionary</span>&lt;TKey, TValue&gt;</td>
<td><span class="parametername">dictionary</span></td>
<td><p>The dictionary to update.</p>
</td>
</tr>
<tr>
<td><span class="xref">TKey</span></td>
<td><span class="parametername">key</span></td>
<td><p>The key to be added or whose value should be updated.</p>
</td>
</tr>
<tr>
<td><span class="xref">Func</span>&lt;TKey, TArg, TValue&gt;</td>
<td><span class="parametername">addValueFactory</span></td>
<td><p>The function used to generate a value for an absent key.</p>
</td>
</tr>
<tr>
<td><span class="xref">Func</span>&lt;TKey, TValue, TArg, TValue&gt;</td>
<td><span class="parametername">updateValueFactory</span></td>
<td><p>The function used to generate a new value for an existing key based on the key's existing value.</p>
</td>
</tr>
<tr>
<td><span class="xref">TArg</span></td>
<td><span class="parametername">factoryArgument</span></td>
<td><p>An argument to pass into <code data-dev-comment-type="paramref" class="paramref">addValueFactory</code> and <code data-dev-comment-type="paramref" class="paramref">updateValueFactory</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">TValue</span></td>
<td><p>The new value for the key. This will be either be the result of <code data-dev-comment-type="paramref" class="paramref">addValueFactory </code> (if the key was
absent) or the result of <code data-dev-comment-type="paramref" class="paramref">updateValueFactory</code> (if the key was present).</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">TKey</span></td>
<td><p>The type of the keys in the dictionary.</p>
</td>
</tr>
<tr>
<td><span class="parametername">TValue</span></td>
<td><p>The type of the values in the dictionary.</p>
</td>
</tr>
<tr>
<td><span class="parametername">TArg</span></td>
<td><p>The type of an argument to pass into <code data-dev-comment-type="paramref" class="paramref">addValueFactory</code> and <code data-dev-comment-type="paramref" class="paramref">updateValueFactory</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_DictionaryExtensions_ToConnectionString__2_IEnumerable_KeyValuePair___0___1___.md&amp;value=---%0Auid%3A%20X10D.Collections.DictionaryExtensions.ToConnectionString%60%602(IEnumerable%7BKeyValuePair%7B%60%600%2C%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/Collections/DictionaryExtensions.cs/#L335">View Source</a>
</span>
<a id="X10D_Collections_DictionaryExtensions_ToConnectionString_" data-uid="X10D.Collections.DictionaryExtensions.ToConnectionString*"></a>
<h4 id="X10D_Collections_DictionaryExtensions_ToConnectionString__2_IEnumerable_KeyValuePair___0___1___" data-uid="X10D.Collections.DictionaryExtensions.ToConnectionString``2(IEnumerable{KeyValuePair{``0,``1}})">ToConnectionString&lt;TKey, TValue&gt;(IEnumerable&lt;KeyValuePair&lt;TKey, TValue&gt;&gt;)</h4>
<div class="markdown level1 summary"><p>Converts an <see cref="!:IEnumerable&lt;T>"></see> of <see cref="!:KeyValuePair&lt;TKey, TValue>"></see> to a data connection
string.</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 ToConnectionString&lt;TKey, TValue&gt;(this IEnumerable&lt;KeyValuePair&lt;TKey, TValue&gt;&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">KeyValuePair</span>&lt;TKey, TValue&gt;&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>The source dictionary.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="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>A <see cref="!:System.String"></see> representing the dictionary as a key=value set, concatenated with <code>;</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">TKey</span></td>
<td><p>The type of the key element of the key/value pair.</p>
</td>
</tr>
<tr>
<td><span class="parametername">TValue</span></td>
<td><p>The type of the value element of the key/value pair.</p>
</td>
</tr>
</tbody>
</table>
<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_DictionaryExtensions_ToConnectionString__2_IEnumerable_KeyValuePair___0___1___Func___0_System_String__Func___1_System_Nullable_System_String___.md&amp;value=---%0Auid%3A%20X10D.Collections.DictionaryExtensions.ToConnectionString%60%602(IEnumerable%7BKeyValuePair%7B%60%600%2C%60%601%7D%7D%2CFunc%7B%60%600%2CSystem.String%7D%2CFunc%7B%60%601%2CSystem.Nullable%7BSystem.String%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/Collections/DictionaryExtensions.cs/#L430">View Source</a>
</span>
<a id="X10D_Collections_DictionaryExtensions_ToConnectionString_" data-uid="X10D.Collections.DictionaryExtensions.ToConnectionString*"></a>
<h4 id="X10D_Collections_DictionaryExtensions_ToConnectionString__2_IEnumerable_KeyValuePair___0___1___Func___0_System_String__Func___1_System_Nullable_System_String___" data-uid="X10D.Collections.DictionaryExtensions.ToConnectionString``2(IEnumerable{KeyValuePair{``0,``1}},Func{``0,System.String},Func{``1,System.Nullable{System.String}})">ToConnectionString&lt;TKey, TValue&gt;(IEnumerable&lt;KeyValuePair&lt;TKey, TValue&gt;&gt;, Func&lt;TKey, String&gt;, Func&lt;TValue, Nullable&lt;String&gt;&gt;)</h4>
<div class="markdown level1 summary"><p>Converts an <see cref="!:IEnumerable&lt;T>"></see> of <see cref="!:KeyValuePair&lt;TKey, TValue>"></see> to an data connection
string.</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 ToConnectionString&lt;TKey, TValue&gt;(this IEnumerable&lt;KeyValuePair&lt;TKey, TValue&gt;&gt; source, Func&lt;TKey, string&gt; keySelector, Func&lt;TValue, string?&gt; valueSelector)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-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">KeyValuePair</span>&lt;TKey, TValue&gt;&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>The source dictionary.</p>
</td>
</tr>
<tr>
<td><span class="xref">Func</span>&lt;TKey, <span class="xref">System.String</span>&gt;</td>
<td><span class="parametername">keySelector</span></td>
<td><p>A transform function to apply to the <see cref="!:KeyValuePair&lt;TKey,TValue>.Key"></see> of each element.</p>
</td>
</tr>
<tr>
<td><span class="xref">Func</span>&lt;TValue, <span class="xref">System.Nullable</span>&lt;<span class="xref">System.String</span>&gt;&gt;</td>
<td><span class="parametername">valueSelector</span></td>
<td><p>A transform function to apply to the <see cref="!:KeyValuePair&lt;TKey,TValue>.Value"></see> of 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.String</span></td>
<td><p>A <see cref="!:System.String"></see> representing the dictionary as a key=value set, concatenated with <code>;</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">TKey</span></td>
<td><p>The type of the key element of the key/value pair.</p>
</td>
</tr>
<tr>
<td><span class="parametername">TValue</span></td>
<td><p>The type of the value element of the key/value pair.</p>
</td>
</tr>
</tbody>
</table>
<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_DictionaryExtensions_ToConnectionString__2_IEnumerable_KeyValuePair___0___1___Func___1_System_Nullable_System_String___.md&amp;value=---%0Auid%3A%20X10D.Collections.DictionaryExtensions.ToConnectionString%60%602(IEnumerable%7BKeyValuePair%7B%60%600%2C%60%601%7D%7D%2CFunc%7B%60%601%2CSystem.Nullable%7BSystem.String%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/Collections/DictionaryExtensions.cs/#L377">View Source</a>
</span>
<a id="X10D_Collections_DictionaryExtensions_ToConnectionString_" data-uid="X10D.Collections.DictionaryExtensions.ToConnectionString*"></a>
<h4 id="X10D_Collections_DictionaryExtensions_ToConnectionString__2_IEnumerable_KeyValuePair___0___1___Func___1_System_Nullable_System_String___" data-uid="X10D.Collections.DictionaryExtensions.ToConnectionString``2(IEnumerable{KeyValuePair{``0,``1}},Func{``1,System.Nullable{System.String}})">ToConnectionString&lt;TKey, TValue&gt;(IEnumerable&lt;KeyValuePair&lt;TKey, TValue&gt;&gt;, Func&lt;TValue, Nullable&lt;String&gt;&gt;)</h4>
<div class="markdown level1 summary"><p>Converts an <see cref="!:IEnumerable&lt;T>"></see> of <see cref="!:KeyValuePair&lt;TKey, TValue>"></see> to a data connection
string.</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 ToConnectionString&lt;TKey, TValue&gt;(this IEnumerable&lt;KeyValuePair&lt;TKey, TValue&gt;&gt; source, Func&lt;TValue, string?&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;<span class="xref">KeyValuePair</span>&lt;TKey, TValue&gt;&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>The source dictionary.</p>
</td>
</tr>
<tr>
<td><span class="xref">Func</span>&lt;TValue, <span class="xref">System.Nullable</span>&lt;<span class="xref">System.String</span>&gt;&gt;</td>
<td><span class="parametername">selector</span></td>
<td><p>A transform function to apply to the <see cref="!:KeyValuePair&lt;TKey,TValue>.Value"></see> of 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.String</span></td>
<td><p>A <see cref="!:System.String"></see> representing the dictionary as a key=value set, concatenated with <code>;</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">TKey</span></td>
<td><p>The type of the key element of the key/value pair.</p>
</td>
</tr>
<tr>
<td><span class="parametername">TValue</span></td>
<td><p>The type of the value element of the key/value pair.</p>
</td>
</tr>
</tbody>
</table>
<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_DictionaryExtensions_ToGetParameters__2_IEnumerable_KeyValuePair___0___1___.md&amp;value=---%0Auid%3A%20X10D.Collections.DictionaryExtensions.ToGetParameters%60%602(IEnumerable%7BKeyValuePair%7B%60%600%2C%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/Collections/DictionaryExtensions.cs/#L476">View Source</a>
</span>
<a id="X10D_Collections_DictionaryExtensions_ToGetParameters_" data-uid="X10D.Collections.DictionaryExtensions.ToGetParameters*"></a>
<h4 id="X10D_Collections_DictionaryExtensions_ToGetParameters__2_IEnumerable_KeyValuePair___0___1___" data-uid="X10D.Collections.DictionaryExtensions.ToGetParameters``2(IEnumerable{KeyValuePair{``0,``1}})">ToGetParameters&lt;TKey, TValue&gt;(IEnumerable&lt;KeyValuePair&lt;TKey, TValue&gt;&gt;)</h4>
<div class="markdown level1 summary"><p>Converts an <see cref="!:IEnumerable&lt;T>"></see> of <see cref="!:KeyValuePair&lt;TKey, TValue>"></see> to a HTTP GET query string.</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 ToGetParameters&lt;TKey, TValue&gt;(this IEnumerable&lt;KeyValuePair&lt;TKey, TValue&gt;&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">KeyValuePair</span>&lt;TKey, TValue&gt;&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>The source dictionary.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="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>A <see cref="!:System.String"></see> representing the dictionary as a key=value set, concatenated with <code>&amp;</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">TKey</span></td>
<td><p>The type of the key element of the key/value pair.</p>
</td>
</tr>
<tr>
<td><span class="parametername">TValue</span></td>
<td><p>The type of the value element of the key/value pair.</p>
</td>
</tr>
</tbody>
</table>
<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_DictionaryExtensions_ToGetParameters__2_IEnumerable_KeyValuePair___0___1___Func___0_System_String__Func___1_System_Nullable_System_String___.md&amp;value=---%0Auid%3A%20X10D.Collections.DictionaryExtensions.ToGetParameters%60%602(IEnumerable%7BKeyValuePair%7B%60%600%2C%60%601%7D%7D%2CFunc%7B%60%600%2CSystem.String%7D%2CFunc%7B%60%601%2CSystem.Nullable%7BSystem.String%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/Collections/DictionaryExtensions.cs/#L556">View Source</a>
</span>
<a id="X10D_Collections_DictionaryExtensions_ToGetParameters_" data-uid="X10D.Collections.DictionaryExtensions.ToGetParameters*"></a>
<h4 id="X10D_Collections_DictionaryExtensions_ToGetParameters__2_IEnumerable_KeyValuePair___0___1___Func___0_System_String__Func___1_System_Nullable_System_String___" data-uid="X10D.Collections.DictionaryExtensions.ToGetParameters``2(IEnumerable{KeyValuePair{``0,``1}},Func{``0,System.String},Func{``1,System.Nullable{System.String}})">ToGetParameters&lt;TKey, TValue&gt;(IEnumerable&lt;KeyValuePair&lt;TKey, TValue&gt;&gt;, Func&lt;TKey, String&gt;, Func&lt;TValue, Nullable&lt;String&gt;&gt;)</h4>
<div class="markdown level1 summary"><p>Converts an <see cref="!:IEnumerable&lt;T>"></see> of <see cref="!:KeyValuePair&lt;TKey, TValue>"></see> to a HTTP GET query string.</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 ToGetParameters&lt;TKey, TValue&gt;(this IEnumerable&lt;KeyValuePair&lt;TKey, TValue&gt;&gt; source, Func&lt;TKey, string&gt; keySelector, Func&lt;TValue, string?&gt; valueSelector)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-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">KeyValuePair</span>&lt;TKey, TValue&gt;&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>The source dictionary.</p>
</td>
</tr>
<tr>
<td><span class="xref">Func</span>&lt;TKey, <span class="xref">System.String</span>&gt;</td>
<td><span class="parametername">keySelector</span></td>
<td><p>A transform function to apply to the <see cref="!:KeyValuePair&lt;TKey,TValue>.Key"></see> of each element.</p>
</td>
</tr>
<tr>
<td><span class="xref">Func</span>&lt;TValue, <span class="xref">System.Nullable</span>&lt;<span class="xref">System.String</span>&gt;&gt;</td>
<td><span class="parametername">valueSelector</span></td>
<td><p>A transform function to apply to the <see cref="!:KeyValuePair&lt;TKey,TValue>.Value"></see> of 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.String</span></td>
<td><p>A <see cref="!:System.String"></see> representing the dictionary as a key=value set, concatenated with <code>&amp;</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">TKey</span></td>
<td><p>The type of the key element of the key/value pair.</p>
</td>
</tr>
<tr>
<td><span class="parametername">TValue</span></td>
<td><p>The type of the value element of the key/value pair.</p>
</td>
</tr>
</tbody>
</table>
<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_DictionaryExtensions_ToGetParameters__2_IEnumerable_KeyValuePair___0___1___Func___1_System_Nullable_System_String___.md&amp;value=---%0Auid%3A%20X10D.Collections.DictionaryExtensions.ToGetParameters%60%602(IEnumerable%7BKeyValuePair%7B%60%600%2C%60%601%7D%7D%2CFunc%7B%60%601%2CSystem.Nullable%7BSystem.String%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/Collections/DictionaryExtensions.cs/#L510">View Source</a>
</span>
<a id="X10D_Collections_DictionaryExtensions_ToGetParameters_" data-uid="X10D.Collections.DictionaryExtensions.ToGetParameters*"></a>
<h4 id="X10D_Collections_DictionaryExtensions_ToGetParameters__2_IEnumerable_KeyValuePair___0___1___Func___1_System_Nullable_System_String___" data-uid="X10D.Collections.DictionaryExtensions.ToGetParameters``2(IEnumerable{KeyValuePair{``0,``1}},Func{``1,System.Nullable{System.String}})">ToGetParameters&lt;TKey, TValue&gt;(IEnumerable&lt;KeyValuePair&lt;TKey, TValue&gt;&gt;, Func&lt;TValue, Nullable&lt;String&gt;&gt;)</h4>
<div class="markdown level1 summary"><p>Converts an <see cref="!:IEnumerable&lt;T>"></see> of <see cref="!:KeyValuePair&lt;TKey, TValue>"></see> to a HTTP GET query string.</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 ToGetParameters&lt;TKey, TValue&gt;(this IEnumerable&lt;KeyValuePair&lt;TKey, TValue&gt;&gt; source, Func&lt;TValue, string?&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;<span class="xref">KeyValuePair</span>&lt;TKey, TValue&gt;&gt;</td>
<td><span class="parametername">source</span></td>
<td><p>The source dictionary.</p>
</td>
</tr>
<tr>
<td><span class="xref">Func</span>&lt;TValue, <span class="xref">System.Nullable</span>&lt;<span class="xref">System.String</span>&gt;&gt;</td>
<td><span class="parametername">selector</span></td>
<td><p>A transform function to apply to the <see cref="!:KeyValuePair&lt;TKey,TValue>.Value"></see> of 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.String</span></td>
<td><p>A <see cref="!:System.String"></see> representing the dictionary as a key=value set, concatenated with <code>&amp;</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">TKey</span></td>
<td><p>The type of the key element of the key/value pair.</p>
</td>
</tr>
<tr>
<td><span class="parametername">TValue</span></td>
<td><p>The type of the value element of the key/value pair.</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>