C# Class PhotoSharingApp.Universal.ContractModelConverterExtensions.CategoryPreviewConverter

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

Méthodes publiques

Méthode Description
ToDataContract ( this category ) : CategoryPreviewContract

Converts the given category preview data model to a contract.

ToDataModel ( this categoryPreviewContract ) : CategoryPreview

Converts the given category preview contract to the category preview data model.

Method Details

ToDataContract() public static méthode

Converts the given category preview data model to a contract.
public static ToDataContract ( this category ) : CategoryPreviewContract
category this The category preview data model.
Résultat PhotoSharingApp.Portable.DataContracts.CategoryPreviewContract

ToDataModel() public static méthode

Converts the given category preview contract to the category preview data model.
public static ToDataModel ( this categoryPreviewContract ) : CategoryPreview
categoryPreviewContract this The category preview data contract.
Résultat PhotoSharingApp.Universal.Models.CategoryPreview