< Summary

Information
Class: MyNet.UI.ViewModels.List.Sorting.SortingChangedEventArgs<T>
Assembly: MyNet.UI
File(s): https://raw.githubusercontent.com/sandre58/MyNet/85372080fe102cd9ee155ceab49ae000e7f66103/src/MyNet.UI/ViewModels/List/Sorting/SortingChangedEventArgs.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.UI/ViewModels/List/Sorting/SortingChangedEventArgs.cs

#LineLine coverage
 1// -----------------------------------------------------------------------
 2// <copyright file="SortingChangedEventArgs.cs" company="Stéphane ANDRE">
 3// Copyright (c) Stéphane ANDRE. All rights reserved.
 4// </copyright>
 5// -----------------------------------------------------------------------
 6
 7using System;
 8using System.Collections.Generic;
 9using MyNet.Observable.Collections.Sorting;
 10
 11namespace MyNet.UI.ViewModels.List.Sorting;
 12
 13/// <summary>
 14/// Provides data for the SortingChanged event, containing the sorting property view models that define the current sort
 15/// </summary>
 16/// <param name="properties">The collection of sorting property view models representing the current configuration.</par
 917public class SortingChangedEventArgs<T>(IReadOnlyList<ISortingProperty<T>> properties) : EventArgs
 18{
 19    /// <summary>
 20    /// Gets the collection of sorting property view models that define the current sorting configuration.
 21    /// These view models contain UI-related information such as display names, enabled state, and order.
 22    /// </summary>
 923    public IReadOnlyList<ISortingProperty<T>> Sorting { get; } = properties;
 24}
 25