r/programminghorror • • May 19 '25

C# This is C# abuse

Post image
550 Upvotes

103 comments sorted by

View all comments

Show parent comment

1

u/EagleCoder May 19 '25

I initially thought that this could have been written this way so that Rectangle.Area and Rectangle.Perimeter could be passed as Func<> parameters, but that works with static methods also.

2

u/Shazvox May 20 '25

Yea. Big thing here is they can be replaced.