using System.Threading.Tasks;
using Windows.Storage;
public class ImageCache
{
public static async Task<StorageFile> Load(string url)
{
return await Load(url, null);
}
public static async Task<StorageFile> Load(string url, Crop crop)
{
return await Loader.CacheManager(url, crop);
}
public class ImageCache
{
public static Task<StorageFile> LoadAsync(string url)
{
return LoadAsync(url, null);
}
public static Task<StorageFile> LoadAsync(string url, Crop crop)
{
return Loader.CacheManager(url, crop);
}
For example, this code:
Can be rewritten as: