C# Class PhotoSharingApp.Universal.ContractModelConverterExtensions.PhotoThumbnailConverter

Helper class to convert between PhotoThumbnail and PhotoThumbnailContract classes.
Mostrar archivo Open project: Microsoft/Appsample-Photosharing

Public Methods

Method Description
ToDataContract ( this thumbnail ) : PhotoThumbnailContract

Converts the given data model to a data contract.

ToDataModel ( this thumbnailContract ) : PhotoThumbnail

Converts the given data contract to a data model.

Method Details

ToDataContract() public static method

Converts the given data model to a data contract.
public static ToDataContract ( this thumbnail ) : PhotoThumbnailContract
thumbnail this The data model.
return PhotoSharingApp.Portable.DataContracts.PhotoThumbnailContract

ToDataModel() public static method

Converts the given data contract to a data model.
public static ToDataModel ( this thumbnailContract ) : PhotoThumbnail
thumbnailContract this The data contract.
return PhotoSharingApp.Universal.Models.PhotoThumbnail