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
388
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
312
Pivot
Submitted by
Fons Sonnemans
on
2009/1/21
Groups the elements of a sequence according to a specified firstKey selector function and rotates the unique values from the secondKey selector function into multiple values in the output, and performs aggregations. Language
C#
Type
System.Collections.Generic.IEnumerable<T>
Downloads
255
Recently added
AddLeftIfDoesntExist
Submitted by
Blake Pell
on
2010/7/27
Adds a value onto the beginning of a string if it does not already exist there.Language
VB
Type
System.String
Downloads
0
AddRightIfDoesntExist
Submitted by
Blake Pell
on
2010/7/27
Adds a value onto the end of the string if it does not already exist there.Language
VB
Type
System.String
Downloads
0
FindControlByType
Submitted by
Ryan Helms
on
2010/7/18
Used in conjunction with GetChildren(), it will return a T from a list of children of a control. If you are looking to return a list of T, use FindControlsByType() at http://www.extensionmethod.net/Details.aspx?ID=310
Get Children is located at:
http://www.extensionmethod.net/Details.aspx?ID=309Language
C#
Type
System.Control
Downloads
0