Table of Contents

Class SolutionFolderWithFiles

Namespace
SunamoDevCode.SunamoSolutionsIndexer.Data.SolutionFolderNs
Assembly
SunamoDevCode.dll

Solution folder with file information.

public class SolutionFolderWithFiles : SolutionFolder, ISolutionFolderSerialize, ISolutionFolder
Inheritance
SolutionFolderWithFiles
Implements
Inherited Members
Extension Methods

Constructors

SolutionFolderWithFiles(SolutionFolder)

Initializes a new instance of the SolutionFolderWithFiles class.

public SolutionFolderWithFiles(SolutionFolder solutionFolder)

Parameters

solutionFolder SolutionFolder

Source solution folder.

Properties

FileInfoLiteOfExtension

Gets or sets the dictionary of FileInfoLite objects grouped by extension. Is filled in method CreateFileInfoLiteObjects.

public Dictionary<string, List<FileInfoLiteDC>> FileInfoLiteOfExtension { get; set; }

Property Value

Dictionary<string, List<FileInfoLiteDC>>

Files

Gets or sets the list of all files in the solution.

public List<string> Files { get; set; }

Property Value

List<string>

FilesAndSizes

Gets or sets the dictionary mapping file index to file size.

public Dictionary<int, long> FilesAndSizes { get; set; }

Property Value

Dictionary<int, long>

FilesOfExtension

Gets or sets the dictionary of files grouped by extension (without dot).

public Dictionary<string, List<string>> FilesOfExtension { get; set; }

Property Value

Dictionary<string, List<string>>

OverallSize

Gets or sets the overall size of all files.

public long OverallSize { get; set; }

Property Value

long

SizeOfExtension

Gets or sets the dictionary of total size by extension (all extensions are lowercase and without dot).

public Dictionary<string, long> SizeOfExtension { get; set; }

Property Value

Dictionary<string, long>

SizeOfExtensionTypes

Gets or sets the dictionary of total size by extension type.

public Dictionary<TypeOfExtensionDC, long> SizeOfExtensionTypes { get; set; }

Property Value

Dictionary<TypeOfExtensionDC, long>

Methods

CheckSize()

Checks and calculates the total size of files.

public void CheckSize()

CreateFileInfoLiteObjects(string, string)

Creates FileInfoLite objects for the specified extension.

public void CreateFileInfoLiteObjects(string extensionWithoutDot, string item)

Parameters

extensionWithoutDot string

Extension without dot.

item string

File path.