Maybe as an Extension Method

added by KodefuGuru
7/1/2010 9:04:39 AM

2 Kicks, 71 Views

A frequent question I received concerning the Maybe static class was “why didn’t you make extension methods?” I am a proponent of extension methods, so it would seem that I would prefer “42”.ToInt32() over Maybe.ToInt32(“42”). However, I immediately created a static class for this despite my previous criticisms of helper classes. Why?


0 comments