Table of Contents

Class EnumValueCache

Namespace
Icy.Data
Assembly
IcyUI.dll

Caches GetValues(Type)'s result per Type - used by PropertyGrid to populate an enum-typed property's ComboBox editor without re-reflecting the same type's values on every row rebuild.

public static class EnumValueCache
Inheritance
EnumValueCache
Inherited Members

Methods

GetValues(Type)

Gets every defined value of enumType, in declaration order.

public static Array GetValues(Type enumType)

Parameters

enumType Type

An enum type.

Returns

Array

The cached array GetValues(Type) returned for enumType.

Exceptions

ArgumentException

enumType is not an enum type.