{"id":2610,"date":"2023-07-08T16:34:13","date_gmt":"2023-07-08T09:34:13","guid":{"rendered":"https:\/\/csharptutorial.net\/?page_id=2610"},"modified":"2023-07-08T21:33:23","modified_gmt":"2023-07-08T14:33:23","slug":"csharp-collections","status":"publish","type":"page","link":"https:\/\/www.csharptutorial.net\/csharp-collections\/","title":{"rendered":"C# Collections"},"content":{"rendered":"\n<p>This C# Collections series will teach you how to effectively utilize a comprehensive set of collection classes including lists, dictionaries, sets, queues, as well as concurrent and immutable collections.<\/p>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\">\n<h2 class=\"wp-block-heading\">Section 1. Basic C# Collections<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/csharptutorial.net\/csharp-collections\/csharp-list\/\">List&lt;T><\/a> &#8211; learns how to manage a dynamic-size collection of elements.<\/li>\n\n\n\n<li><a href=\"https:\/\/csharptutorial.net\/csharp-collections\/csharp-dictionary\/\">Dictionary&lt;T><\/a> &#8211; shows you how to use Dictionary to represent a collection of key-value pairs. The dictionary provides an efficient way to store, retrieve, and manipulate data based on a unique key associated with each value.<\/li>\n\n\n\n<li><a href=\"https:\/\/csharptutorial.net\/csharp-collections\/csharp-stack\/\">Stack&lt;T><\/a> &#8211; learns how to use the Stack&lt;T> to manage a collection of elements in the last-in, first-out (LIFO) order.<\/li>\n\n\n\n<li><a href=\"https:\/\/csharptutorial.net\/csharp-collections\/csharp-queue\/\">Queue&lt;T><\/a> &#8211; guides you on how to use the Queue&lt;T> class to manage a collection of elements in the first-in, first-out (FIFO) order.<\/li>\n<\/ul>\n<\/div><\/div>\n<div class=\"helpful-block-content\" data-title=\"\">\n\t<header>\n\t\t<div class=\"wth-question\">Was this tutorial helpful ?<\/div>\n\t\t<div class=\"wth-thumbs\">\n\t\t\t<button\n\t\t\t\tdata-post=\"2610\"\n\t\t\t\tdata-post-url=\"https:\/\/www.csharptutorial.net\/csharp-collections\/\"\n\t\t\t\tdata-post-title=\"C# Collections\"\n\t\t\t\tdata-response=\"1\"\n\t\t\t\tclass=\"wth-btn-rounded wth-yes-btn\"\n\t\t\t>\n\t\t\t\t<svg\n\t\t\t\t\txmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\tfill=\"none\"\n\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\tstroke-width=\"2\"\n\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t\t\tclass=\"feather feather-thumbs-up block w-full h-full\"\n\t\t\t\t>\n\t\t\t\t\t<path\n\t\t\t\t\t\td=\"M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3\"\n\t\t\t\t\t><\/path>\n\t\t\t\t<\/svg>\n\t\t\t\t<span class=\"sr-only\"> Yes <\/span>\n\t\t\t<\/button>\n\n\t\t\t<button\n\t\t\t\tdata-response=\"0\"\n\t\t\t\tdata-post=\"2610\"\n\t\t\t\tdata-post-url=\"https:\/\/www.csharptutorial.net\/csharp-collections\/\"\n\t\t\t\tdata-post-title=\"C# Collections\"\n\t\t\t\tclass=\"wth-btn-rounded wth-no-btn\"\n\t\t\t>\n\t\t\t\t<svg\n\t\t\t\t\txmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\tfill=\"none\"\n\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\tstroke-width=\"2\"\n\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t\t>\n\t\t\t\t\t<path\n\t\t\t\t\t\td=\"M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17\"\n\t\t\t\t\t><\/path>\n\t\t\t\t<\/svg>\n\t\t\t\t<span class=\"sr-only\"> No <\/span>\n\t\t\t<\/button>\n\t\t<\/div>\n\t<\/header>\n\n\t<div class=\"wth-form hidden\">\n\t\t<div class=\"wth-form-wrapper\">\n\t\t\t<div class=\"wth-title\"><\/div>\n\t\t\t\n\t\t\t<textarea class=\"wth-message\"><\/textarea>\n\n\t\t\t<button class=\"btn btn-primary wth-btn-submit\">Send<\/button>\n\t\t\t<button class=\"btn wth-btn-cancel\">Cancel<\/button>\n\t\t\n\t\t<\/div>\n\t<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>This C# Collections series will teach you how to effectively utilize a comprehensive set of collection classes including lists, dictionaries, sets, and queues.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":6,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-2610","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.csharptutorial.net\/wp-json\/wp\/v2\/pages\/2610","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.csharptutorial.net\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.csharptutorial.net\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.csharptutorial.net\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.csharptutorial.net\/wp-json\/wp\/v2\/comments?post=2610"}],"version-history":[{"count":3,"href":"https:\/\/www.csharptutorial.net\/wp-json\/wp\/v2\/pages\/2610\/revisions"}],"predecessor-version":[{"id":2638,"href":"https:\/\/www.csharptutorial.net\/wp-json\/wp\/v2\/pages\/2610\/revisions\/2638"}],"wp:attachment":[{"href":"https:\/\/www.csharptutorial.net\/wp-json\/wp\/v2\/media?parent=2610"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}