C# Class Catel.Services.ObjectConverterService

Service to convert objects to strings and vice versa.
Inheritance: IObjectConverterService
ファイルを表示 Open project: Catel/Catel

Public Methods

Method Description
ConvertFromObjectToObject ( object value, Type targetType ) : object

Converts the specified object to an object.

ConvertFromObjectToString ( object value ) : string

Converts the specified object to a string.

ConvertFromObjectToString ( object value, CultureInfo culture ) : string

Converts from object to string.

ConvertFromStringToObject ( string value, Type targetType ) : object

Converts the specified string value to an object.

ConvertFromStringToObject ( string value, Type targetType, CultureInfo culture ) : object

Converts from string to object.

ObjectConverterService ( ) : System

Initializes a new instance of the ObjectConverterService class.

Method Details

ConvertFromObjectToObject() public method

Converts the specified object to an object.
public ConvertFromObjectToObject ( object value, Type targetType ) : object
value object The value.
targetType System.Type Type of the target.
return object

ConvertFromObjectToString() public method

Converts the specified object to a string.
public ConvertFromObjectToString ( object value ) : string
value object The value.
return string

ConvertFromObjectToString() public method

Converts from object to string.
public ConvertFromObjectToString ( object value, CultureInfo culture ) : string
value object The value.
culture System.Globalization.CultureInfo The culture.
return string

ConvertFromStringToObject() public method

Converts the specified string value to an object.
public ConvertFromStringToObject ( string value, Type targetType ) : object
value string The value.
targetType System.Type The target type.
return object

ConvertFromStringToObject() public method

Converts from string to object.
public ConvertFromStringToObject ( string value, Type targetType, CultureInfo culture ) : object
value string The value.
targetType System.Type Type of the target.
culture System.Globalization.CultureInfo The culture.
return object

ObjectConverterService() public method

Initializes a new instance of the ObjectConverterService class.
public ObjectConverterService ( ) : System
return System