955 votesRune 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-Petersen supported this idea ·