/// <summary> /// Initializes a new instance of the <see cref="ReadOnlyLargeCollection{T}"/> class. /// Creates an instance that is a read-only wrapper around the specified list. /// </summary> /// <param name="list">The list to wrap.</param> /// <exception cref="ArgumentNullException"><paramref name="list"/> is null.</exception> public ReadOnlyLargeCollection(ILargeList <T> list) { if (list == null) { throw new ArgumentNullException(nameof(list)); } List = list; }
public LargeCollection(ILargeList <T> list) { #if STRICT if (list == null) { throw new ArgumentNullException(nameof(list), "Value cannot be null."); } #else if (list == null) { throw new ArgumentNullException("collection", "Value cannot be null."); } #endif #if STRICT #else Initialize(); #endif List = list; }