Ejemplo n.º 1
0
 /// <summary>
 /// Load the data object from storage with the given name.
 /// </summary>
 /// <typeparam name="T">Type of data to load from storage.</typeparam>
 /// <param name="name">Name of the data in storage.</param>
 /// <returns>Instance of T containing the loaded data or null if did not exist.</returns>
 protected override async Task <T> Load <T>(string name)
 {
     return(await AppDataContractSerializer.Restore <T>(name));
 }
 /// <summary>
 /// Load the data object from storage with the given name.
 /// </summary>
 /// <typeparam name="T">Type of data to load from storage.</typeparam>
 /// <param name="name">Name of the data in storage.</param>
 /// <returns>Instance of T containing the loaded data or null if did not exist.</returns>
 protected override T Load <T>(string name)
 {
     return(AppDataContractSerializer.Restore <T>(name));
 }