Dragon in the sky

whatever happened , go ahead! Happy life of big pig and its dog.
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

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

Posted on 2009-09-04 14:53  龙泰  阅读(206)  评论(0编辑  收藏  举报
 

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