4 overrides of IsEnum
Microsoft.AspNetCore.Grpc.Swagger (1)
Internal\GrpcModelMetadata.cs (1)
36public override bool IsEnum { get; }
Microsoft.AspNetCore.Mvc.Abstractions.Test (1)
ModelBinding\ModelMetadataTest.cs (1)
612public override bool IsEnum
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
EndpointModelMetadata.cs (1)
36public override bool IsEnum { get; }
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\Metadata\DefaultModelMetadata.cs (1)
283public override bool IsEnum => DisplayMetadata.IsEnum;
11 references to IsEnum
Microsoft.AspNetCore.Mvc.Abstractions (3)
ModelBinding\ModelMetadata.cs (3)
268/// <see cref="Enum"/> field groups, names and values. <c>null</c> if <see cref="IsEnum"/> is <c>false</c>. 277/// and values. <c>null</c> if <see cref="IsEnum"/> is <c>false</c>. 340/// <c>true</c> if <see cref="IsEnum"/> is <c>true</c> and <see cref="UnderlyingOrModelType"/> has an
Microsoft.AspNetCore.Mvc.Core (2)
ModelBinding\Binders\EnumTypeModelBinderProvider.cs (1)
30if (context.Metadata.IsEnum)
ModelBinding\Metadata\DisplayMetadata.cs (1)
174/// <see cref="System.Enum"/>. See <see cref="ModelMetadata.IsEnum"/>.
Microsoft.AspNetCore.Mvc.ViewFeatures (6)
DefaultHtmlGenerator.cs (1)
963var isTargetEnum = metadata.IsEnum;
HtmlHelper.cs (3)
370if (!metadata.IsEnum || metadata.IsFlagsEnum) 388if (!metadata.IsEnum || metadata.IsFlagsEnum) 1372if (!metadata.IsEnum || metadata.IsFlagsEnum)
ModelExplorerExtensions.cs (1)
48if (modelExplorer.Metadata.IsEnum && modelExplorer.Model is Enum modelEnum)
TemplateBuilder.cs (1)
102else if (viewData.ModelMetadata.IsEnum && _model is Enum modelEnum)