/// <summary> /// Constructor that creates an ArrayLink<TValue> of /// the requested size. /// </summary> /// <param name="initialSize">Requested size of the Collection.</param> public LinkedArray(int initialSize) { _root = new ArrayLink <TValue>(0, initialSize); }
/// <summary> /// Constructor that accepts an ICollection<TValue> containing /// values to initialize the collection starting at key = 0. /// </summary> /// <param name="collection">Values to initialize the collection.</param> public LinkedArray(ICollection <TValue> collection) { _root = new ArrayLink <TValue>(0, Math.Max(collection.Count, ArrayLink <TValue> .InitialSize)); AddRange(collection); }
/// <summary> /// Default constructor /// </summary> /// <remarks> /// Initializes the collection with a /// root ArrayLink<TValue>. /// </remarks> public LinkedArray() { _root = new ArrayLink <TValue>(0, ArrayLink <TValue> .InitialSize); }