C# 클래스 Summer.Batch.Common.Util.CopyUtils

Copy Helper.
파일 보기 프로젝트 열기: SummerBatch/SummerBatch

공개 메소드들

메소드 설명
CopyProperties ( object destination, object origin ) : void

Copy properties from an origin object to a destination object. A property is copied if : - the property names are the same in both destination and origin object. A property is skipped if : - a property exists in the origin object but do not exist in the destination object. - a property is not readable in the origin object. - a property is not writable in the destination object. - the destination property type is not assignable from the origin property type.

비공개 메소드들

메소드 설명
CheckCompatibility ( PropertyInfo piDestination, PropertyInfo piOrigin ) : bool

Checks compatibility between origin and destination.

CheckDestinationNullity ( PropertyInfo piDestination, PropertyInfo piOrigin ) : bool

Checks that destination is not null.

CheckDestinationWritability ( PropertyInfo piDestination, PropertyInfo piOrigin ) : bool

Checks that destination can be written to.

CheckOriginReadability ( PropertyInfo piOrigin ) : bool

Checks that origin can be read.

메소드 상세

CopyProperties() 공개 정적인 메소드

Copy properties from an origin object to a destination object. A property is copied if : - the property names are the same in both destination and origin object. A property is skipped if : - a property exists in the origin object but do not exist in the destination object. - a property is not readable in the origin object. - a property is not writable in the destination object. - the destination property type is not assignable from the origin property type.
 
public static CopyProperties ( object destination, object origin ) : void
destination object
origin object
리턴 void