Class ExtensionSortedCollection
- Assembly
- SunamoDevCode.dll
Collection that sorts file names by their extension into a dictionary.
public class ExtensionSortedCollection
- Inheritance
-
ExtensionSortedCollection
- Inherited Members
- Extension Methods
Constructors
ExtensionSortedCollection(params string[])
Creates a new collection from the given file names, sorting them by extension.
public ExtensionSortedCollection(params string[] d)
Parameters
dstring[]File names to add.
Fields
dictionary
Dictionary mapping lowercase file extensions to lists of lowercase file names without extensions.
public Dictionary<string, List<string>> dictionary
Field Value
Methods
AddOnlyFileName(string)
Adds a file name (without path) to the collection, indexed by its extension.
public void AddOnlyFileName(string fileName)
Parameters
fileNamestringFile name to add.
AddWholeFilePath(string)
Adds a file by its full path, extracting only the file name for sorting.
public void AddWholeFilePath(string filePath)
Parameters
filePathstringFull file path to add.