mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DatFile] Dictionary methods reorg + rename
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user