Skip to content

Instantly share code, notes, and snippets.

class TestClass : ConsoleApplication1.ITestClass
{
//dynamic fooLambda = () => { return "foo"};
//dynamic fooAnonDelegate = delegate() { return "foo" };
//Those don't work "Cannot convert lambda to 'dynamic' because it
//is not a delegate type
public TakeSomeFoo TakeSome = () =>{ return "foo"; };
public delegate string TakeSomeFoo();
public string fooBar { get; set; }
class TestClass : ConsoleApplication1.ITestClass
{
//dynamic fooLambda = () => { return "foo"};
//dynamic fooAnonDelegate = delegate() { return "foo" };
//Those don't work "Cannot convert lambda to 'dynamic' because it
//is not a delegate type
public TakeSomeFoo TakeSome = () =>{ return "foo"; };
public delegate string TakeSomeFoo();
public string fooBar { get; set; }