Class ConceptFactory
- Namespace
- Cratis.Concepts
- Assembly
- Cratis.Fundamentals.dll
Factory to create an instance of a ConceptAs<T> from the Type and Underlying value.
public static class ConceptFactory
- Inheritance
-
ConceptFactory
- Inherited Members
Methods
CreateConceptInstance(Type, object)
Creates an instance of a ConceptAs<T> given the type and underlying value.
[UnconditionalSuppressMessage("Trimming", "IL2067", Justification = "Concept types always have the necessary constructors preserved by callers.")]
[UnconditionalSuppressMessage("Trimming", "IL2026", Justification = "TypeConversion operates on primitive concept value types that are always preserved.")]
[UnconditionalSuppressMessage("Trimming", "IL2072", Justification = "TypeConversion operates on primitive concept value types that are always preserved.")]
[UnconditionalSuppressMessage("AOT", "IL3050", Justification = "TypeConversion uses MakeGenericMethod on well-known BCL types (JsonValue.GetValue).")]
public static object CreateConceptInstance(Type type, object value)
Parameters
Returns
- object
An instance of a ConceptAs with the specified value.