C# 클래스 Catel.Services.ObjectConverterService

Service to convert objects to strings and vice versa.
상속: IObjectConverterService
파일 보기 프로젝트 열기: Catel/Catel

공개 메소드들

메소드 설명
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.

메소드 상세

ConvertFromObjectToObject() 공개 메소드

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.
리턴 object

ConvertFromObjectToString() 공개 메소드

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

ConvertFromObjectToString() 공개 메소드

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

ConvertFromStringToObject() 공개 메소드

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.
리턴 object

ConvertFromStringToObject() 공개 메소드

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.
리턴 object

ObjectConverterService() 공개 메소드

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