You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 text was updated successfully, but these errors were encountered:
Chris3606
changed the title
Obsolete RectangleExtensions.Matches in TheSadRogue.Primitives Package
Obsolete Matches extension methods in TheSadRogue.Primitives Package
Feb 11, 2023
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.The text was updated successfully, but these errors were encountered: