![]() | DisplayTextAttribute 类 |
命名空间: Sweet.Common
DisplayTextAttribute 类型公开以下成员。
名称 | 说明 | |
---|---|---|
![]() | DisplayTextAttribute |
Initializes a new instance of the class DisplayTextAttribute with default value (empty string)
|
![]() | DisplayTextAttribute(String) |
Initializes a new instance of the class DisplayTextAttribute with specified value
|
名称 | 说明 | |
---|---|---|
![]() | DisplayText |
The value of this attribute
|
![]() | TypeId | (继承自 Attribute。) |
名称 | 说明 | |
---|---|---|
![]() | Equals |
Equals
(重写 AttributeEquals(Object).) |
![]() | Finalize | (继承自 Object。) |
![]() | GetHashCode |
GetHashCode
(重写 AttributeGetHashCode.) |
![]() | GetType | (继承自 Object。) |
![]() | IsDefaultAttribute |
IsDefaultAttribute
(重写 AttributeIsDefaultAttribute.) |
![]() | Match | (继承自 Attribute。) |
![]() | MemberwiseClone | (继承自 Object。) |
![]() | ToString | (继承自 Object。) |
名称 | 说明 | |
---|---|---|
![]() | ConsoleWriteLine | (由 SystemEx 定义。) |
![]() | WriteConsole | (由 UConsole 定义。) |
enum OperatingSystem { [DisplayText("MS-DOS")] MsDos, [DisplayText("Windows 98")] Win98, [DisplayText("Windows XP")] Xp, [DisplayText("Windows Vista")] Vista, [DisplayText("Windows 7")] Seven, } public string GetMyOSName() { var myOS = OperatingSystem.Seven; return myOS.DisplayText(); }