C# Класс Habanero.Base.DataMappers.GeneralDataMapper

Implements a data mapper for an unknown type. Tries to convert the value given to that type The data mapper conforms to the GOF strategy pattern DataMapper.
Наследование: Habanero.Base.DataMappers.DataMapper
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
GeneralDataMapper ( Type targetType ) : System

Creates the Generalised Data Mapper with the appropriate targetType.

TryParsePropValue ( object valueToParse, object &returnValue ) : bool

This method provides a the functionality to convert any object to the appropriate type for the particular BOProp Type. e.g it will convert a valid guid string to a valid Guid Object.

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

Метод Описание
CanConvertUsingTypeConverter ( object valueToParse ) : bool
GetTypeConverter ( ) : TypeConverter

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

GeneralDataMapper() публичный Метод

Creates the Generalised Data Mapper with the appropriate targetType.
public GeneralDataMapper ( Type targetType ) : System
targetType System.Type The target type for mapping
Результат System

TryParsePropValue() публичный Метод

This method provides a the functionality to convert any object to the appropriate type for the particular BOProp Type. e.g it will convert a valid guid string to a valid Guid Object.
public TryParsePropValue ( object valueToParse, object &returnValue ) : bool
valueToParse object The value to be converted
returnValue object
Результат bool