C# Класс Serialize.Linq.Internals.ValueConverter

Показать файл Открыть проект

Открытые методы

Метод Описание
AddCustomConverter ( Func converter ) : void

Adds the custom converter.

AddCustomConverter ( Type convertTo, Func converter ) : void

Adds the custom converter.

AddCustomConverter ( Type convertTo, object>.Func converter ) : void

Adds the custom converter.

ClearCustomConverters ( ) : void

Clears the custom converters.

Convert ( object value, Type convertTo ) : object

Converts the specified value.

Приватные методы

Метод Описание
TryConvertToDateTime ( object value, System.DateTime &dateTime ) : bool

Tries the convert to date time.

TryCustomConvert ( object value, Type convertTo, object &convertedValue ) : bool

Tries the custom convert.

ValueConverter ( ) : System

Initializes the ValueConverter class.

Описание методов

AddCustomConverter() публичный статический Метод

Adds the custom converter.
public static AddCustomConverter ( Func converter ) : void
converter Func The converter.
Результат void

AddCustomConverter() публичный статический Метод

Adds the custom converter.
/// convertTo /// or /// converter /// Failed to add converter.
public static AddCustomConverter ( Type convertTo, Func converter ) : void
convertTo System.Type The convert to.
converter Func The converter.
Результат void

AddCustomConverter() публичный статический Метод

Adds the custom converter.
public static AddCustomConverter ( Type convertTo, object>.Func converter ) : void
convertTo System.Type The convert to.
converter object>.Func The converter.
Результат void

ClearCustomConverters() публичный статический Метод

Clears the custom converters.
public static ClearCustomConverters ( ) : void
Результат void

Convert() публичный статический Метод

Converts the specified value.
public static Convert ( object value, Type convertTo ) : object
value object The value.
convertTo System.Type The convert to.
Результат object