System.Collections.Stack.Stack C# (CSharp) Method

Stack() public method

public Stack ( ICollection col ) : System.Diagnostics
col ICollection
return System.Diagnostics
        public Stack(ICollection col) : this((col == null ? 32 : col.Count))
        {
            if (col == null)
                throw new ArgumentNullException(nameof(col));
            Contract.EndContractBlock();
            IEnumerator en = col.GetEnumerator();
            while (en.MoveNext())
                Push(en.Current);
        }

Same methods

Stack::Stack ( )
Stack::Stack ( System col )
Stack::Stack ( int initialCapacity )
Stack::Stack ( ) : System.Diagnostics
Stack::Stack ( int initialCapacity ) : System.Diagnostics