Table of Contents

Namespace Gym.Reflection

Classes

DefaultConstructor

A static-cache to the default constructor of a type given at run time, the untyped twin of DefaultConstructor<T>: one delegate per type, cached for the process's life.

DefaultConstructorNotFoundException

Thrown by DefaultConstructor<T> and DefaultConstructor for a type with neither a parameterless constructor nor one whose parameters are all optional; the message names the type.

DefaultConstructor<T>

A static-cache to the default constructor of type T: a parameterless constructor, or else the one whose parameters are all optional (called with their defaults). The legacy deep merge uses it to create empty containers.

ReflectionHelper

0.2's reflection extension methods on Type, ConstructorInfo, MethodInfo, enums and tuples. In 2.0 only DefaultConstructor<T> calls two of them (GetDefaultConstructor(Type) and CreateDefaultConstructor<T>(ConstructorInfo)), for the legacy deep merge.