A list is a collection of items that can be accessed by index and provides functionality to search, sort and manipulate list items. Here we see how to create a list in c#.
How to get and set size of a List using C#. The Capacity property gets and sets the number of items a c# list can hold without resizing. C# List Capacity is always greater than or equal to the Count value.
How to read a list items using C#. The List<T> is a collection. We can use the foreach loop to go through all the items and read them.
How to get number of items in a List with C#. C# List<T> class provides methods and properties to create a list of objects (classes).
How to get and set an item of a List in C#. The Item property gets and sets the value associated with the specified index.
A list is a collection of items that can be accessed by index and provides functionality to search, sort and manipulate list items. Here we see how to create a list of objects with C#.
How to convert a string to a char array using C#. The ToCharArray method of the string class converts a string to a character array.
How to Convert char array to string using C#. The string class constructor takes an array of characters to create a new string from an array of characters.
How to get all values of a dictionary with C#. The Values property gets a collection containing the values in the C# Dictionary. It returns an object of ValueCollection type.
Here is the code example that deletes all elements from a C# dictionary.
How to get all keys of a dictionary with C#. The Keys property gets a collection containing the keys in the Dictionary. It returns an object of KeyCollection type.
How to find a key in a Dictionary with C#. The ContainsKey method checks if a key already exists in the dictionary.

How to Sort a Dictionary by Value using C#. The example code first creates a dictionary and then uses OrderBy method to sort the items.
How to remove an item of a Dictionary with C#. The Remove method removes an item with the specified key from the collection. The Clear method removes all items from the collection.
How to read all items of a Dictionary in C#. The C# Dictionary is a collection. We can use the foreach loop to go through all the items and read them using they Key and Value properties.
How to add items to a Dictionary in C#. The Add method adds an item to the Dictionary collection in form of a key and a value.
How do I create a dictionary using C#. The Dictionary class constructor takes a key data type and a value data type. Both types are generic so it can be any .NET data type.
How to count dictionary items in C#. The Count property gets the number of key/value pairs in a c# Dictionary.

DevSocialUpcoming · 3rd editionAI Agents ConferenceNov 23–27, 2026Live onlineMembers only16days leftRegisterMembers onlyWrite an article and earn +1,000 SHARP when it is approved.
Write an article