Mono.Xml.DTDValidatingReader.GetAttributeSlot C# (CSharp) Method

GetAttributeSlot() private method

private GetAttributeSlot ( ) : AttributeSlot
return AttributeSlot
		AttributeSlot GetAttributeSlot ()
		{
			if (attributeCount == attributes.Length) {
				AttributeSlot [] tmp = new AttributeSlot [attributeCount << 1];
				Array.Copy (attributes, tmp, attributeCount);
				attributes = tmp;
			}
			if (attributes [attributeCount] == null)
				attributes [attributeCount] = new AttributeSlot ();
			AttributeSlot slot = attributes [attributeCount];
			slot.Clear ();
			attributeCount++;
			return slot;
		}