Benny Sutton is 4 hire - just click here

C# Extension Methods

Extension Methods are a handy way to extend built-in types like string or int.

Extension Methods must be defined as a static methods inside a staic class and the this keyword must be in the first parameter.

Extension methods are easy to chain, simply call like this...

           
                CategoryName.GenerateSlug();
                // NOT like this!
                GenerateSlug(CategoryName)