public static void ClearStorage(StorageBase s) { if (s != null) { if (s.Count() <= 0) { return; } s.Clear(); s.Save(); } }
private static bool Validate(StorageBase s) { if (s == null) { return(false); } if (CreateEmptyIfNeeded(s.GetPath())) { if (s.Count() > 0) { s.Save(); } return(false); } return(true); }