Error!
Success!

Duck Typing In C# 3.0

0
kicks

Duck Typing In C# 3.0  (Unpublished)

In C# 3.0 we achieve this feature by employing Extension Methods. The whole point came straightly from definition of Extension Methods, where says: "An extension method with the same name and signature as an interface or class method will never be called.". That means we can call a method on objects without providing a specific type for the compiler. Of course we have the choice to add the extension methods to just one type/class of objects; that for example have implemented a specific interface.


Kicked By:
Drop Kicked By: