private void CheckIndexCondition(int attributeIndex) { if (attributeIndex < 0 || attributeIndex >= AttributeCount) { throw new ArgumentOutOfRangeException( "attributeIndex" ); } }