Class TypeConversion
- Namespace
- Cratis.Types
- Assembly
- Cratis.Fundamentals.dll
Helper methods for type conversion.
public static class TypeConversion
- Inheritance
-
TypeConversion
- Inherited Members
Methods
Convert(Type, object)
Convert a value to specified type.
[RequiresUnreferencedCode("Deserializes JSON elements to the target type; the type's members may be trimmed.")]
[RequiresDynamicCode("Uses MakeGenericMethod to invoke JsonValue.GetValue<T> at runtime.")]
public static object Convert(Type type, object value)
Parameters
Returns
- object
Converted instance.