Dela via


DefaultModelMetadata.IsEnum Property

Definition

Gets a value indicating whether UnderlyingOrModelType is for an Enum.

public:
 virtual property bool IsEnum { bool get(); };
public override bool IsEnum { get; }
member this.IsEnum : bool
Public Overrides ReadOnly Property IsEnum As Boolean

Property Value

true if type.IsEnum (type.GetTypeInfo().IsEnum for DNX Core 5.0) is true for UnderlyingOrModelType; false otherwise.

Applies to