• 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

Newest Code

Views Used Newest Oldest

318
Views
Get T-SQL for Linq to Sql expression [draft]
By @toha73 "Code Contributor"  October 10, 2012 8:51 AM

"Generate sql query for your linq to sql query expression. Doesn't support all dbtypes."
debugging

Mark 'debugging' tag as 'like'

Mark 'debugging' tag as 'ignore'

linq

Mark 'linq' tag as 'like'

Mark 'linq' tag as 'ignore'

linq-expressions

Mark 'linq-expressions' tag as 'like'

Mark 'linq-expressions' tag as 'ignore'

0 0 0 0


553
Views
Left outer join extension method
By @toha73 "Code Contributor"  August 13, 2012 5:03 PM

"Extension method to do a left outer join with linq expressions"
linq

Mark 'linq' tag as 'like'

Mark 'linq' tag as 'ignore'

linq-expressions

Mark 'linq-expressions' tag as 'like'

Mark 'linq-expressions' tag as 'ignore'

0 0 0 0


1.11k
Views
Get Cookies in Web Api Asp .net Mvc 4 RC
By @johannormen "Code Contributor"  July 04, 2012 1:37 PM

"Code how to retrieve cookies in Web Api Calls"
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'

mvc

Mark 'mvc' tag as 'like'

Mark 'mvc' tag as 'ignore'

webapi

Mark 'webapi' tag as 'like'

Mark 'webapi' tag as 'ignore'

0 0 0 0


789
Views
Extension to the HttpClient
By @fredrikn "I'm the master"  February 16, 2012 5:50 PM

"Extension method to simplify posting with HttpClient, also an sync extension method."
.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'

webapi

Mark 'webapi' tag as 'like'

Mark 'webapi' tag as 'ignore'

0 0 0 0


958
Views
ASP.NET MVC 4.0 Web API Message logger for .Net 4.0
By @fredrikn "I'm the master"  February 16, 2012 5:30 PM

"The following code can be used to log inncomming and outgoing messages"
.net4

Mark '.net4' tag as 'like'

Mark '.net4' 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'

webapi

Mark 'webapi' tag as 'like'

Mark 'webapi' tag as 'ignore'

0 0 0 0


868
Views
ASP.NET MVC 4.0 Web API Message logger for .Net 4.5
By @fredrikn "I'm the master"  February 16, 2012 5:25 PM

"The following code can be used to log inncomming and outgoing messages"
.net4.5

Mark '.net4.5' tag as 'like'

Mark '.net4.5' tag as 'ignore'

c#

Mark 'c#' tag as 'like'

Mark 'c#' tag as 'ignore'

webapi

Mark 'webapi' tag as 'like'

Mark 'webapi' tag as 'ignore'

0 1 1 0


568
Views
Check if the Civic Registration number for Finland is valid
By Tommy   December 09, 2011 8:25 AM
c#

Mark 'c#' tag as 'like'

Mark 'c#' tag as 'ignore'

civicregnumber

Mark 'civicregnumber' tag as 'like'

Mark 'civicregnumber' tag as 'ignore'

0 0 0 0


502
Views
Check if the Civic Registration number for Norway is valid
By Tommy   December 09, 2011 8:22 AM
c#

Mark 'c#' tag as 'like'

Mark 'c#' tag as 'ignore'

civicregnumber

Mark 'civicregnumber' tag as 'like'

Mark 'civicregnumber' tag as 'ignore'

0 0 0 0


759
Views
Enumerable that does not give multiple side effects on multiple enumerations
By @adam.lith "I'm a Forker"  August 30, 2011 3:39 PM
eager

Mark 'eager' tag as 'like'

Mark 'eager' tag as 'ignore'

enumeration

Mark 'enumeration' tag as 'like'

Mark 'enumeration' tag as 'ignore'

ienumerable

Mark 'ienumerable' tag as 'like'

Mark 'ienumerable' tag as 'ignore'

lazy

Mark 'lazy' tag as 'like'

Mark 'lazy' tag as 'ignore'

2 0 0 0


698
Views
Fork of GZIP your Actions in MVC if not used as standard in IIS7 or only use IIS6
By Stefan Rusek   July 25, 2011 12:00 PM

"Action FIlter for MVC to GZIP your reults if not turned on as default in IIS7 or if you use IIS6"
actionfilter

Mark 'actionfilter' tag as 'like'

Mark 'actionfilter' tag as 'ignore'

asp.net

Mark 'asp.net' tag as 'like'

Mark 'asp.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'

mvc

Mark 'mvc' tag as 'like'

Mark 'mvc' tag as 'ignore'

0 1 0 0


1.1k
Views
ActionFilter to Handle and Log Error for each Controller, ASP.NET MVC
By @fredrikn "I'm the master"  March 21, 2011 3:45 PM

"ActionFilter to handle and log exception in ASP.Net MVC 3.0"
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'

exception

Mark 'exception' tag as 'like'

Mark 'exception' tag as 'ignore'

logging

Mark 'logging' tag as 'like'

Mark 'logging' tag as 'ignore'

mvc

Mark 'mvc' tag as 'like'

Mark 'mvc' tag as 'ignore'

0 0 0 0


1.07k
Views
Fork of Serialize an object into a Querystring, using LINQ syntax
By @benlaan   February 17, 2011 6:03 AM

"Can be used to serialize an object to a QueryString."
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'

html

Mark 'html' tag as 'like'

Mark 'html' tag as 'ignore'

linq

Mark 'linq' tag as 'like'

Mark 'linq' tag as 'ignore'

serialize

Mark 'serialize' tag as 'like'

Mark 'serialize' tag as 'ignore'

0 1 0 0


1.49k
Views
Serialize an object into a Querystring
By @fredrikn "I'm the master"  February 16, 2011 3:07 PM

"Can be used to serialize an object to a QueryString."
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'

html

Mark 'html' tag as 'like'

Mark 'html' tag as 'ignore'

serialize

Mark 'serialize' tag as 'like'

Mark 'serialize' tag as 'ignore'

0 0 0 0


1.04k
Views
Testable DateTime.Now
By @adam.lith "I'm a Forker"  February 11, 2011 4:45 PM

"A DateTime.Now representation that can be alterd during testing."
c#

Mark 'c#' tag as 'like'

Mark 'c#' tag as 'ignore'

datetime

Mark 'datetime' tag as 'like'

Mark 'datetime' tag as 'ignore'

testing

Mark 'testing' tag as 'like'

Mark 'testing' tag as 'ignore'

unittesting

Mark 'unittesting' tag as 'like'

Mark 'unittesting' tag as 'ignore'

0 0 0 0


914
Views
Fork of Strongly typed NotifyPropertyChanged
By @adam.lith "I'm a Forker"  January 03, 2011 1:28 PM

"Strongly typed NotifyPropertyChanged using Reflection"
c#

Mark 'c#' tag as 'like'

Mark 'c#' tag as 'ignore'

silverlight

Mark 'silverlight' tag as 'like'

Mark 'silverlight' tag as 'ignore'

wpf

Mark 'wpf' tag as 'like'

Mark 'wpf' tag as 'ignore'

0 0 0 1

12345...7

Squeed
Made by: Fredrik Normén 2010