I have an abstract class and I would like to use it quickly by NOT create a concrete class that inherit the abstract class. Well, to define the abstract method anonymously.
Something like that:
Command c = new Command(myObject){ public override void Do() { } };
Is it possible in C# .net 2.0?
You could create a type that wraps an action providing an implementation as such:
This then can be used as so: