C# Class Jil.DeserializeDynamic.JsonObject.DynamicTypeConverter

Inheritance: System.ComponentModel.TypeConverter
Mostra file Open project: kevin-montrose/Jil

Public Methods

Method Description
CanConvertFrom ( ITypeDescriptorContext context, Type sourceType ) : bool
CanConvertTo ( ITypeDescriptorContext context, Type destinationType ) : bool
ConvertFrom ( ITypeDescriptorContext context, System culture, object value ) : object
ConvertTo ( ITypeDescriptorContext context, System culture, object value, Type destinationType ) : object
DynamicTypeConverter ( JsonObject context ) : System
IsValid ( ITypeDescriptorContext context, object value ) : bool

Private Methods

Method Description
ThrowIfNotValid ( object value ) : void

Method Details

CanConvertFrom() public method

public CanConvertFrom ( ITypeDescriptorContext context, Type sourceType ) : bool
context ITypeDescriptorContext
sourceType System.Type
return bool

CanConvertTo() public method

public CanConvertTo ( ITypeDescriptorContext context, Type destinationType ) : bool
context ITypeDescriptorContext
destinationType System.Type
return bool

ConvertFrom() public method

public ConvertFrom ( ITypeDescriptorContext context, System culture, object value ) : object
context ITypeDescriptorContext
culture System
value object
return object

ConvertTo() public method

public ConvertTo ( ITypeDescriptorContext context, System culture, object value, Type destinationType ) : object
context ITypeDescriptorContext
culture System
value object
destinationType System.Type
return object

DynamicTypeConverter() public method

public DynamicTypeConverter ( JsonObject context ) : System
context JsonObject
return System

IsValid() public method

public IsValid ( ITypeDescriptorContext context, object value ) : bool
context ITypeDescriptorContext
value object
return bool