Thursday, October 29, 2009

Interfaces for collections classes - System.Collection

Object-type collections classes are in - System.Collection
Generic collection classes are in - System.Collection.Generic
Specific Collection classes are in - System.Collection.Specialized

Generic interfaces:-
1. IEnumerable<T> - derives from IEnumerable interface
2. ICollection<T>
3. IList<T> - derives form ICollection interface
                  allows to access the collection with indexer
4. IDictionary<T> - implemented by ICollection interface
5. ILookup<T> - multiples values for a key
6. IComparer<&> - has only compare() function to compare two objects
7. IEqualityComparer<T>

Non-Generic versions of interfaces:-
1. IEnumerable - required if a foreach statement is used with the collection
2. ICollection
3. IList - derives form ICollection interface
             allows to access the collection with indexer
4. IDictionary - implemented by ICollection interface
                      has key and value pair
 

Tuesday, October 27, 2009

Ctrl+. and Shft+Alt+F10 shortcuts for Visual Studio

There are few great shortcuts for Visual Studio.
1. The Ctrl+. OR Shift+Alt+F10 - are great shortcuts for adding the required namespaces in a class.
2. Ctrl+E,D - This shortcut is for developers, who have the habit of keeping the code well formatted.
3. Shift+Alt+Enter - All time fav. - for full screen.