System.Collections.Specialized.NameObjectCollectionBase.BaseGetAllValues C# (CSharp) Method

BaseGetAllValues() protected method

protected BaseGetAllValues ( Type type ) : object[]
type Type
return object[]
        protected object[] BaseGetAllValues(Type type)
        {
            int n = _entriesArray.Count;
            if (type == null)
            {
                throw new ArgumentNullException(nameof(type));
            }
            object[] allValues = (object[])Array.CreateInstance(type, n);

            for (int i = 0; i < n; i++)
            {
                allValues[i] = BaseGet(i);
            }

            return allValues;
        }

Same methods

NameObjectCollectionBase::BaseGetAllValues ( ) : Object[]
NameObjectCollectionBase::BaseGetAllValues ( ) : object[]
NameObjectCollectionBase::BaseGetAllValues ( System type ) : object[]