Wednesday, January 1, 2014

Useful Interfaces in .NET

IEnumerable<T>

Exposes the enumerator which supports iteration over a collection of a specified type. This interface can be found under System.Collections.Generic namespace. 

This is the base interface for collections in Collections.Generic namespace such as  List<T>, Dictionary<TKey, TValue> etc.. For non-generic .NET has IEnumerable.

IEnumerable<T> has a single method GetEnumerator which you must implement when implementing the interface. This returns a IEnumerator<T> object.


IEnumerable 

Just like its generic version, exposes an enumerator.



IComparable


IComparer

IDisposable


IQuerable


IEqutable


IList


IDictionary

0 comments:

Post a Comment

Powered by Blogger.


Software Architect at Surge Global/ Certified Scrum Master

Experienced in Product Design, Software Engineering, Team management and Practicing Agile methodologies.

Search This Blog

Facebook