[DatFile] Dictionary methods reorg + rename

This commit is contained in:
Matt Nadareski
2017-09-25 14:28:55 -07:00
parent 67e7d12d63
commit 95d6d9829b
4 changed files with 31 additions and 31 deletions

View File

@@ -459,17 +459,6 @@ namespace SabreTools.Library.Dats
return contains;
}
/// <summary>
/// Delete the file dictionary
/// </summary>
public void Delete()
{
_items = null;
// Reset statistics
ResetStatistics();
}
/// <summary>
/// Get the keys from the file dictionary
/// </summary>
@@ -567,17 +556,6 @@ namespace SabreTools.Library.Dats
}
}
/// <summary>
/// Reset the file dictionary
/// </summary>
public void Reset()
{
_items = new SortedDictionary<string, List<DatItem>>();
// Reset statistics
ResetStatistics();
}
#endregion
#region Constructors
@@ -637,7 +615,7 @@ namespace SabreTools.Library.Dats
/// Clones the files dictionary
/// </summary>
/// <returns>A new files dictionary instance</returns>
public SortedDictionary<string, List<DatItem>> CloneFiles()
public SortedDictionary<string, List<DatItem>> CloneDictionary()
{
// Create the placeholder dictionary to be used
SortedDictionary<string, List<DatItem>> sorted = new SortedDictionary<string, List<DatItem>>();
@@ -667,6 +645,28 @@ namespace SabreTools.Library.Dats
return sorted;
}
/// <summary>
/// Delete the file dictionary
/// </summary>
public void DeleteDictionary()
{
_items = null;
// Reset statistics
ResetStatistics();
}
/// <summary>
/// Reset the file dictionary
/// </summary>
public void ResetDictionary()
{
_items = new SortedDictionary<string, List<DatItem>>();
// Reset statistics
ResetStatistics();
}
#endregion
#endregion // Instance Methods