I am developing a Windows Phone 8 app with in-app purchase capability. In order to retrieve my products I do this:
ListingInformation listing = await CurrentApp.LoadListingInformationAsync();
foreach (var productListing in listing.ProductListings.Values)
{
...
}
where listing.ProductListings's type is as shown below
However, when I try to replace var with ProductListing, I get the following error So I am unable to access my product information.
This is the product listing class:
public class ProductListing
{
public string Description { get; set; }
public string FormattedPrice { get; set; }
public Uri ImageUri { get; set; }
public IEnumerable<string> Keywords { get; set; }
public string Name { get; set; }
public string ProductId { get; set; }
public ProductType ProductType { get; set; }
public string Tag { get; set; }
}
ProductListing
type? – Shmwel