• Code
  • Tags
  • Users
  • Titles
  • Log in
  • Feedback
  • FAQ
Share Code
Welcome to ForkCan.com

ForkCan is all about sharing code in a social way.

Discuss, debate or argue with other devs about their or your own code.

Give other devs feedback or make a Fork (Make a better version of a shared code).

Rate the code, if you use the code mark it as used so others can see if the shared code is used by someone.

Help each other to be better devs and to be more productive.


Features not working yet:

Flag a post

Tagged code 'extension-method' feeds
Latest activity

Tagged Code

Views Used Newest Oldest

865
Views
Invoke Extension Method
By Mugi "Code Contributor"  December 01, 2010 12:16 PM

"Tired of all Invoke methods? Use this Invoke + Lambda"
.net

Mark '.net' tag as 'like'

Mark '.net' tag as 'ignore'

c#

Mark 'c#' tag as 'like'

Mark 'c#' tag as 'ignore'

extension-method

Mark 'extension-method' tag as 'like'

Mark 'extension-method' tag as 'ignore'

invoke

Mark 'invoke' tag as 'like'

Mark 'invoke' tag as 'ignore'

threading

Mark 'threading' tag as 'like'

Mark 'threading' tag as 'ignore'

1 1 0 1


685
Views
Parsing string to enum, extension method
By @toha73 "Code Contributor"  September 17, 2010 10:51 AM

"A couple of extension methods for parsing strings to enums"
c#

Mark 'c#' tag as 'like'

Mark 'c#' tag as 'ignore'

enum

Mark 'enum' tag as 'like'

Mark 'enum' tag as 'ignore'

extension-method

Mark 'extension-method' tag as 'like'

Mark 'extension-method' tag as 'ignore'

string

Mark 'string' tag as 'like'

Mark 'string' tag as 'ignore'

0 0 0 0


840
Views
Use of Extension methods to hide "infrastructure code"
By @fmork   September 17, 2010 12:03 AM

"Extension methods for the ReaderWriterLockSlim class, allowing you to write more compact code, hiding necessary repetetive code."
.net

Mark '.net' tag as 'like'

Mark '.net' tag as 'ignore'

c#

Mark 'c#' tag as 'like'

Mark 'c#' tag as 'ignore'

extension-method

Mark 'extension-method' tag as 'like'

Mark 'extension-method' tag as 'ignore'

0 1 0 2


1.37k
Views
StringFormat Extension method for HtmlHelper ASP.NET MVC
By @fredrikn "I'm the master"  August 02, 2010 10:34 AM

"An extension method that format an string and return a IHtmlString"
aspmvc

Mark 'aspmvc' tag as 'like'

Mark 'aspmvc' tag as 'ignore'

c#

Mark 'c#' tag as 'like'

Mark 'c#' tag as 'ignore'

extension-method

Mark 'extension-method' tag as 'like'

Mark 'extension-method' tag as 'ignore'

razor

Mark 'razor' tag as 'like'

Mark 'razor' tag as 'ignore'

0 0 0 0


1.02k
Views
IEnumerable<T> Exist extension method
By @fredrikn "I'm the master"  July 20, 2010 9:13 AM

"Exists is an extension method added to IEnumerable<T> to see if an item exists based on a Predicate"
c#

Mark 'c#' tag as 'like'

Mark 'c#' tag as 'ignore'

extension-method

Mark 'extension-method' tag as 'like'

Mark 'extension-method' tag as 'ignore'

0 0 1 6


1.43k
Views
ForEach Extension method for IEnumerable<T>
By @fredrikn "I'm the master"  July 10, 2010 9:57 AM

"IEnumerable doesn't have a ForEach Extension method so here is one."
.net

Mark '.net' tag as 'like'

Mark '.net' tag as 'ignore'

c#

Mark 'c#' tag as 'like'

Mark 'c#' tag as 'ignore'

extension-method

Mark 'extension-method' tag as 'like'

Mark 'extension-method' tag as 'ignore'

ienumerable

Mark 'ienumerable' tag as 'like'

Mark 'ienumerable' tag as 'ignore'

0 2 1 9


Squeed
Made by: Fredrik Normén 2010