• 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

Shared code feeds
Latest activity
.NET Junkie's profile was updated
.NET Junkie's profile was updated
glindqvist's profile was updated
unkown20100829PM5320's profile was updated
David W Martines added a feedback to code: Unity Service Locator for ASP.NET MVC 3.0
David W Martines's profile was updated

Newest Code

Views Used Newest Oldest

7
Views
Number of sealed / unsealed types in the framework
By Steven   September 03, 2010 9:26 AM

"A Console application to determine the number of sealed and unsealed types in the framework"
.net

Mark '.net' tag as 'like'

Mark '.net' tag as 'ignore'

c#

Mark 'c#' tag as 'like'

Mark 'c#' tag as 'ignore'

framework-design

Mark 'framework-design' tag as 'like'

Mark 'framework-design' tag as 'ignore'

sealed

Mark 'sealed' tag as 'like'

Mark 'sealed' tag as 'ignore'

0 0 0 0


16
Views
Non-virtual interface methods
By Steven   September 01, 2010 6:49 PM

"Shows how interface methods behave when reimplemented in derived classes"
c#

Mark 'c#' tag as 'like'

Mark 'c#' tag as 'ignore'

idisposable

Mark 'idisposable' tag as 'like'

Mark 'idisposable' tag as 'ignore'

0 0 0 0


12
Views
Non-virtual Dispose methods
By Steven   September 01, 2010 6:47 PM

"Shows how C# behaves when interface methods are reimplemented on derived types."
c#

Mark 'c#' tag as 'like'

Mark 'c#' tag as 'ignore'

idisposable

Mark 'idisposable' tag as 'like'

Mark 'idisposable' tag as 'ignore'

0 0 0 0


141
Views
DatabaseHelper for WebMatrix
By @sondreb "Code Contributor"  August 20, 2010 7:00 PM

"Helper method that makes it easier to create a new database from a database schema file."
sql

Mark 'sql' tag as 'like'

Mark 'sql' tag as 'ignore'

webmatrix

Mark 'webmatrix' tag as 'like'

Mark 'webmatrix' tag as 'ignore'

0 0 0 0


125
Views
Execute.OnUIThread & Execute.InBackground utility methods
By @torkelo   August 16, 2010 3:57 PM

"Helper methods to run delegates on ui thread or on background thread"
c#

Mark 'c#' tag as 'like'

Mark 'c#' tag as 'ignore'

threading

Mark 'threading' tag as 'like'

Mark 'threading' tag as 'ignore'

wpf

Mark 'wpf' tag as 'like'

Mark 'wpf' tag as 'ignore'

0 0 0 0


84
Views
Resource.Key (ResourceKey) for Silverlight 4
By @sondreb "Code Contributor"  August 15, 2010 4:28 PM

"Implements a dependency property for Silverlight 4 that enables Resource.Key and Resource.Tooltip."
localization

Mark 'localization' tag as 'like'

Mark 'localization' tag as 'ignore'

resources

Mark 'resources' tag as 'like'

Mark 'resources' tag as 'ignore'

silverlight

Mark 'silverlight' tag as 'like'

Mark 'silverlight' tag as 'ignore'

0 0 0 0


192
Views
Make sure the web.config pages/namespace can be used together with ASP.NET MVC 3 P1 and Razor
By @fredrikn "I'm the master"  August 04, 2010 11:18 AM

"Make sure namespaces will be imported into every view when using ASP.NET MVC 3.0 Preview 1"
.net

Mark '.net' tag as 'like'

Mark '.net' tag as 'ignore'

aspmvc

Mark 'aspmvc' tag as 'like'

Mark 'aspmvc' tag as 'ignore'

aspnet4

Mark 'aspnet4' tag as 'like'

Mark 'aspnet4' tag as 'ignore'

c#

Mark 'c#' tag as 'like'

Mark 'c#' tag as 'ignore'

razor

Mark 'razor' tag as 'like'

Mark 'razor' tag as 'ignore'

0 0 0 0


109
Views
Display number of bytes to more frienldy like string
By @toha73 "Code Contributor"  August 02, 2010 2:35 PM

"Convert number of bytes into a more "friendly" like string that display number of kB, MB or GB etc."
bytes

Mark 'bytes' tag as 'like'

Mark 'bytes' tag as 'ignore'

c#

Mark 'c#' tag as 'like'

Mark 'c#' tag as 'ignore'

0 0 0 1


132
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


211
Views
Google Analytics helper for ASP.NET Razor
By @fredrikn "I'm the master"  August 01, 2010 9:50 AM
aspmvc

Mark 'aspmvc' tag as 'like'

Mark 'aspmvc' tag as 'ignore'

c#

Mark 'c#' tag as 'like'

Mark 'c#' tag as 'ignore'

razor

Mark 'razor' tag as 'like'

Mark 'razor' tag as 'ignore'

razor-helpers

Mark 'razor-helpers' tag as 'like'

Mark 'razor-helpers' tag as 'ignore'

0 0 0 0


157
Views
Unity Service Locator for ASP.NET MVC 3.0
By @fredrikn "I'm the master"  August 01, 2010 9:35 AM

"A Unity 2.0 Service Locator which can be used with ASP.Net MVC 3.0"
.net

Mark '.net' tag as 'like'

Mark '.net' tag as 'ignore'

aspmvc

Mark 'aspmvc' tag as 'like'

Mark 'aspmvc' tag as 'ignore'

c#

Mark 'c#' tag as 'like'

Mark 'c#' tag as 'ignore'

service-locator

Mark 'service-locator' tag as 'like'

Mark 'service-locator' tag as 'ignore'

0 1 0 0


163
Views
Unity Controller Factory for ASP.NET MVC 3.0
By @fredrikn "I'm the master"  August 01, 2010 9:31 AM

"This is a Unity 2.0 Controller Factory for ASP.NET MVC 3.0"
aspmvc

Mark 'aspmvc' tag as 'like'

Mark 'aspmvc' tag as 'ignore'

c#

Mark 'c#' tag as 'like'

Mark 'c#' tag as 'ignore'

controller

Mark 'controller' tag as 'like'

Mark 'controller' tag as 'ignore'

unity

Mark 'unity' tag as 'like'

Mark 'unity' tag as 'ignore'

0 0 0 0


218
Views
UnitOfWork Action filter for ASP.NET MVC and nHibernate
By @fredrikn "I'm the master"  July 27, 2010 4:25 PM

"Reuse unit of work among several repositories by using the HTTPContext"
.net

Mark '.net' tag as 'like'

Mark '.net' tag as 'ignore'

aspmvc

Mark 'aspmvc' tag as 'like'

Mark 'aspmvc' tag as 'ignore'

c#

Mark 'c#' tag as 'like'

Mark 'c#' tag as 'ignore'

nhibernate

Mark 'nhibernate' tag as 'like'

Mark 'nhibernate' tag as 'ignore'

repository

Mark 'repository' tag as 'like'

Mark 'repository' tag as 'ignore'

0 0 0 3


192
Views
Loading Strategy for Entity Framework 4.0
By @fredrikn "I'm the master"  July 25, 2010 10:41 AM

"Loading strategy for specifying how to load data, for example eager loading and define queries etc."
c#

Mark 'c#' tag as 'like'

Mark 'c#' tag as 'ignore'

ef4.0

Mark 'ef4.0' tag as 'like'

Mark 'ef4.0' tag as 'ignore'

repository

Mark 'repository' tag as 'like'

Mark 'repository' tag as 'ignore'

0 0 0 0


194
Views
Using DynamicObject to get a value from the Request.Params
By @fredrikn "I'm the master"  July 23, 2010 3:16 PM

"Get a Request.Params value by taking advantage of the DynamicObject to make the code look more static"
asp.net

Mark 'asp.net' tag as 'like'

Mark 'asp.net' tag as 'ignore'

c#

Mark 'c#' tag as 'like'

Mark 'c#' tag as 'ignore'

dynamic

Mark 'dynamic' tag as 'like'

Mark 'dynamic' tag as 'ignore'

razor

Mark 'razor' tag as 'like'

Mark 'razor' tag as 'ignore'

0 2 0 0

1234

Squeed
Made by: Fredrik Normén 2010