C# and Partial Classes

With .NET 2.0, Microsoft introduced Partial Classes which allows class definitions to span multiple files. The only use I had for it was to add a new method to the System.Math class. But that’s not possible. Why didn’t Microsoft make it so that we could augment core .NET classes with new methods like in Ruby?

No comments yet. Be the first.

Leave a reply