C# Class MyConverter, code

Show file Open project: shendongnian/code Class Usage Examples

Public Methods

Method Description
Convert ( Array, values, Type, targetType, object parameter, CultureInfo, culture ) : object
Convert ( Array, values, Type, targetType, object parameter, CultureInfo culture ) : object
ConvertBack ( object value, Array targetTypes, object parameter, System.Globalization.CultureInfo culture ) : object[]
ConvertTo ( ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType ) : object
ReadJson ( JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer ) : object

Private Methods

Method Description
IsPrimitiveToken ( JsonToken token ) : bool
MoveToContent ( JsonReader reader ) : bool
ReadList ( JsonReader reader ) : object
ReadObject ( JsonReader reader ) : object
ReadValue ( JsonReader reader ) : object

Method Details

Convert() public method

public Convert ( Array, values, Type, targetType, object parameter, CultureInfo, culture ) : object
values Array,
targetType Type,
parameter object
culture CultureInfo,
return object

Convert() public method

public Convert ( Array, values, Type, targetType, object parameter, CultureInfo culture ) : object
values Array,
targetType Type,
parameter object
culture System.Globalization.CultureInfo
return object

ConvertBack() public method

public ConvertBack ( object value, Array targetTypes, object parameter, System.Globalization.CultureInfo culture ) : object[]
value object
targetTypes Array
parameter object
culture System.Globalization.CultureInfo
return object[]

ConvertTo() public method

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

ReadJson() public method

public ReadJson ( JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer ) : object
reader JsonReader
objectType Type
existingValue object
serializer JsonSerializer
return object