Example 1: Returns the first occurrence of item matching the specified predicate...
Category - Collection
List Equals in C# Examples
Example1: Returns true if the two specified lists are reference equal (are the same instance)...
Print ArrayList Elements in C# Using Linq
In this example, we’ll learn How to print arraylist in C# Linq. An array is a collection of...
C# List Find and Exists Examples
Example 1: (Exists) Returns true if the list contains items matching the specified predicate...
Calculate Average of an Array in C# Using Linq
In this article, We will learn The Linq Average method. The Linq Average method is used to...
Copy List Elements to Array using CopyTo Method in C#
Copies all list items into the beginning of the specified array. Using: 123 list...
Find Count of Elements of an Array in C# Using Linq
The following example returns the number of elements present in the collection...
C# Copy List Without Reference
In this example, I will show you how to copy a list items without using references. Been looking...
Calculate the Sum of Salaries of all the Employees in C# Usinq Linq
We are going to work with the following Employee class...
List ConvertAll Method in C#
Converts items using specified delegate. Items can be converted to another type. Using: 12345...