Enumeration and enumerative

Enumeration C # (the Enum) enumerated type is the basic data type (value type) is used to declare a set of named constants.

Enum variable declaration: enum <enum_name> {enumeration list}; wherein, enum_name enumeration of specified type name. enumeration list is a comma-separated list of identifiers.

All enumeration type implicitly inherit System.Enum type, System.Enum type is inherited from System.ValueType not the only type of value type reference type.

C # enumeration markers (the Flags) enumerated type is the basic data type (value type) is used to declare a set of constant named.

 

Guess you like

Origin www.cnblogs.com/lcy0930/p/11202036.html