< Summary

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

#LineLine coverage
 1// -----------------------------------------------------------------------
 2// <copyright file="AutoSaveEnabledChangedEventArgs.cs" company="Stéphane ANDRE">
 3// Copyright (c) Stéphane ANDRE. All rights reserved.
 4// </copyright>
 5// -----------------------------------------------------------------------
 6
 7using System;
 8
 9namespace MyNet.IO.AutoSave;
 10
 11/// <summary>
 12/// Initializes a new instance of the <see cref="AutoSaveEnabledChangedEventArgs"/> class with the specified state.
 13/// </summary>
 14/// <param name="isEnabled">The new state of the auto-save feature.</param>
 915public class AutoSaveEnabledChangedEventArgs(bool isEnabled) : EventArgs
 16{
 17    /// <summary>
 18    /// Gets a value indicating whether the auto-save feature is enabled.
 19    /// </summary>
 20    public bool IsEnabled { get; } = isEnabled;
 21}
 22

Methods/Properties

.ctor(System.Boolean)