Class TypesExtensions

Namespace
Cratis.Concepts
Assembly
Cratis.Fundamentals.dll

Provides extensions related to working with ITypes.

public static class TypesExtensions
Inheritance
TypesExtensions
Inherited Members

Methods

RegisterTypeConvertersForConcepts(ITypes)

Register type converters for all ConceptAs<T> types.

[RequiresDynamicCode("Uses MakeGenericType to construct type converters for concept types.")]
public static ITypes RegisterTypeConvertersForConcepts(this ITypes types)

Parameters

types ITypes

ITypes to extend.

Returns

ITypes

ITypes for continuation.

RegisterTypeConvertersForConcepts(Assembly)

Register type converters for all ConceptAs<T> types in the Assembly.

[RequiresUnreferencedCode("Scans all types in the assembly to find concept types.")]
[RequiresDynamicCode("Uses MakeGenericType to construct type converters for concept types.")]
public static void RegisterTypeConvertersForConcepts(this Assembly assembly)

Parameters

assembly Assembly

Assembly to get the ConceptAs<T> types to extend.