Janus Knudsen

Janus Knudsen janus007

Niner since 2009

Comments

  • C# 4.0 - Questions and reasons behind the answers

    Well, I can see a some nice scenarios to use this.

    But I had hoped for something much more powerful Smiley

    private string Foo(int x)
    {
        return x + 10;
    }

    public DoSomeThing(Method name)
    {
        var fooValue = name(10);
    }

    public Caller()
    {
        DoSomeThing("Foo");
    }

    That's what I call dynamic Big Smile OR even more useful, dynamics for class names also.