Tutorials
Courses
Go Premium
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
32.1K+ articles
Misc
7.8K+ articles
C#
1.9K+ articles
CSharp-method
701+ articles
CSharp-Collections-Namespace
196+ articles
CSharp-Generic-Namespace
140+ articles
CSharp-Arrays
53+ articles
CSharp-data-types
6+ articles
CSharp-HashTable
2+ articles
CSharp-HashSet
1+ articles
CSharp-Generic-List
33 posts
Recent Articles
Popular Articles
C# Data Structures
Last Updated: 23 July 2025
Data Structures are an important part of programming language. When we are creating solutions for real-world problems, choosing the right data structure is critical becaus...
read more
C#
CSharp-data-types
CSharp-HashSet
CSharp-HashTable
CSharp-Stack-Class
CSharp-Queue-Class
CSharp-Generic-Queue
CSharp-Generic-List
CSharp-LinkedList
CSharp-Tuple
CSharp-Deque
CSharp-DSA
How to Convert Integer Array to List in C#?
Last Updated: 15 July 2025
We have given a integerarray arr and the task is to convert integerarray into the list lst in C#. In order to do this task, we have the following methods:Method 1: ListT c...
read more
C#
CSharp-Arrays
CSharp-Generic-List
C# List Implementation
Last Updated: 11 July 2025
In C#, a List is a generic collection used to store the elements or objects in the form of a list defined under System.Collection.Generic namespace. It provides the same f...
read more
C#
CSharp-Generic-List
CSharp-Generic-Namespace
List.FindIndex() Method in C# with Examples
Last Updated: 11 July 2025
ListT.FindIndex Method is used to search for an element that matches the conditions defined by a specified predicate and returns the index of the first occurrence within t...
read more
Technical Scripter
C#
CSharp-method
CSharp-Generic-List
CSharp-Generic-Namespace
How to sort a list in C# | List.Sort() Method Set -2
Last Updated: 11 July 2025
ListT.Sort() Method is used to sort the elements or a portion of the elements in the ListT using either the specified or default IComparerT implementation or a provided Co...
read more
Technical Scripter
C#
CSharp-method
CSharp-Generic-List
CSharp-Generic-Namespace
List FindLastIndex() Method in C# | Set -2
Last Updated: 11 July 2025
This method is used to search for an element which matches the conditions defined by a specified predicate and returns the zero-based index of the last occurrence within t...
read more
Technical Scripter
C#
CSharp-method
CSharp-Generic-List
CSharp-Generic-Namespace
How to sort a list in C# | List.Sort() Method Set -1
Last Updated: 11 July 2025
ListT.Sort() Method is used to sort the elements or a portion of the elements in the ListT using either the specified or default IComparerT implementation or a provided Co...
read more
C#
Picked
CSharp-method
CSharp-Generic-List
CSharp-Generic-Namespace
List BinarySearch() Method in C#
Last Updated: 11 July 2025
ListT.BinarySearch(T) Method uses a binary search algorithm to locate a specific element in the sorted ListT or a portion of it. There are 3 methods in the overload list o...
read more
Technical Scripter
C#
Picked
Technical Scripter 2018
CSharp-method
CSharp-Generic-List
CSharp-Generic-Namespace
List FindLastIndex() Method in C# | Set -1
Last Updated: 11 July 2025
This method is used to search for an element which matches the conditions defined by a specified predicate and returns the zero-based index of the last occurrence within t...
read more
Technical Scripter
C#
Picked
Technical Scripter 2018
CSharp-method
CSharp-Generic-List
CSharp-Generic-Namespace
C# | Creating a read-only wrapper for List
Last Updated: 11 July 2025
ListT.AsReadOnly Method is used to get a read-only ReadOnlyCollectionT wrapper for the current collection.Syntax:public System.Collections.ObjectModel.ReadOnlyCollectionT ...
read more
C#
CSharp-method
CSharp-Generic-List
CSharp-Generic-Namespace
C# | Check if two List objects are equal
Last Updated: 11 July 2025
Equals(Object) Method which is inherited from the Object class is used to check if a specified ListT object is equal to another ListT object or not.Syntax:public virtual b...
read more
C#
CSharp-method
CSharp-Generic-List
CSharp-Generic-Namespace
C# | Creating a read-only wrapper for the List
Last Updated: 11 July 2025
ListT.AsReadOnly Method is used to get a read-only ReadOnlyCollectionT wrapper for the current collection.Syntax:public System.Collections.ObjectModel.ReadOnlyCollection A...
read more
C#
CSharp-method
CSharp-Generic-List
CSharp-Generic-Namespace
C# | List.TrimExcess Method
Last Updated: 11 July 2025
ListT.TrimExcess Method is used to set the capacity to the actual number of elements in the ListT, if that number is less than a threshold value. Syntax:public void TrimEx...
read more
C#
CSharp-method
CSharp-Generic-List
CSharp-Generic-Namespace
C# | Get an enumerator that iterates through the List
Last Updated: 11 July 2025
ListT.GetEnumerator Method is used to returns an enumerator that iterates through the ListT.Syntax:public System.Collections.Generic.ListT.Enumerator GetEnumerator ();Retu...
read more
C#
CSharp-method
CSharp-Generic-List
CSharp-Generic-Namespace
C# List Class
Last Updated: 11 July 2025
In C#, the ListT class represents the list of objects that can be accessed by index. It comes under the System.Collections.Generic namespace. List class can be used to cre...
read more
C#
CSharp-Generic-List
CSharp-Generic-Namespace
1
2
3
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !