< Summary

Information
Class: MyNet.IO.FileHistory.RecentFilesOptions
Assembly: MyNet.IO
File(s): https://raw.githubusercontent.com/sandre58/MyNet/85372080fe102cd9ee155ceab49ae000e7f66103/src/MyNet.IO/FileHistory/RecentFilesOptions.cs
Tag: 323_28699572109
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 32
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor()100%11100%

File(s)

https://raw.githubusercontent.com/sandre58/MyNet/85372080fe102cd9ee155ceab49ae000e7f66103/src/MyNet.IO/FileHistory/RecentFilesOptions.cs

#LineLine coverage
 1// -----------------------------------------------------------------------
 2// <copyright file="RecentFilesOptions.cs" company="Stéphane ANDRE">
 3// Copyright (c) Stéphane ANDRE. All rights reserved.
 4// </copyright>
 5// -----------------------------------------------------------------------
 6
 7using System;
 8using System.Collections.Generic;
 9
 10namespace MyNet.IO.FileHistory;
 11
 12/// <summary>
 13/// Represents configuration options for managing a list of recently accessed files, including the maximum number of ent
 14/// </summary>
 15public sealed class RecentFilesOptions
 16{
 17    /// <summary>
 18    /// Gets the base path where recent file information will be stored. This can be a directory path or a registry key 
 19    /// </summary>
 20    public string BasePath { get; init; } = string.Empty;
 21
 22    /// <summary>
 23    /// Gets the maximum number of recent file entries to maintain. When the number of entries exceeds this limit, the o
 24    /// </summary>
 25    public int MaxEntries { get; init; }
 26
 27    /// <summary>
 28    /// Gets the set of supported file extensions for recent file entries. Only files with these extensions will be trac
 29    /// </summary>
 2630    public IReadOnlySet<string> SupportedExtensions { get; init; } = new HashSet<string>(StringComparer.OrdinalIgnoreCas
 31}
 32

Methods/Properties

.ctor()