Referencing project elements in a T4 file
Inspired by this Stack Overflow question. Give the asker an upvote if you have a minute.
When should a C# method be made virtual?
In the last post we saw how the behaviour of base and derived classes changes with the presence of the new or override keyword on inherited methods. In this post we’re going to see the impact that this has on class design. Let’s start with some code:
Polymorphism with new and override
What would you expect the console output to be of the following program?