public LevelProperty Find(string index) { if (index == null) { throw new ArgumentNullException("index"); } DataRow dataRow = base.FindObjectByName(index, (DataRow)((IAdomdBaseObject)this.parentLevel).MetadataData, LevelProperty.levelPropNameColumn); if (dataRow == null) { return(null); } int num = 0; DataRow[] internalCollection = this.internalCollection; for (int i = 0; i < internalCollection.Length; i++) { DataRow dataRow2 = internalCollection[i]; if (dataRow2 == dataRow) { break; } num++; } return(LevelPropertyCollectionInternal.GetLevelPropertyByRow(base.Connection, dataRow, this.parentLevel, num)); }
public LevelProperty this[int index] { get { if (index < 0 || index >= this.Count) { throw new ArgumentOutOfRangeException("index"); } DataRow row = this.internalCollection[index]; return(LevelPropertyCollectionInternal.GetLevelPropertyByRow(base.Connection, row, this.parentLevel, index)); } }
internal LevelPropsEnumerator(LevelPropertyCollectionInternal levelProperties) { this.levelProperties = levelProperties; this.currentIndex = -1; }
internal LevelPropertyCollection(AdomdConnection connection, Level parentLevel) { this.levelPropertyCollectionInternal = new LevelPropertyCollectionInternal(connection, parentLevel); }