< Summary

Information
Class: MyNet.Observable.Collections.ExtendedObservableCollection<T>
Assembly: MyNet.Observable
File(s): https://raw.githubusercontent.com/sandre58/MyNet/85372080fe102cd9ee155ceab49ae000e7f66103/src/MyNet.Observable/Collections/ExtendedObservableCollection.cs
Tag: 323_28699572109
Line coverage
50%
Covered lines: 2
Uncovered lines: 2
Coverable lines: 4
Total lines: 47
Line coverage: 50%
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%
.ctor(...)100%210%
.ctor(...)100%11100%
.ctor(...)100%210%

File(s)

https://raw.githubusercontent.com/sandre58/MyNet/85372080fe102cd9ee155ceab49ae000e7f66103/src/MyNet.Observable/Collections/ExtendedObservableCollection.cs

#LineLine coverage
 1// -----------------------------------------------------------------------
 2// <copyright file="ExtendedObservableCollection.cs" company="Stéphane ANDRE">
 3// Copyright (c) Stéphane ANDRE. All rights reserved.
 4// </copyright>
 5// -----------------------------------------------------------------------
 6
 7using System.Collections.Generic;
 8using System.Collections.ObjectModel;
 9using DynamicData;
 10using DynamicData.Binding;
 11using MyNet.Collections;
 12
 13namespace MyNet.Observable.Collections;
 14
 15/// <summary>
 16/// Represents an extended observable collection that provides additional functionalities and optimizations for managing
 17/// </summary>
 18/// <typeparam name="T">The type of elements in the collection.</typeparam>
 19public class ExtendedObservableCollection<T> : ObservableRangeCollection<T>, IObservableCollection<T>, IExtendedList<T>
 20{
 21    /// <summary>
 22    /// Initializes a new instance of the <see cref="ExtendedObservableCollection{T}"/> class.
 23    /// </summary>
 624    public ExtendedObservableCollection() { }
 25
 26    /// <summary>
 27    /// Initializes a new instance of the <see cref="ExtendedObservableCollection{T}"/> class with initial capacity.
 28    /// </summary>
 29    /// <param name="capacity">The initial capacity to pre-allocate.</param>
 30    public ExtendedObservableCollection(int capacity)
 031        : base(capacity) { }
 32
 33    /// <summary>
 34    /// Initializes a new instance of the <see cref="ExtendedObservableCollection{T}"/> class that contains elements cop
 35    /// </summary>
 36    /// <param name="collection">The collection from which the elements are copied.</param>
 37    public ExtendedObservableCollection(Collection<T> collection)
 638        : base(collection) { }
 39
 40    /// <summary>
 41    /// Initializes a new instance of the <see cref="ExtendedObservableCollection{T}"/> class that contains elements cop
 42    /// </summary>
 43    /// <param name="collection">The collection from which the elements are copied.</param>
 44    public ExtendedObservableCollection(IEnumerable<T> collection)
 045        : base(collection) { }
 46}
 47