Table of Contents

Interface IEnumTypeShape<TEnum, TUnderlying>

Namespace
PolyType.Abstractions
Assembly
PolyType.dll

Provides a strongly typed shape model for a .NET enum.

public interface IEnumTypeShape<TEnum, TUnderlying> : ITypeShape<TEnum>, IEnumTypeShape, ITypeShape where TEnum : struct, Enum where TUnderlying : unmanaged

Type Parameters

TEnum

The type of .NET enum.

TUnderlying

The underlying type used to represent the enum.

Inherited Members

Properties

Members

Gets the names and values for each enum member.

IReadOnlyDictionary<string, TUnderlying> Members { get; }

Property Value

IReadOnlyDictionary<string, TUnderlying>

Remarks

The dictionary uses Ordinal as its key comparer.

UnderlyingType

Gets the shape of the underlying type used to represent the enum.

ITypeShape<TUnderlying> UnderlyingType { get; }

Property Value

ITypeShape<TUnderlying>