Can extension methods be applied to the class?
For example, extend DateTime to include a Tomorrow() method that could be invoked like:
DateTime.Tomor
I would do the same as Kumu
namespace ExtensionMethods { public static class MyExtensionMethods { public static DateTime Tomorrow(this DateTime date) { return date.AddDays(1); } } }
but call it like this new DateTime().Tomorrow();
Think it makes more seens than DateTime.Now.Tomorrow();