C# Class Catel.Services.ObjectConverterService

Service to convert objects to strings and vice versa.
Inheritance: IObjectConverterService
Afficher le fichier Open project: Catel/Catel

Méthodes publiques

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

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.
Résultat object

ConvertFromObjectToString() public méthode

Converts the specified object to a string.
public ConvertFromObjectToString ( object value ) : string
value object The value.
Résultat string

ConvertFromObjectToString() public méthode

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

ConvertFromStringToObject() public méthode

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.
Résultat object

ConvertFromStringToObject() public méthode

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.
Résultat object

ObjectConverterService() public méthode

Initializes a new instance of the ObjectConverterService class.
public ObjectConverterService ( ) : System
Résultat System