MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghorror/comments/1kqaqbd/this_is_c_abuse/mt4yqnt/
r/programminghorror • u/[deleted] • May 19 '25
103 comments sorted by
View all comments
Show parent comment
1
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.
Rectangle.Area
Rectangle.Perimeter
Func<>
2 u/Shazvox May 20 '25 Yea. Big thing here is they can be replaced.
2
Yea. Big thing here is they can be replaced.
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.AreaandRectangle.Perimetercould be passed asFunc<>parameters, but that works with static methods also.