Chapter 5. Member Design
METHODS, PROPERTIES, EVENTS, constructors, and fields are collectively referred to as members. Members are ultimately the means by which framework functionality is exposed to the end users of a framework.
Members can be virtual or nonvirtual, concrete or abstract, static, instance, and can have several different scopes of accessibility. All this variety provides incredible expressiveness, but at the same time requires care on the part of the framework designer.
This chapter offers basic guidelines that should be followed when designing members of any type. Chapter 6 spells out additional guidelines related to members that need to support extensibility.
General Member Design Guidelines
Most member design guidelines are specific ...
Get Framework Design Guidelines: Conventions, Idioms, and Patterns for Reusable .NET Libraries now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.