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

Allocate() public method

public Allocate ( int capacity ) : void
capacity int
return void
        public void Allocate(int capacity)
        {
            ordinals = new Dictionary<string, int>(capacity);
            currentValues = new object[capacity];

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