Narumikazuchi_Collections/Narumikazuchi.Collections/Mutable/ObservableList`1.Private.cs
namespace Narumikazuchi.Collections;

public partial class ObservableList<TElement>
{
    /// <summary>
    /// Initializes a new instance of the <see cref="ObservableList{TElement}"/> class.
    /// </summary>
    /// <param name="items">The items that the resulting collection shall hold.</param>
    /// <exception cref="ArgumentNullException" />
    protected ObservableList(List<TElement> items)
    {
#if NET6_0_OR_GREATER
        ArgumentNullException.ThrowIfNull(items);
#else
        if (items is null)
        {
            throw new ArgumentNullException(nameof(items));
        }
#endif

        m_Items = items;
    }

    internal readonly List<TElement> m_Items;
}