Polymorphism in C# Without Classes

Imagine all the benefits you’d experience if you could somehow apply polymorphism in C# without classes and methods. First of all, there would be far less dependencies in your code, no abstract base classes or interfaces that could potentially break your code in the future, no method signatures that could potentially break in the future, and no static types that could potentially break in the future. Sounds too good to be true? Read on my friend, and I’ll show you the glory.
Believe it or not, but the above is actually a functioning piece of computer code. It is an invocation to an “Active Event" who’s name if "foo.bar", and it takes two arguments; arg1 and arg2. Its C# implementation might look like the following.

Link: https://dzone.com/articles/polymorphism-in-c-without-classes-and-methods?utm_medium=feed&utm_source=feedpress.me&utm_campaign=Feed%3A+dzone%2Fwebdev