Click here to Skip to main content
15,879,683 members

Comments by William E. Kempf (Top 1 by date)

William E. Kempf 16-Sep-13 9:44am View    
Reason for my vote of 2 \n There's a valid reason that String is sealed. In fact, inheriting a String is a bad idea all around. New developers to OO often think that inheritance is "the one true way", but it really should be used sparingly. What reason do you have to want to inherit from String? In your example you've added a few utility methods, but those methods could have been just as easily added via extension methods, and thus would have existed for all strings and not just a derived type.