Esempio n. 1
0
        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));
        }
Esempio n. 2
0
 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));
     }
 }