In this article I’ll show you the Queue<> class and the various methods and properties of it. Queue reрresents а first-in, first оut соlleсtiоn оf оbjeсt. It is used when yоu need а first-in, first-оut ассess оf items...
Tag - C# Collections
How to find the maximum and minimum number in a List in C#
In this blog post, I will be demonstrating how you can find the largest and smallest number in an array. Consider the following code snippet: C# Code: C# static void Main(string[] args) { List<int> list = new...
How to Insert Elements at a Position in a C# List?
The Insert method of List class inserts an object at a given position. The first parameter of the method is the 0th based index in the List. The InsertRange method can insert a collection at the given position. Add an item...
List Collection in C#
In c#, List is a generic type of collection, so it will allow storing only strongly typed objects, i.e., elements of the same data type. The size of the list will vary dynamically based on our application requirements, like...