Table of Contents

Class SolutionFoldersSerialize

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

Serializable collection of solution folders

public class SolutionFoldersSerialize
Inheritance
SolutionFoldersSerialize
Inherited Members
Extension Methods

Fields

SolutionFolders

List of serializable solution folders.

public List<SolutionFolderSerialize> SolutionFolders

Field Value

List<SolutionFolderSerialize>

Methods

GetWithName(List<string>, bool)

Gets solution folders by name with optional error handling If isMissingAllowed is false and solution can't be found, saves exception in result Otherwise saves null in result Data

public ResultWithExceptionDC<SolutionFoldersSerialize> GetWithName(List<string> solutionNamesToFind, bool isMissingAllowed)

Parameters

solutionNamesToFind List<string>

Solution names to find

isMissingAllowed bool

If false, throws exception when solution not found

Returns

ResultWithExceptionDC<SolutionFoldersSerialize>

Result with found solution folders or exception

Insert(int, SolutionFolderSerialize)

Inserts a solution folder at specified index, maintaining max 10 items

public void Insert(int index, SolutionFolderSerialize solutionFolder)

Parameters

index int

Index to insert at

solutionFolder SolutionFolderSerialize

Solution folder to insert

RemoveWithDisplayedText(string)

Removes all solution folders with specified displayed text

public void RemoveWithDisplayedText(string displayedText)

Parameters

displayedText string

Displayed text to match

RemoveWithName(List<string>)

Removes solution folders with specified names

public void RemoveWithName(List<string> solutionNamesToRemove)

Parameters

solutionNamesToRemove List<string>

Solution names to remove

Update()

Raises the Updated event with the current solution folders.

public void Update()

Events

Updated

Event raised when the solution folders collection is updated.

public event Action<List<SolutionFolderSerialize>>? Updated

Event Type

Action<List<SolutionFolderSerialize>>