C# Class MyConverter, code

Afficher le fichier Open project: shendongnian/code Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public Convert ( Array, values, Type, targetType, object parameter, CultureInfo, culture ) : object
values Array,
targetType Type,
parameter object
culture CultureInfo,
Résultat object

Convert() public méthode

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

ConvertBack() public méthode

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

ConvertTo() public méthode

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

ReadJson() public méthode

public ReadJson ( JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer ) : object
reader JsonReader
objectType Type
existingValue object
serializer JsonSerializer
Résultat object