Extension Methods In C# 3.0 Framework 3.5

Extension Methods In C# 3.0 Framework 3.5

Extension methods a feature of C# 3.0 which gives us the capability of adding our own methods to existing Types without creating a new derived class.

Extension Method's Are Special Static Method's which act like instance methods on extended types.This Example will create a Extension Method on an String Type to Convert a String to an Integer.Example :