C# Class Raven.Light.Converters.Int64Converter

Convert strings from / to int64
Inheritance: ITypeConverter
Datei anzeigen Open project: hibernating-rhinos/Raven.Light

Public Methods

Method 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 method

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. ///
return bool

ConvertFrom() public method

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.
return string

ConvertTo() public method

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.
return object