Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
Python
C
C++
Java
Courses
Machine Learning
DevOps
Web Development
System Design
Aptitude
Projects
Sign In
▲
Similar Topics
Web Technologies
40.2k+ articles
DSA
22.3k+ articles
Python
20.1k+ articles
Experiences
17k+ articles
Interview Experiences
13.6k+ articles
School Learning
11.6k+ articles
JavaScript
11.5k+ articles
C#
1.8k+ articles
CSharp-method
680+ articles
CSharp-Collection-Class
12 articles
CSharp-Collections.ObjectModel-Namespace
12 posts
Popular Articles
Recent 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
...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;
...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,
...read more
C#
CSharp-Collections.ObjectModel-Namespace
CSharp-Collection-Class
Similar Topics
Web Technologies
40.2k+ articles
DSA
22.3k+ articles
Python
20.1k+ articles
Experiences
17k+ articles
Interview Experiences
13.6k+ articles
School Learning
11.6k+ articles
JavaScript
11.5k+ articles
C#
1.8k+ articles
CSharp-method
680+ articles
CSharp-Collection-Class
12+ articles
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
...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 t
...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 un
...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 specifie
...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; }Retur
...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);
...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
...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
...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);He
...read more
C#
CSharp-method
CSharp-Collections.ObjectModel-Namespace
CSharp-Collection-Class
1
1
1
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 !