Video Tutorial Library:

C# 301 - C# 3.0 Language Enhancements :

CS301_05_01 - Extension Methods

Tags:
In this video we'll talk about extension methods which are simply methods -- usually helper methods that can be bolted on to the side of existing types / classes ... even if that type is sealed, meaning that it cannot be inherited from.  In the past you may have had some helper methods that are intended for operation on certain types ... like a formatting method for example.  This is similar in concept, but the implementation is cleaner and more elegant.  The reason why Extension MEthods are important is because this is how LINQ's methods, like Select, Where, Sum, Count, are bolted on to the side of types that implement the IEnumerable<T> interface, as well as others.  So, Extension Methods are what makes LINQ's method syntax work.

Downloads:

Sign up today to access downloads.
CS301_05_01 - Extension Methods
Duration: 8 Minutes, 36 Seconds
Size: 6.29M
Recorded Using: Visual Studio 2008 (all versions)

Get Free Videos via Email

Sign up for our newsletter and receive links to free videos and more.

Subscribe

We don't rent/sell/or commit other evil deeds with your email address. See our Privacy Policy.