Tiraggo.Interfaces.tgSmartDictionary.Reallocate C# (CSharp) Method

Reallocate() private method

private Reallocate ( ) : void
return void
        internal void Reallocate()
        {
            int count = ordinals.Count;

            object[] newValues = new object[count];

            for (int i = 0; i < newValues.Length; i++)
            {
                newValues[i] = DBNull.Value;
            }

            for (int i = 0; i < currentValues.Length; i++)
            {
                newValues[i] = currentValues[i];
            }

            currentValues = newValues;
        }