.NET Daily

Recommended Resources


Popular Content


Navigation
Tagcsharp
Featured

C#

How to compare two list of items in C#

Posted on January 5th, 2012.

If you want to compare two list of items in C# you can’t just use the equal sign or a loop through elements, you should use Enumerable.SequenceEqual method. For example: List list1 = new List(); list1.Add(7); list1.Add(5); list1.Add(9); List list2 = new List(); list2.Add(7); list2.Add(5); list2.Add(9); if...

Featured

C#

C# Extension Methods

Posted on November 22nd, 2011.

What are Extension Methods? “Extension Methods” is a brand new feature released in C# 3.0 and in short terms they are static methods that can be invoked using the instance method syntax. Mainly this functionality was introduced to extend the functionality of standard query operators from Linq but it also can be used to extend...