C# 클래스 PhotoSharingApp.Universal.ContractModelConverterExtensions.PhotoConverter

Helper class to convert between Photo and PhotoContract classes.
파일 보기 프로젝트 열기: Microsoft/Appsample-Photosharing

공개 메소드들

메소드 설명
ToDataContract ( this photo ) : PhotoContract

Converts the given data model into a photo data contract.

ToDataModel ( this photoContract ) : Photo

Converts the given contract into a data model.

메소드 상세

ToDataContract() 공개 정적인 메소드

Converts the given data model into a photo data contract.
public static ToDataContract ( this photo ) : PhotoContract
photo this The data model.
리턴 PhotoSharingApp.Portable.DataContracts.PhotoContract

ToDataModel() 공개 정적인 메소드

Converts the given contract into a data model.
public static ToDataModel ( this photoContract ) : Photo
photoContract this The data contract.
리턴 PhotoSharingApp.Universal.Models.Photo