Rune Juhl-PetersenRune Juhl-Petersen

My feedback

  1. 955 votes
    Vote
    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      You have left! (?) (thinking…)
      17 comments  ·  Visual Studio IDE » Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
      Rune Juhl-PetersenRune 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: ISomeInterface.new().
      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-PetersenRune Juhl-Petersen supported this idea  · 

    Feedback and Knowledge Base