使用准则Usage guidelines

本部分包含在可公开访问的 API 中使用常见类型的指南。This section contains guidelines for using common types in publicly accessible APIs. 其中涉及如何直接使用内置框架类型(例如,序列化属性)和重载常用运算符。It deals with direct usage of built-in Framework types (e.g., serialization attributes) and overloading common operators.

System.IDisposable 接口不在此部分进行介绍,但在 Dispose 模式 部分进行了讨论。The System.IDisposable interface is not covered in this section, but is discussed in the Dispose Pattern section.

备注

有关其他常见内置 .NET Framework 类型的指南和其他信息,请参阅以下内容的参考主题:System.DateTimeSystem.DateTimeOffsetSystem.ICloneableSystem.IComparable<T>System.IEquatable<T>System.Nullable<T>System.ObjectSystem.UriFor guidelines and additional information about other common, built-in .NET Framework types, see the reference topics for the following: System.DateTime, System.DateTimeOffset, System.ICloneable, System.IComparable<T>, System.IEquatable<T>, System.Nullable<T>, System.Object, System.Uri.

本节内容In this section

数组Arrays
特性Attributes
集合Collections
序列化Serialization
System.Xml 使用情况System.Xml Usage
相等运算符Equality Operators

部分©2005,2009 Microsoft Corporation。保留所有权利。Portions © 2005, 2009 Microsoft Corporation. All rights reserved.

*在 Pearson Education, Inc. 授权下,由 Addison-Wesley Professional 作为 Microsoft Windows 开发系列的一部分再版自 Framework Design Guidelines: Conventions, Idioms, and Patterns for Reusable .NET Libraries, 2nd Edition(Framework 设计准则:可重用 .NET 库的约定、惯例和模式第 2 版),由 Krzysztof Cwalina 和 Brad Abrams 发布于 2008 年 10 月 22 日。Reprinted by permission of Pearson Education, Inc. from Framework Design Guidelines: Conventions, Idioms, and Patterns for Reusable .NET Libraries, 2nd Edition by Krzysztof Cwalina and Brad Abrams, published Oct 22, 2008 by Addison-Wesley Professional as part of the Microsoft Windows Development Series.

另请参阅See also