I want a generic function that would work with types that have Top, Bottom, Right and Rect read-only properties - I have
Top
Bottom
Right
Rect
Hey boy you just need this:
Force generic interface implementation in C#
this way you can assume later on that your WhatType instance will have Left, Bottom and so on...
WhatType