Courses
Tutorials
Practice
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
37.4K+ articles
DSA
22.8K+ articles
Python
21.3K+ articles
Experiences
16.6K+ articles
Interview Experiences
14.1K+ articles
JavaScript
12.2K+ articles
School Learning
11.5K+ articles
C#
1.9K+ articles
CSharp-method
701+ articles
CSharp-Collections.ObjectModel-Namespace
12+ articles
CSharp-Collection-Class
12 posts
Recent Articles
Popular Articles
C# | Get an enumerator that iterates through Collection<T>
Last Updated: 01 February 2019
CollectionT.GetEnumerator Method is used to get an enumerator that iterates through the CollectionT.Syntax:public System.Collections.Generic.IEnumeratorT GetEnumerator ();...
read more
C#
CSharp-method
CSharp-Collections.ObjectModel-Namespace
CSharp-Collection-Class
C# | Collection Class
Last Updated: 01 February 2019
.math-table { border-collapse: collapse; width: 100%;}.math-table td { border: 1px solid #5fb962; text-align: left !important; padding: 8px;}.math-table th...
read more
C#
CSharp-Collections.ObjectModel-Namespace
CSharp-Collection-Class
C# | Get or set the element at specified index in Collection<T>
Last Updated: 01 February 2019
CollectionT.Item[Int32] property is used to get or set the element at the specified index.Syntax:public T this[int index] { get; set; }Here, index is the zero-based index ...
read more
C#
CSharp-Collections.ObjectModel-Namespace
CSharp-Collection-Class
C# | Searching the index of specified object in Collection<T>
Last Updated: 01 February 2019
CollectionT.IndexOf(T) method is used to search for the specified object and returns the zero-based index of the first occurrence within the entire CollectionT.Syntax:publ...
read more
C#
CSharp-method
CSharp-Collections.ObjectModel-Namespace
CSharp-Collection-Class
C# | Add an object to the end of Collection<T>
Last Updated: 01 February 2019
CollectionT.Add(T) method is used to add an object to the end of the CollectionT.Syntax :public void Add (T item);Here, item is the object to be added to the end of the Co...
read more
C#
CSharp-method
CSharp-Collections.ObjectModel-Namespace
CSharp-Collection-Class
C# | Remove all elements from the Collection<T>
Last Updated: 01 February 2019
CollectionT.Clear method is used to remove all elements from the CollectionT.Syntax:public void Clear ();Below given are some examples to understand the implementation in ...
read more
C#
CSharp-method
CSharp-Collections.ObjectModel-Namespace
CSharp-Collection-Class
C# | Copying the Collection<T> elements to an array
Last Updated: 01 February 2019
CollectionT.CopyTo(T[], Int32) method is used to copy the entire CollectionT to a compatible one-dimensional Array, starting at the specified index of the target array.Syn...
read more
C#
CSharp-method
CSharp-Collections.ObjectModel-Namespace
CSharp-Collection-Class
C# | Get the number of elements contained in Collection<T>
Last Updated: 01 February 2019
CollectionT.Count property is used to get the number of elements actually contained in the CollectionT.Syntax:public int Count { get; }Return Value: The number of elements...
read more
C#
CSharp-Collections.ObjectModel-Namespace
CSharp-Collection-Class
C# | Remove element at specified index of Collection<T>
Last Updated: 01 February 2019
CollectionT.RemoveAt(Int32) is used to remove the element at the specified index of the CollectionT.Syntax:public void RemoveAt (int index);Here, index is the zero-based i...
read more
C#
CSharp-method
CSharp-Collections.ObjectModel-Namespace
CSharp-Collection-Class
C# | Insert an element into Collection<T> at specified index
Last Updated: 01 February 2019
CollectionT.Insert(Int32, T) method is used to insert an element into the CollectionT at the specified index.Syntax:public void Insert (int index, T item);Parameters: in...
read more
C#
CSharp-method
CSharp-Collections.ObjectModel-Namespace
CSharp-Collection-Class
C# | Check if an element is in the Collection<T>
Last Updated: 01 February 2019
CollectionT.Contains(T) method is used to determine whether an element is in the CollectionT.Syntax:public bool Contains (T item);Here, item is the object to locate in the...
read more
C#
CSharp-method
CSharp-Collections.ObjectModel-Namespace
CSharp-Collection-Class
C# | Removing first occurrence of object from Collection<T>
Last Updated: 01 February 2019
CollectionT.Remove(T) is used to remove the first occurrence of a specific object from the CollectionT.Syntax:public bool Remove (T item);Here, item is the object to remov...
read more
C#
CSharp-method
CSharp-Collections.ObjectModel-Namespace
CSharp-Collection-Class
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 !