Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line numberDiff line numberDiff line change
Expand Up@@ -10,7 +10,7 @@ namespace CSharpAnalytics.Serializers
/// Provides an easy way to serialize and deserialize simple classes to a user AppData folder in
/// Windows Forms applications.
/// </summary>
internal static class AppDataContractSerializer
public static class AppDataContractSerializer
{
private static string folderPath;

Expand DownExpand Up@@ -52,6 +52,10 @@ public static async Task<T> Restore<T>(string filename = null, bool deleteBadDat
try
{
var file = GetFilePath<T>(filename);
if (!File.Exists(file))
{
return default(T);
}

try
{
Expand Down