Rune Juhl-Petersen

My feedback

  1. 1,024 votes
    Sign in
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      You have left! (?) (thinking…)
      19 comments  ·  Visual Studio IDE » Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
      Rune Juhl-Petersen commented  · 

      This is a great idea. This idea is not new but lets hope someone reconsiders this. As F# supports this, then ofcourse C# should as well.

      I have been mising this a lot to create object factories in a better way.
      Consider defining a new() method on an Interface:
      Or get(id) to retrieve from database. ISomeInterface.get(id).

      Just like instance extension methods, this is just syntax sugar, but in the end your have some code that is much tidier.

      Rune Juhl-Petersen supported this idea  · 

    Feedback and Knowledge Base