Пример #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));
        }
Пример #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));
     }
 }
Пример #3
0
 internal LevelPropsEnumerator(LevelPropertyCollectionInternal levelProperties)
 {
     this.levelProperties = levelProperties;
     this.currentIndex    = -1;
 }
Пример #4
0
 internal LevelPropertyCollection(AdomdConnection connection, Level parentLevel)
 {
     this.levelPropertyCollectionInternal = new LevelPropertyCollectionInternal(connection, parentLevel);
 }