Gunnar Peipman's ASP.NET blog

ASP.NET, C#, SharePoint, SQL Server and general software development topics.

Sponsors

News

 
 
 
DZone MVB

Links

Social

C# Extension Methods

One of new cool features that will be available in C# 3.0 are extension methods. Extension methods will allow us to extend existing classes with new functionality. In this example I will show you how to extend System.string with two methods that are very popular in PHP: nl2br() and md5().

 

NB! This blog is moved to gunnarpeipman.com

Click here to go to article

Comments

K Jacobson said:

Really looking forward to taking advantage of these in the new C# release, but I agree need to be careful not to overdue it.

# November 28, 2007 12:59 AM

Sheikhi Mahnaz said:

thanks for your example .

# April 27, 2008 8:20 AM

Huynh Ngoc Bang said:

How to decoding MD5 when use it.

# January 7, 2011 11:46 AM

DigiMortal said:

MD5 is one way algorithm and you cannot decode it.

# January 24, 2011 8:05 AM