New Features in C# 2.0—Partial Types: What about
Microsoft .NET Framework, ASP.NET, Visual C# (CSharp, C Sharp, C-Sharp) Developer Training, Visual Studio
| CSharp-Online.NET:Tutorials |
| C# Tutorials |
| © 2005 O'Reilly Media, Inc. |
What about
using partial classes in my own projects?
Microsoft suggests that partial classes can allow developers to work on different aspects of a class independently. It is still too early to see what best practices will emerge; I’m inclined to think that any class that is big enough to be divided in this way is big enough to be split into two (or more) classes. For now, the primary use of partial classes is to hide the cruft created by the designer.
| TIP |
| Robert MacNeil reports in the PBS documentary "Do You Speak American?" that cruft is a neologism invented by surfers. However, the Online Computing Dictionary reports that "This term is one of the oldest in the jargon and no one is sure of its etymology." In any case, the Online Computing Dictionary defines cruft as "an unpleasant substance…excess; superfluous junk" and "the results of shoddy construction." |
|

