Many object-oriented languages—C# included—don’t offer anything to force developers to create well-designed software. There is no better example of this than when using C++ to implement an OO design. C# is a little more structured than C++; for example, you cannot create free static functions that exist outside the context of a defined type. Still, C# doesn’t force you to create software that adheres to well-known practices of good software design.
KeywordsCanonical Form Base Class Object Reference Semantic Meaning Reference Type
Unable to display preview. Download preview PDF.
- 2.Full coverage of custom attributes in the.NET Framework is beyond the scope of this book. For more information, consult the MSDN Library documentation or any one of the fine books covering the CLR, such as Andrew Troelsen’s Pro C# with.NET 3.0 (Berkeley, CA: Apress, 2007).Google Scholar
- 8.For those of you curious about the curious name of this field, read about the Pimpl Idiom in Herb Sutter’s Exceptional C++: 47 Engineering Puzzles, Programming Problems, and Exception-Safety Solutions (Boston: Addison-Wesley Professional, 1999).Google Scholar