Dela via


ModelMetadata.IsEnum Property

Definition

Gets a value indicating whether UnderlyingOrModelType is for an Enum.

public:
 abstract property bool IsEnum { bool get(); };
public abstract bool IsEnum { get; }
member this.IsEnum : bool
Public MustOverride 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