Table of Contents

Class SolutionFolders

Namespace
SunamoDevCode.SunamoSolutionsIndexer.Data.SolutionFoldersNs
Assembly
SunamoDevCode.dll

Collection of solution folders with indexing support.

public class SolutionFolders : List<SolutionFolder>, IList<SolutionFolder>, ICollection<SolutionFolder>, IReadOnlyList<SolutionFolder>, IReadOnlyCollection<SolutionFolder>, IEnumerable<SolutionFolder>, IList, ICollection, IEnumerable
Inheritance
SolutionFolders
Implements
Inherited Members
Extension Methods

Constructors

SolutionFolders(IList<SolutionFolder>)

Initializes a new instance of the SolutionFolders class.

public SolutionFolders(IList<SolutionFolder> collection)

Parameters

collection IList<SolutionFolder>

Collection of solution folders.

Properties

this[string]

Gets the solution folder by solution name.

public SolutionFolder this[string solutionName] { get; }

Parameters

solutionName string

Solution name to find.

Property Value

SolutionFolder

Solution folder with the specified name.

Methods

DoIndex()

Creates an index of solution folders by their solution name.

public void DoIndex()

IsAllNamesUnique(IList<string>?)

Checks if all solution names are unique and throws exception if duplicates are found.

public void IsAllNamesUnique(IList<string>? names = null)

Parameters

names IList<string>

Optional list of names to check. If null, uses solution names from this collection.