Re:C#: No, you don’t get to use the “as” operator any more
by noblethrasher on Friday April 29, 2011 @05:34PM
(#2499082)
That would work too but an abstract class let's you keep the _save method private so that client code can't possibly call that instance method on null.
Personally I think that now that we have extension methods, all public methods should be extension methods on interfaces or abstract classes. This basically gives you something like the pattern matching in ML and Haskell.
Personally I think that now that we have extension methods, all public methods should be extension methods on interfaces or abstract classes. This basically gives you something like the pattern matching in ML and Haskell.