\documentclass[10pt,a4paper]{article} % Packages \usepackage{fancyhdr} % For header and footer \usepackage{multicol} % Allows multicols in tables \usepackage{tabularx} % Intelligent column widths \usepackage{tabulary} % Used in header and footer \usepackage{hhline} % Border under tables \usepackage{graphicx} % For images \usepackage{xcolor} % For hex colours %\usepackage[utf8x]{inputenc} % For unicode character support \usepackage[T1]{fontenc} % Without this we get weird character replacements \usepackage{colortbl} % For coloured tables \usepackage{setspace} % For line height \usepackage{lastpage} % Needed for total page number \usepackage{seqsplit} % Splits long words. %\usepackage{opensans} % Can't make this work so far. Shame. Would be lovely. \usepackage[normalem]{ulem} % For underlining links % Most of the following are not required for the majority % of cheat sheets but are needed for some symbol support. \usepackage{amsmath} % Symbols \usepackage{MnSymbol} % Symbols \usepackage{wasysym} % Symbols %\usepackage[english,german,french,spanish,italian]{babel} % Languages % Document Info \author{masterofcode} \pdfinfo{ /Title (c-collection.pdf) /Creator (Cheatography) /Author (masterofcode) /Subject (C\# Collection Cheat Sheet) } % Lengths and widths \addtolength{\textwidth}{6cm} \addtolength{\textheight}{-1cm} \addtolength{\hoffset}{-3cm} \addtolength{\voffset}{-2cm} \setlength{\tabcolsep}{0.2cm} % Space between columns \setlength{\headsep}{-12pt} % Reduce space between header and content \setlength{\headheight}{85pt} % If less, LaTeX automatically increases it \renewcommand{\footrulewidth}{0pt} % Remove footer line \renewcommand{\headrulewidth}{0pt} % Remove header line \renewcommand{\seqinsert}{\ifmmode\allowbreak\else\-\fi} % Hyphens in seqsplit % This two commands together give roughly % the right line height in the tables \renewcommand{\arraystretch}{1.3} \onehalfspacing % Commands \newcommand{\SetRowColor}[1]{\noalign{\gdef\RowColorName{#1}}\rowcolor{\RowColorName}} % Shortcut for row colour \newcommand{\mymulticolumn}[3]{\multicolumn{#1}{>{\columncolor{\RowColorName}}#2}{#3}} % For coloured multi-cols \newcolumntype{x}[1]{>{\raggedright}p{#1}} % New column types for ragged-right paragraph columns \newcommand{\tn}{\tabularnewline} % Required as custom column type in use % Font and Colours \definecolor{HeadBackground}{HTML}{333333} \definecolor{FootBackground}{HTML}{666666} \definecolor{TextColor}{HTML}{333333} \definecolor{DarkBackground}{HTML}{5F37A3} \definecolor{LightBackground}{HTML}{F5F2F9} \renewcommand{\familydefault}{\sfdefault} \color{TextColor} % Header and Footer \pagestyle{fancy} \fancyhead{} % Set header to blank \fancyfoot{} % Set footer to blank \fancyhead[L]{ \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{C} \SetRowColor{DarkBackground} \vspace{-7pt} {\parbox{\dimexpr\textwidth-2\fboxsep\relax}{\noindent \hspace*{-6pt}\includegraphics[width=5.8cm]{/web/www.cheatography.com/public/images/cheatography_logo.pdf}} } \end{tabulary} \columnbreak \begin{tabulary}{11cm}{L} \vspace{-2pt}\large{\bf{\textcolor{DarkBackground}{\textrm{C\# Collection Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{masterofcode} via \textcolor{DarkBackground}{\uline{cheatography.com/140841/cs/30006/}}} \end{tabulary} \end{multicols}} \fancyfoot[L]{ \footnotesize \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{LL} \SetRowColor{FootBackground} \mymulticolumn{2}{p{5.377cm}}{\bf\textcolor{white}{Cheatographer}} \\ \vspace{-2pt}masterofcode \\ \uline{cheatography.com/masterofcode} \\ \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Published 2nd December, 2021.\\ Updated 3rd December, 2021.\\ Page {\thepage} of \pageref{LastPage}. \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Sponsor}} \\ \SetRowColor{white} \vspace{-5pt} %\includegraphics[width=48px,height=48px]{dave.jpeg} Measure your website readability!\\ www.readability-score.com \end{tabulary} \end{multicols}} \begin{document} \raggedright \raggedcolumns % Set font size to small. Switch to any value % from this page to resize cheat sheet text: % www.emerson.emory.edu/services/latex/latex_169.html \footnotesize % Small font. \begin{multicols*}{2} \begin{tabularx}{8.4cm}{x{1.44 cm} x{6.56 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{System.Collections Classes}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{Class}} & {\bf{Description}} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \seqsplit{ArrayList} & Represents an array of objects whose size is dynamically increased as required. \tn % Row Count 5 (+ 3) % Row 2 \SetRowColor{LightBackground} \seqsplit{Hashtable} & Represents a collection of key/value pairs that are organized based on the hash code of the key. \tn % Row Count 8 (+ 3) % Row 3 \SetRowColor{white} Queue & Represents a first in, first out (FIFO) collection of objects. \tn % Row Count 10 (+ 2) % Row 4 \SetRowColor{LightBackground} Stack & Represents a last in, first out (LIFO) collection of objects. \tn % Row Count 12 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{List\textless{}T\textgreater{} Class}} \tn \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{{\bf{Namespace:}} \seqsplit{System.Collections.Generic} \newline % Row Count 1 (+ 1) {\bf{Assembly:}} System.Collections.dll \newline % Row Count 2 (+ 1) \{\{nl\}\}Represents a strongly typed list of objects that can be accessed by index. Provides methods to search, sort, and manipulate lists. \newline % Row Count 5 (+ 3) `// Create a list of parts.` \newline % Row Count 6 (+ 1) `List\textless{}Part\textgreater{} parts = new List\textless{}Part\textgreater{}();` \newline % Row Count 7 (+ 1) `// Add parts to the list.` \newline % Row Count 8 (+ 1) `parts.Add(new Part() \{ PartName = "crank arm", PartId = 1234 \});` \newline % Row Count 10 (+ 2) `parts.Add(new Part() \{ PartName = "chain ring", PartId = 1334 \});` \newline % Row Count 12 (+ 2) `parts.Add(new Part() \{ PartName = "regular seat", PartId = 1434 \});` \newline % Row Count 14 (+ 2) `parts.Add(new Part() \{ PartName = "banana seat", PartId = 1444 \});` \newline % Row Count 16 (+ 2) `parts.Add(new Part() \{ PartName = "cassette", PartId = 1534 \});` \newline % Row Count 18 (+ 2) `parts.Add(new Part() \{ PartName = "shift lever", PartId = 1634 \});`% Row Count 20 (+ 2) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{1.444 cm} x{3.116 cm} x{3.04 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{8.4cm}}{\bf\textcolor{white}{List\textless{}T\textgreater{} Methods}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{Method}} & {\bf{Usage}} & {\bf{Example}} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} List\textless{}T\textgreater{}.Add(T) & Adds an object to the end of the List\textless{}T\textgreater{}. & `parts.Add(new Part() \{ PartName = "crank arm", PartId = 1234 \});` \tn % Row Count 7 (+ 5) % Row 2 \SetRowColor{LightBackground} List\textless{}T\textgreater{}.Remove(T) & Removes the first occurrence of a specific object from the List\textless{}T\textgreater{}. & \seqsplit{`parts.Remove(new} Part() \{ PartId = 1534, PartName = "cogs" \});` \tn % Row Count 12 (+ 5) % Row 3 \SetRowColor{white} List\textless{}T\textgreater{}.Clear & Removes all elements from the List\textless{}T\textgreater{}. & \seqsplit{`parts.Clear();`} \tn % Row Count 15 (+ 3) % Row 4 \SetRowColor{LightBackground} List\textless{}T\textgreater{}.Contains(T) & Determines whether an element is in the List\textless{}T\textgreater{}. & \seqsplit{`parts.Contains(new} Part \{ PartId = 1734, PartName = "" \}));` \tn % Row Count 19 (+ 4) % Row 5 \SetRowColor{white} List\textless{}T\textgreater{}.Sort & Sorts the elements or a portion of the elements in the List\textless{}T\textgreater{} using either the specified or default IComparer\textless{}T\textgreater{} implementation or a provided Comparison\textless{}T\textgreater{} delegate to compare list elements. & `parts.Sort();` \tn % Row Count 31 (+ 12) \hhline{>{\arrayrulecolor{DarkBackground}}---} \SetRowColor{LightBackground} \mymulticolumn{3}{x{8.4cm}}{For further information and examples visit \{\{link="https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.list-1?view=net-6.0"\}\}this\{\{/link\}\} link} \tn \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{Stack\textless{}T\textgreater{} Class}} \tn \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{{\bf{Namespace:}} \seqsplit{System.Collections.Generic} \newline % Row Count 1 (+ 1) {\bf{Assembly:}} System.Collections.dll \newline % Row Count 2 (+ 1) \{\{nl\}\}Specifies the type of elements in the stack. \newline % Row Count 4 (+ 2) `// Create a stack of strings` \newline % Row Count 5 (+ 1) `Stack\textless{}string\textgreater{} numbers = new Stack\textless{}string\textgreater{}();` \newline % Row Count 6 (+ 1) `// Add items to the stack` \newline % Row Count 7 (+ 1) `numbers.Push("one");` \newline % Row Count 8 (+ 1) `numbers.Push("two");`% Row Count 9 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{1.748 cm} x{3.572 cm} x{2.28 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{8.4cm}}{\bf\textcolor{white}{Stack\textless{}T\textgreater{} Methods}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{Method}} & {\bf{Usage}} & {\bf{Example}} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} Stack\textless{}T\textgreater{}.Push(T) & Inserts an object at the top of the Stack\textless{}T\textgreater{}. & \seqsplit{`numbers.Push("one");`} \tn % Row Count 5 (+ 3) % Row 2 \SetRowColor{LightBackground} Stack\textless{}T\textgreater{}.Pop & Removes and returns the object at the top of the Stack\textless{}T\textgreater{}. & \seqsplit{`numbers.Pop();`} \tn % Row Count 9 (+ 4) % Row 3 \SetRowColor{white} Stack\textless{}T\textgreater{}.Push(T) & Represents a first in, first out (FIFO) collection of objects. & \seqsplit{`numbers.Push("one");`} \tn % Row Count 13 (+ 4) % Row 4 \SetRowColor{LightBackground} Stack\textless{}T\textgreater{}.Peek & The object at the top of the Stack\textless{}T\textgreater{}. & \seqsplit{`numbers.Peek();`} \tn % Row Count 16 (+ 3) % Row 5 \SetRowColor{white} Stack\textless{}T\textgreater{}.Contains(T) & Determines whether an element is in the Stack\textless{}T\textgreater{}. & \seqsplit{`stack2.Contains("four");`} \tn % Row Count 19 (+ 3) % Row 6 \SetRowColor{LightBackground} Stack\textless{}T\textgreater{}.Clear & Removes all objects from the Stack\textless{}T\textgreater{}. & \seqsplit{`stack2.Clear();`} \tn % Row Count 22 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}---} \SetRowColor{LightBackground} \mymulticolumn{3}{x{8.4cm}}{For further information and examples visit \{\{link="https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.stack-1?view=net-6.0"\}\}this\{\{/link\}\} link} \tn \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{HashSet\textless{}T\textgreater{} Class}} \tn \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{{\bf{Namespace:}} \seqsplit{System.Collections.Generic} \newline % Row Count 1 (+ 1) {\bf{Assembly:}} System.Collections.dll \newline % Row Count 2 (+ 1) \{\{nl\}\}Represents a set of values. \newline % Row Count 3 (+ 1) `HashSet\textless{}int\textgreater{} evenNumbers = new HashSet\textless{}int\textgreater{}();` \newline % Row Count 4 (+ 1) `HashSet\textless{}int\textgreater{} oddNumbers = new HashSet\textless{}int\textgreater{}();` \newline % Row Count 5 (+ 1) ` ` \newline % Row Count 6 (+ 1) `for (int i = 0; i \textless{} 5; i++)` \newline % Row Count 7 (+ 1) `\{` \newline % Row Count 8 (+ 1) ` // Populate numbers with just even numbers.` \newline % Row Count 9 (+ 1) ` evenNumbers.Add(i * 2);` \newline % Row Count 10 (+ 1) ` ` \newline % Row Count 11 (+ 1) ` // Populate oddNumbers with just odd numbers.` \newline % Row Count 13 (+ 2) ` oddNumbers.Add((i * 2) + 1);` \newline % Row Count 14 (+ 1) `\}`% Row Count 15 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{1.9 cm} x{3.496 cm} x{2.204 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{8.4cm}}{\bf\textcolor{white}{HashSet\textless{}T\textgreater{} Methods}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{Method}} & {\bf{Usage}} & {\bf{Example}} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} HashSet\textless{}T\textgreater{}.Add(T) & Adds the specified element to a set. & \seqsplit{`evenNumbers}.Add(i * 2);` \tn % Row Count 4 (+ 3) % Row 2 \SetRowColor{LightBackground} HashSet\textless{}T\textgreater{}.Remove(T) & Removes all elements from a HashSet\textless{}T\textgreater{} object. & \seqsplit{`numbers.Remove(0);`} \tn % Row Count 7 (+ 3) % Row 3 \SetRowColor{white} HashSet\textless{}T\textgreater{}.Clear & Represents a first in, first out (FIFO) collection of objects. & \seqsplit{`numbers.Clear();`} \tn % Row Count 11 (+ 4) % Row 4 \SetRowColor{LightBackground} HashSet\textless{}T\textgreater{}.Contains(T) & Determines whether a HashSet\textless{}T\textgreater{} object contains the specified element. & \seqsplit{`numbers.Contains(0)`} \tn % Row Count 15 (+ 4) \hhline{>{\arrayrulecolor{DarkBackground}}---} \SetRowColor{LightBackground} \mymulticolumn{3}{x{8.4cm}}{For further information and examples visit \{\{link="https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.hashset-1?view=net-6.0"\}\}this\{\{/link\}\} link} \tn \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{2.96 cm} x{5.04 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{\seqsplit{System.Collections.Generic} Classes}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{Class}} & {\bf{Description}} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} Dictionary\textless{}TKey,TValue\textgreater{} & Represents a collection of key/value pairs that are organized based on the key. \tn % Row Count 5 (+ 4) % Row 2 \SetRowColor{LightBackground} List\textless{}T\textgreater{} & Represents a list of objects that can be accessed by index. Provides methods to search, sort, and modify lists. \tn % Row Count 10 (+ 5) % Row 3 \SetRowColor{white} Queue\textless{}T\textgreater{} & Represents a first in, first out (FIFO) collection of objects. \tn % Row Count 13 (+ 3) % Row 4 \SetRowColor{LightBackground} SortedList\textless{}TKey,TValue\textgreater{} & Represents a collection of key/value pairs that are sorted by key based on the associated IComparer\textless{}T\textgreater{} implementation. \tn % Row Count 18 (+ 5) % Row 5 \SetRowColor{white} Stack\textless{}T\textgreater{} & Represents a last in, first out (LIFO) collection of objects. \tn % Row Count 21 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{Queue\textless{}T\textgreater{} Class}} \tn \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{{\bf{Namespace:}} \seqsplit{System.Collections.Generic} \newline % Row Count 1 (+ 1) {\bf{Assembly:}} System.Collections.dll \newline % Row Count 2 (+ 1) \{\{nl\}\}Represents a first-in, first-out collection of objects. \newline % Row Count 4 (+ 2) `Create a queue of strings` \newline % Row Count 5 (+ 1) `Queue\textless{}string\textgreater{} numbers = new Queue\textless{}string\textgreater{}();` \newline % Row Count 6 (+ 1) `Add items in the queue` \newline % Row Count 7 (+ 1) \seqsplit{`numbers.Enqueue("one");`} \newline % Row Count 8 (+ 1) \seqsplit{`numbers.Enqueue("two");`} \newline % Row Count 9 (+ 1) \seqsplit{`numbers.Enqueue("three");`}% Row Count 10 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{1.824 cm} x{3.572 cm} x{2.204 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{8.4cm}}{\bf\textcolor{white}{Queue\textless{}T\textgreater{} Methods}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{Method}} & {\bf{Usage}} & {\bf{Example}} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} Queue\textless{}T\textgreater{}.Enqueue(T) & Adds an object to the end of the Queue\textless{}T\textgreater{}. & \seqsplit{`numbers.Enqueue("one");`} \tn % Row Count 5 (+ 3) % Row 2 \SetRowColor{LightBackground} Queue\textless{}T\textgreater{}.Dequeue & Removes and returns the object at the beginning of the Queue\textless{}T\textgreater{}. & \seqsplit{`numbers.Dequeue();`} \tn % Row Count 9 (+ 4) % Row 3 \SetRowColor{white} Queue\textless{}T\textgreater{}.Peek & The object at the beginning of the Queue\textless{}T\textgreater{}. & \seqsplit{`numbers.Peek();`} \tn % Row Count 12 (+ 3) % Row 4 \SetRowColor{LightBackground} Queue\textless{}T\textgreater{}.Contains(T) & Determines whether an element is in the Queue\textless{}T\textgreater{}. & \seqsplit{`numbers.Contains(0)`} \tn % Row Count 15 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}---} \SetRowColor{LightBackground} \mymulticolumn{3}{x{8.4cm}}{For further information and examples visit \{\{link="https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.queue-1?view=net-6.0"\}\}this\{\{/link\}\} link} \tn \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{Dictionary\textless{}TKey,TValue\textgreater{} Class}} \tn \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{{\bf{Namespace:}} \seqsplit{System.Collections.Generic} \newline % Row Count 1 (+ 1) {\bf{Assembly:}} System.Collections.dll \newline % Row Count 2 (+ 1) \{\{nl\}\}Represents a collection of keys and values. \newline % Row Count 3 (+ 1) `// Create a new dictionary of strings, with string keys.` \newline % Row Count 5 (+ 2) `Dictionary\textless{}string, string\textgreater{} openWith =` \newline % Row Count 6 (+ 1) ` new Dictionary\textless{}string, string\textgreater{}();` \newline % Row Count 7 (+ 1) `openWith.Add("txt", "notepad.exe");`% Row Count 8 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{2.584 cm} x{2.508 cm} x{2.508 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{8.4cm}}{\bf\textcolor{white}{Dictionary\textless{}TKey,TValue\textgreater{} Methods}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{Method}} & {\bf{Usage}} & {\bf{Example}} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} Dictionary\textless{}TKey,TValue\textgreater{}.Add(TKey, TValue) & Adds the specified key and value to the dictionary. & \seqsplit{`openWith.Add("txt"}, \seqsplit{"notepad.exe");`} \tn % Row Count 5 (+ 4) % Row 2 \SetRowColor{LightBackground} Dictionary\textless{}TKey,TValue\textgreater{}.Remove & Removes the value with the specified key from the Dictionary\textless{}TKey,TValue\textgreater{}. & `public bool Remove (TKey key); \{\{nl\}\} \seqsplit{openWith.Remove("doc");`} \tn % Row Count 11 (+ 6) % Row 3 \SetRowColor{white} Dictionary\textless{}TKey,TValue\textgreater{}.Clear & Removes all keys and values from the Dictionary\textless{}TKey,TValue\textgreater{}. & `public void Clear (); \{\{nl\}\} \seqsplit{openWith.Clear();} ` \tn % Row Count 16 (+ 5) % Row 4 \SetRowColor{LightBackground} Dictionary\textless{}TKey,TValue\textgreater{}.ContainsKey(TKey) & Determines whether the Dictionary\textless{}TKey,TValue\textgreater{} contains the specified key. & `public bool ContainsKey (TKey key); \{\{nl\}\} \seqsplit{openWith.ContainsKey("ht");} ` \tn % Row Count 22 (+ 6) % Row 5 \SetRowColor{white} Dictionary\textless{}TKey,TValue\textgreater{}.ContainsValue(TValue) & Determines whether the Dictionary\textless{}TKey,TValue\textgreater{} contains a specific value. & `public bool \seqsplit{ContainsValue} (TValue value); \{\{nl\}\} \seqsplit{openWith.ContainsValue("hypertrm.exe");`} \tn % Row Count 29 (+ 7) \hhline{>{\arrayrulecolor{DarkBackground}}---} \SetRowColor{LightBackground} \mymulticolumn{3}{x{8.4cm}}{For further information and examples visit \{\{link="https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.dictionary-2?view=net-6.0"\}\}this\{\{/link\}\} link} \tn \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}