现在的位置: 首页 > 综合 > 正文

C#3.0学习系列-类的成员

2012年06月04日 ⁄ 综合 ⁄ 共 648字 ⁄ 字号 评论关闭
 

The following table provides an overview of the kinds of members a class can contain.

 

Member

Description

Constants

Constant values associated with the class

Fields

Variables of the class

Methods

Computations and actions that can be performed by the class

Properties

Actions associated with reading and writing named properties of the class

Indexers

Actions associated with indexing instances of the class like an array

Events

Notifications that can be generated by the class

Operators

Conversions and expression operators supported by the class

Constructors

Actions required to initialize instances of the class or the class itself

Destructors

Actions to perform before instances of the class are permanently discarded

Types

Nested types declared by the class

抱歉!评论已关闭.