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
파일 보기 프로젝트 열기: Chillisoft/habanero 1 사용 예제들

공개 메소드들

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