The function is uncallable by typical means since it operates on a self type of Rectangle and also a second type of Rectangle. This means that the typical call syntax of r1.Matches(r2) actually calls Rectangle's IMatchable implementation, and therefore unless you are calling extension methods via static method syntax, there is no way to call this extension method.
There is also no difference in functionality between this and the IMatchable implementation. Ideally we would remove it, but to preserve backwards compatibility we can just deprecate it.
The function is uncallable by typical means since it operates on a self type of
Rectangle
and also a second type ofRectangle
. This means that the typical call syntax ofr1.Matches(r2)
actually calls Rectangle'sIMatchable
implementation, and therefore unless you are calling extension methods via static method syntax, there is no way to call this extension method.There is also no difference in functionality between this and the
IMatchable
implementation. Ideally we would remove it, but to preserve backwards compatibility we can just deprecate it.