June 2020
Intermediate to advanced
625 pages
15h 39m
English
This chapter contains guidelines for using common types in publicly accessible APIs. It deals with direct usage of built-in framework types (e.g., Collection<T>, serialization attributes), implementing common interfaces, and inheriting from common base classes. The last section of the chapter discusses overloading common operators.
This section presents guidelines for using arrays in publicly accessible APIs.
DO prefer using collections over arrays in public APIs. Section 8.3.3 provides details about how to choose between collections and arrays.
public class Order { public Collection<OrderItem> ...Read now
Unlock full access