< Summary

Information
Class: MyNet.IO.Registry.RegistryEntry<T>
Assembly: MyNet.IO
File(s): https://raw.githubusercontent.com/sandre58/MyNet/85372080fe102cd9ee155ceab49ae000e7f66103/src/MyNet.IO/Registry/RegistryEntry.cs
Tag: 323_28699572109
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 25
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/Registry/RegistryEntry.cs

#LineLine coverage
 1// -----------------------------------------------------------------------
 2// <copyright file="RegistryEntry.cs" company="Stéphane ANDRE">
 3// Copyright (c) Stéphane ANDRE. All rights reserved.
 4// </copyright>
 5// -----------------------------------------------------------------------
 6
 7namespace MyNet.IO.Registry;
 8
 9/// <summary>
 10/// Represents an entry in the registry, associating a registry path with a specific item of type T.
 11/// </summary>
 12/// <typeparam name="T">The type of the item stored in the registry entry.</typeparam>
 13public sealed class RegistryEntry<T>(RegistryPath path, T item)
 14{
 15    /// <summary>
 16    /// Gets the registry path associated with this entry. The registry path represents the location in the registry whe
 17    /// </summary>
 12318    public RegistryPath Path { get; } = path;
 19
 20    /// <summary>
 21    /// Gets the item stored in this registry entry. This property is read-only and is initialized through the construct
 22    /// </summary>
 12323    public T Item { get; } = item;
 24}
 25