Table of Contents

Class ExtensionSortedCollection

Namespace
SunamoDevCode._public.SunamoCollectionsNonGeneric
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

d string[]

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

Dictionary<string, List<string>>

Methods

AddOnlyFileName(string)

Adds a file name (without path) to the collection, indexed by its extension.

public void AddOnlyFileName(string fileName)

Parameters

fileName string

File 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

filePath string

Full file path to add.