Pragmateek Pragmateek

Niner since 2013


  • The Future of WPF

    Glad to know there is still a significant development effort on WPF.

    And always good to see the guys behind all this stuff. :)

    This is directly going in my optimistic elements about WPF future: Is WPF dead: the present and future of WPF

  • Being Fluent, Fluid and Functional with

    Nice stuff, thanks for sharing. Smiley

    Note that for events handlers there is a trick to avoid checking for null:

    public event EventHandler Updated = delegate{};
    public void Update()
        Updated(this, EventArgs.Empty);

    So from the start you have at least one empty delegate to execute, and a priori even a malicious code can't remove the original empty delegate so you always have one.

    You can consider this an application of the "null object" pattern.