X hits on this document

848 views

0 shares

0 downloads

0 comments

70 / 396

Chapter ‎18   Unsafe code

The members of a struct are the members declared in the struct and the members inherited from the struct’s direct base class System.ValueType and the indirect base class object.

The members of a simple type correspond directly to the members of the struct type aliased by the simple type:

The members of sbyte are the members of the System.SByte struct.

The members of byte are the members of the System.Byte struct.

The members of short are the members of the System.Int16 struct.

The members of ushort are the members of the System.UInt16 struct.

The members of int are the members of the System.Int32 struct.

The members of uint are the members of the System.UInt32 struct.

The members of long are the members of the System.Int64 struct.

The members of ulong are the members of the System.UInt64 struct.

The members of char are the members of the System.Char struct.

The members of float are the members of the System.Single struct.

The members of double are the members of the System.Double struct.

The members of decimal are the members of the System.Decimal struct.

The members of bool are the members of the System.Boolean struct.

3.4.3 Enumeration members

The members of an enumeration are the constants declared in the enumeration and the members inherited from the enumeration’s direct base class System.Enum and the indirect base classes System.ValueType and object.

3.4.4 Class members

The members of a class are the members declared in the class and the members inherited from the base class (except for class object which has no base class). The members inherited from the base class include the constants, fields, methods, properties, events, indexers, operators, and types of the base class, but not the instance constructors, destructors and static constructors of the base class. Base class members are inherited without regard to their accessibility.

A class declaration may contain declarations of constants, fields, methods, properties, events, indexers, operators, instance constructors, destructors, static constructors and types.

The members of object and string correspond directly to the members of the class types they alias:

The members of object are the members of the System.Object class.

The members of string are the members of the System.String class.

3.4.5 Interface members

The members of an interface are the members declared in the interface and in all base interfaces of the interface. The members in class object are not, strictly speaking, members of any interface (§‎13.2). However, the members in class object are available via member lookup in any interface type (§‎7.3).

3.4.6 Array members

The members of an array are the members inherited from class System.Array.

3.4.7 Delegate members

Copyright Microsoft Corporation 1999-2003. All Rights Reserved.57

Document info
Document views848
Page views848
Page last viewedMon Dec 05 02:54:25 UTC 2016
Pages396
Paragraphs9401
Words133190

Comments