public Enumerator(DoubleCollection collection) { this.wrapped = ((System.Collections.CollectionBase)collection).GetEnumerator(); }
/// <summary> /// Initializes a new instance of the DoubleCollection class, containing elements /// copied from another instance of DoubleCollection /// </summary> /// <param name="items"> /// The DoubleCollection whose elements are to be added to the new DoubleCollection. /// </param> public DoubleCollection(DoubleCollection items) { this.AddRange(items); }
/// <summary> /// Adds an element with the specified key and value to this VertexDoublesDictionary. /// </summary> /// <param name="key"> /// The IVertex key of the element to add. /// </param> /// <param name="value"> /// The DoubleCollection value of the element to add. /// </param> public virtual void Add(IVertex key, DoubleCollection value) { this.Dictionary.Add(key, value); }