CodeTypeDeclaration.IsEnum 属性

定义

获取或设置一个值,该值指示类型是否为枚举。

public:
 property bool IsEnum { bool get(); void set(bool value); };
public bool IsEnum { get; set; }
member this.IsEnum : bool with get, set
Public Property IsEnum As Boolean

属性值

true 如果类型为枚举,则为否则,为 false.

适用于