ExtensionMethod.NET is a database of C# 3.0 and Visual Basic 2008 extension methods. It contains many user-rated
extension methods that will expand your code
library immediately.
Extension methods add functionality to existing classes and allow you to expand the .NET framework.
This way your favorite functions integrate seamlessly into the framework. For more information about
extension methods visit the
C# 3.0 and Visual Basic 2008
MSDN Library pages.
We invite you to submit your favorite extension methods and download and
use others.
We need your feedback about this website. We've noticed some user comments regarding redundant or untested extension methods. We're working on a voting system that allows to dispose extension methods. If you have more feedback, email it to us
TOP 3 Extension Methods
OrderBy(string sortExpression)
Submitted by
C.F.Meijers
on
2008/4/25
Orders a list based on a sortexpression. Useful in object databinding scenarios where the objectdatasource generates a dynamic sortexpression (example: "Name desc") that specifies the property of the object sort on.Language
C#
Type
System.Collections.Generic.IEnumerable<T>
Downloads
150
Encrypt & Decrypt
Submitted by
Mark de Rover
on
2008/1/02
Encrypt and decrypt a string using the RSACryptoServiceProvider.Language
C#
Type
System.String
Downloads
130
DateDiff
Submitted by
Jonnidip
on
2009/6/08
DateDiff in SQL style.
The following DateParts are implemented:
- "year" (abbr. "yy", "yyyy")
- "quarter" (abbr. "qq", "q")
- "month" (abbr. "mm", "m")
- "day" (abbr. "dd", "d")
- "week" (abbr. "wk", "ww")
- "hour" (abbr. "hh")
- "minute" (abbr. "mi", "n")
- "second" (abbr. "ss", "s")
- "millisecond" (abbr. "ms")Language
C#
Type
System.DateTime
Downloads
57
Recently added
SkipLast
Submitted by
Clinton Sheppard
on
2009/6/09
take all but the last item from an IEnumerable<T>Language
C#
Type
System.Collections.Generic.IEnumerable<T>
Downloads
1
ToHashTable
Submitted by
Jonnidip
on
2009/6/08
Converts a DataRow into a Hashtable.Language
C#
Type
System.Data.DataRow
Downloads
5
DateDiff
Submitted by
Jonnidip
on
2009/6/08
DateDiff in SQL style.
The following DateParts are implemented:
- "year" (abbr. "yy", "yyyy")
- "quarter" (abbr. "qq", "q")
- "month" (abbr. "mm", "m")
- "day" (abbr. "dd", "d")
- "week" (abbr. "wk", "ww")
- "hour" (abbr. "hh")
- "minute" (abbr. "mi", "n")
- "second" (abbr. "ss", "s")
- "millisecond" (abbr. "ms")Language
C#
Type
System.DateTime
Downloads
57