Skip to content

Instantly share code, notes, and snippets.

@shanefulmer
shanefulmer / gist:3328690
Created August 12, 2012 01:33
Handler 1
public class Foo
{
public string Render()
{
return "this is a foo";
}
}
@shanefulmer
shanefulmer / gist:3150597
Created July 20, 2012 12:57
Dynamic Dispatch 5
using System;
using System.Collections.Generic;
public class Foo { }
public class Bar { }
public class Baz { }
public class Program
{
public static void CallMe<T>(T input)
@shanefulmer
shanefulmer / gist:3150590
Created July 20, 2012 12:56
Dynamic Dispatch 4
typeof(T): Foo
typeof(T): Bar
typeof(T): Baz
@shanefulmer
shanefulmer / gist:3150581
Created July 20, 2012 12:54
Dynamic Dispatch 3
using System;
using System.Collections.Generic;
public class Foo { }
public class Bar { }
public class Baz { }
public class Program
{
public static void CallMe<T>(T input)
@shanefulmer
shanefulmer / gist:3150534
Created July 20, 2012 12:43
Dynamic Dispatch 2
typeof(T): System.Object
typeof(T): System.Object
typeof(T): System.Object
@shanefulmer
shanefulmer / gist:3150495
Created July 20, 2012 12:33
Dynamic Dispatch 1
using System;
using System.Collections.Generic;
public class Foo { }
public class Bar { }
public class Baz { }
public class Program
{
public static void CallMe<T>(T input)