Archive

Posts Tagged ‘extensions’

Using Extension Methods/Indexers in .Net 3.5

September 11th, 2009 Harry No comments

If you’re not familiar with extension methods in C#, you should probably read http://msdn.microsoft.com/en-us/library/bb383977.aspx.

Long story short, they are a special type of static method that can appear to be an instance method while you’re coding. Normally, if you were to create a special method that performs an operation on a string, you would do something like this:

Read more…

Categories: Geek Tips Tags: , ,