C# Class PhotoSharingApp.Universal.ContractModelConverterExtensions.PhotoConverter

Helper class to convert between Photo and PhotoContract classes.
Afficher le fichier Open project: Microsoft/Appsample-Photosharing

Méthodes publiques

Méthode Description
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.

Method Details

ToDataContract() public static méthode

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

ToDataModel() public static méthode

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