C# Class Raven.Light.Converters.Int64Converter

Convert strings from / to int64
Inheritance: ITypeConverter
Afficher le fichier Open project: hibernating-rhinos/Raven.Light

Méthodes publiques

Méthode Description
CanConvertFrom ( Type sourceType ) : bool

Returns whether this converter can convert an object of the given type to the type of this converter, using the specified context.

ConvertFrom ( object value ) : string

Converts the given object to the type of this converter, using the specified context and culture information.

ConvertTo ( string value ) : object

Converts the given value object to the specified type, using the specified context and culture information.

Method Details

CanConvertFrom() public méthode

Returns whether this converter can convert an object of the given type to the type of this converter, using the specified context.
public CanConvertFrom ( Type sourceType ) : bool
sourceType System.Type A that represents the type you want to convert from. ///
Résultat bool

ConvertFrom() public méthode

Converts the given object to the type of this converter, using the specified context and culture information.
The conversion cannot be performed.
public ConvertFrom ( object value ) : string
value object The to convert.
Résultat string

ConvertTo() public méthode

Converts the given value object to the specified type, using the specified context and culture information.
public ConvertTo ( string value ) : object
value string The to convert.
Résultat object