55 < head >
66 < meta charset ="utf-8 ">
77 < meta http-equiv ="X-UA-Compatible " content ="IE=edge,chrome=1 ">
8- < title > Class Dictionary<TK, TV >
8+ < title > Class Dictionary<K, V >
99 | Advanced Algorithms </ title >
1010 < meta name ="viewport " content ="width=device-width ">
11- < meta name ="title " content ="Class Dictionary<TK, TV >
11+ < meta name ="title " content ="Class Dictionary<K, V >
1212 | Advanced Algorithms ">
1313 < meta name ="generator " content ="docfx 2.37.1.0 ">
1414
8181 < article class ="content wrap " id ="_content " data-uid ="Advanced.Algorithms.DataStructures.Dictionary`2 ">
8282
8383
84- < h1 id ="Advanced_Algorithms_DataStructures_Dictionary_2 " data-uid ="Advanced.Algorithms.DataStructures.Dictionary`2 " class ="text-break "> Class Dictionary<TK, TV >
84+ < h1 id ="Advanced_Algorithms_DataStructures_Dictionary_2 " data-uid ="Advanced.Algorithms.DataStructures.Dictionary`2 " class ="text-break "> Class Dictionary<K, V >
8585 </ h1 >
8686 < div class ="markdown level0 summary "> < p > A dictionary implementation.</ p >
8787</ div >
8888 < div class ="markdown level0 conceptual "> </ div >
8989 < div class ="inheritance ">
9090 < h5 > Inheritance</ h5 >
9191 < div class ="level0 "> < a class ="xref " href ="https://docs.microsoft.com/dotnet/api/system.object "> Object</ a > </ div >
92- < div class ="level1 "> < span class ="xref "> Dictionary<TK, TV ></ span > </ div >
92+ < div class ="level1 "> < span class ="xref "> Dictionary<K, V ></ span > </ div >
9393 </ div >
9494 < div classs ="implements ">
9595 < h5 > Implements</ h5 >
96- < div > < a class ="xref " href ="https://docs.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1 "> IEnumerable</ a > << a class ="xref " href ="https://docs.microsoft.com/dotnet/api/system.collections.generic.keyvaluepair-2 "> KeyValuePair</ a > <TK, TV >></ div >
96+ < div > < a class ="xref " href ="https://docs.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1 "> IEnumerable</ a > << a class ="xref " href ="https://docs.microsoft.com/dotnet/api/system.collections.generic.keyvaluepair-2 "> KeyValuePair</ a > <K, V >></ div >
9797 < div > < a class ="xref " href ="https://docs.microsoft.com/dotnet/api/system.collections.ienumerable "> IEnumerable</ a > </ div >
9898 </ div >
9999 < div class ="inheritedMembers ">
@@ -124,7 +124,7 @@ <h6><strong>Namespace</strong>: <a class="xref" href="Advanced.Algorithms.DataSt
124124 < h6 > < strong > Assembly</ strong > : Advanced.Algorithms.dll</ h6 >
125125 < h5 id ="Advanced_Algorithms_DataStructures_Dictionary_2_syntax "> Syntax</ h5 >
126126 < div class ="codewrapper ">
127- < pre > < code class ="lang-csharp hljs "> public class Dictionary<TK, TV > : IEnumerable<KeyValuePair<TK, TV >>, IEnumerable</ code > </ pre >
127+ < pre > < code class ="lang-csharp hljs "> public class Dictionary<K, V > : IEnumerable<KeyValuePair<K, V >>, IEnumerable</ code > </ pre >
128128 </ div >
129129 < h5 class ="typeParameters "> Type Parameters</ h5 >
130130 < table class ="table table-bordered table-striped table-condensed ">
@@ -136,11 +136,12 @@ <h5 class="typeParameters">Type Parameters</h5>
136136 </ thead >
137137 < tbody >
138138 < tr >
139- < td > < span class ="parametername "> TK</ span > </ td >
140- < td > </ td >
139+ < td > < span class ="parametername "> K</ span > </ td >
140+ < td > < p > The key datatype.</ p >
141+ </ td >
141142 </ tr >
142143 < tr >
143- < td > < span class ="parametername "> TV </ span > </ td >
144+ < td > < span class ="parametername "> V </ span > </ td >
144145 < td > < p > The value datatype.</ p >
145146</ td >
146147 </ tr >
@@ -214,14 +215,14 @@ <h5 class="propertyValue">Property Value</h5>
214215
215216
216217 < a id ="Advanced_Algorithms_DataStructures_Dictionary_2_Item_ " data-uid ="Advanced.Algorithms.DataStructures.Dictionary`2.Item* "> </ a >
217- < h4 id ="Advanced_Algorithms_DataStructures_Dictionary_2_Item__0_ " data-uid ="Advanced.Algorithms.DataStructures.Dictionary`2.Item(`0) "> Item[TK ]</ h4 >
218+ < h4 id ="Advanced_Algorithms_DataStructures_Dictionary_2_Item__0_ " data-uid ="Advanced.Algorithms.DataStructures.Dictionary`2.Item(`0) "> Item[K ]</ h4 >
218219 < div class ="markdown level1 summary "> < p > Get/set value for given key.
219220Time complexity: O(1) amortized.</ p >
220221</ div >
221222 < div class ="markdown level1 conceptual "> </ div >
222223 < h5 class ="decalaration "> Declaration</ h5 >
223224 < div class ="codewrapper ">
224- < pre > < code class ="lang-csharp hljs "> public TV this[TK key] { get; set; }</ code > </ pre >
225+ < pre > < code class ="lang-csharp hljs "> public V this[K key] { get; set; }</ code > </ pre >
225226 </ div >
226227 < h5 class ="parameters "> Parameters</ h5 >
227228 < table class ="table table-bordered table-striped table-condensed ">
@@ -234,7 +235,7 @@ <h5 class="parameters">Parameters</h5>
234235 </ thead >
235236 < tbody >
236237 < tr >
237- < td > < span class ="xref "> TK </ span > </ td >
238+ < td > < span class ="xref "> K </ span > </ td >
238239 < td > < span class ="parametername "> key</ span > </ td >
239240 < td > </ td >
240241 </ tr >
@@ -250,7 +251,7 @@ <h5 class="propertyValue">Property Value</h5>
250251 </ thead >
251252 < tbody >
252253 < tr >
253- < td > < span class ="xref "> TV </ span > </ td >
254+ < td > < span class ="xref "> V </ span > </ td >
254255 < td > </ td >
255256 </ tr >
256257 </ tbody >
@@ -260,14 +261,14 @@ <h3 id="methods">Methods
260261
261262
262263 < a id ="Advanced_Algorithms_DataStructures_Dictionary_2_Add_ " data-uid ="Advanced.Algorithms.DataStructures.Dictionary`2.Add* "> </ a >
263- < h4 id ="Advanced_Algorithms_DataStructures_Dictionary_2_Add__0__1_ " data-uid ="Advanced.Algorithms.DataStructures.Dictionary`2.Add(`0,`1) "> Add(TK, TV )</ h4 >
264+ < h4 id ="Advanced_Algorithms_DataStructures_Dictionary_2_Add__0__1_ " data-uid ="Advanced.Algorithms.DataStructures.Dictionary`2.Add(`0,`1) "> Add(K, V )</ h4 >
264265 < div class ="markdown level1 summary "> < p > Add a new key for given value.
265266Time complexity: O(1) amortized.</ p >
266267</ div >
267268 < div class ="markdown level1 conceptual "> </ div >
268269 < h5 class ="decalaration "> Declaration</ h5 >
269270 < div class ="codewrapper ">
270- < pre > < code class ="lang-csharp hljs "> public void Add(TK key, TV value)</ code > </ pre >
271+ < pre > < code class ="lang-csharp hljs "> public void Add(K key, V value)</ code > </ pre >
271272 </ div >
272273 < h5 class ="parameters "> Parameters</ h5 >
273274 < table class ="table table-bordered table-striped table-condensed ">
@@ -280,13 +281,13 @@ <h5 class="parameters">Parameters</h5>
280281 </ thead >
281282 < tbody >
282283 < tr >
283- < td > < span class ="xref "> TK </ span > </ td >
284+ < td > < span class ="xref "> K </ span > </ td >
284285 < td > < span class ="parametername "> key</ span > </ td >
285286 < td > < p > The key to add.</ p >
286287</ td >
287288 </ tr >
288289 < tr >
289- < td > < span class ="xref "> TV </ span > </ td >
290+ < td > < span class ="xref "> V </ span > </ td >
290291 < td > < span class ="parametername "> value</ span > </ td >
291292 < td > < p > The value for the given key.</ p >
292293</ td >
@@ -308,14 +309,14 @@ <h5 class="decalaration">Declaration</h5>
308309
309310
310311 < a id ="Advanced_Algorithms_DataStructures_Dictionary_2_ContainsKey_ " data-uid ="Advanced.Algorithms.DataStructures.Dictionary`2.ContainsKey* "> </ a >
311- < h4 id ="Advanced_Algorithms_DataStructures_Dictionary_2_ContainsKey__0_ " data-uid ="Advanced.Algorithms.DataStructures.Dictionary`2.ContainsKey(`0) "> ContainsKey(TK )</ h4 >
312+ < h4 id ="Advanced_Algorithms_DataStructures_Dictionary_2_ContainsKey__0_ " data-uid ="Advanced.Algorithms.DataStructures.Dictionary`2.ContainsKey(`0) "> ContainsKey(K )</ h4 >
312313 < div class ="markdown level1 summary "> < p > Does this dictionary contains the given key.
313314Time complexity: O(1) amortized.</ p >
314315</ div >
315316 < div class ="markdown level1 conceptual "> </ div >
316317 < h5 class ="decalaration "> Declaration</ h5 >
317318 < div class ="codewrapper ">
318- < pre > < code class ="lang-csharp hljs "> public bool ContainsKey(TK key)</ code > </ pre >
319+ < pre > < code class ="lang-csharp hljs "> public bool ContainsKey(K key)</ code > </ pre >
319320 </ div >
320321 < h5 class ="parameters "> Parameters</ h5 >
321322 < table class ="table table-bordered table-striped table-condensed ">
@@ -328,7 +329,7 @@ <h5 class="parameters">Parameters</h5>
328329 </ thead >
329330 < tbody >
330331 < tr >
331- < td > < span class ="xref "> TK </ span > </ td >
332+ < td > < span class ="xref "> K </ span > </ td >
332333 < td > < span class ="parametername "> key</ span > </ td >
333334 < td > </ td >
334335 </ tr >
@@ -358,7 +359,7 @@ <h4 id="Advanced_Algorithms_DataStructures_Dictionary_2_GetEnumerator" data-uid=
358359 < div class ="markdown level1 conceptual "> </ div >
359360 < h5 class ="decalaration "> Declaration</ h5 >
360361 < div class ="codewrapper ">
361- < pre > < code class ="lang-csharp hljs "> public IEnumerator<KeyValuePair<TK, TV >> GetEnumerator()</ code > </ pre >
362+ < pre > < code class ="lang-csharp hljs "> public IEnumerator<KeyValuePair<K, V >> GetEnumerator()</ code > </ pre >
362363 </ div >
363364 < h5 class ="returns "> Returns</ h5 >
364365 < table class ="table table-bordered table-striped table-condensed ">
@@ -370,22 +371,22 @@ <h5 class="returns">Returns</h5>
370371 </ thead >
371372 < tbody >
372373 < tr >
373- < td > < a class ="xref " href ="https://docs.microsoft.com/dotnet/api/system.collections.generic.ienumerator-1 "> IEnumerator</ a > << a class ="xref " href ="https://docs.microsoft.com/dotnet/api/system.collections.generic.keyvaluepair-2 "> KeyValuePair</ a > <TK, TV >></ td >
374+ < td > < a class ="xref " href ="https://docs.microsoft.com/dotnet/api/system.collections.generic.ienumerator-1 "> IEnumerator</ a > << a class ="xref " href ="https://docs.microsoft.com/dotnet/api/system.collections.generic.keyvaluepair-2 "> KeyValuePair</ a > <K, V >></ td >
374375 < td > </ td >
375376 </ tr >
376377 </ tbody >
377378 </ table >
378379
379380
380381 < a id ="Advanced_Algorithms_DataStructures_Dictionary_2_Remove_ " data-uid ="Advanced.Algorithms.DataStructures.Dictionary`2.Remove* "> </ a >
381- < h4 id ="Advanced_Algorithms_DataStructures_Dictionary_2_Remove__0_ " data-uid ="Advanced.Algorithms.DataStructures.Dictionary`2.Remove(`0) "> Remove(TK )</ h4 >
382+ < h4 id ="Advanced_Algorithms_DataStructures_Dictionary_2_Remove__0_ " data-uid ="Advanced.Algorithms.DataStructures.Dictionary`2.Remove(`0) "> Remove(K )</ h4 >
382383 < div class ="markdown level1 summary "> < p > Remove the given key along with its value.
383384Time complexity: O(1) amortized.</ p >
384385</ div >
385386 < div class ="markdown level1 conceptual "> </ div >
386387 < h5 class ="decalaration "> Declaration</ h5 >
387388 < div class ="codewrapper ">
388- < pre > < code class ="lang-csharp hljs "> public void Remove(TK key)</ code > </ pre >
389+ < pre > < code class ="lang-csharp hljs "> public void Remove(K key)</ code > </ pre >
389390 </ div >
390391 < h5 class ="parameters "> Parameters</ h5 >
391392 < table class ="table table-bordered table-striped table-condensed ">
@@ -398,7 +399,7 @@ <h5 class="parameters">Parameters</h5>
398399 </ thead >
399400 < tbody >
400401 < tr >
401- < td > < span class ="xref "> TK </ span > </ td >
402+ < td > < span class ="xref "> K </ span > </ td >
402403 < td > < span class ="parametername "> key</ span > </ td >
403404 < td > < p > The key to remove.</ p >
404405</ td >
0 commit comments