Table of Contents

Class EnumCache<T>

Namespace
ChartTools.Extensions.Enums
Assembly
ChartTools.dll

Holds a cache of defined values for an enum where GetValues<TEnum>() is to be called frequently.

public static class EnumCache<T> where T : struct, Enum

Type Parameters

T

Type of enum

Inheritance
EnumCache<T>
Inherited Members

Properties

UnderlyingTypeCode

public static TypeCode UnderlyingTypeCode { get; }

Property Value

TypeCode

Values

Cached values

public static ImmutableArray<T> Values { get; }

Property Value

ImmutableArray<T>

Remarks

Generates the cache on first call.

Methods

Clear()

Clears the cache.

public static void Clear()