public MiningDistribution this[int index]
 {
     get
     {
         if (index < 0 || index >= this.Count)
         {
             throw new ArgumentOutOfRangeException("index");
         }
         DataRow            row = this.internalCollection[index];
         MiningDistribution miningDistribution;
         if (this.internalObjectCollection[index] == null)
         {
             miningDistribution = MiningDistributionCollectionInternal.GetMiningDistributionByRow(this.connection, row, this.parentNode);
             this.internalObjectCollection[index] = miningDistribution;
             miningDistribution.ordinal           = index;
         }
         else
         {
             miningDistribution = (MiningDistribution)this.internalObjectCollection[index];
         }
         return(miningDistribution);
     }
 }
示例#2
0
 internal MiningDistributionCollection(AdomdConnection connection, MiningContentNode parentNode, DataRow[] rows)
 {
     this.miningDistributionCollectionInternal = new MiningDistributionCollectionInternal(connection, parentNode, rows);
 }
 internal MiningDistributionsEnumerator(MiningDistributionCollectionInternal miningDistributions)
 {
     this.miningDistributions = miningDistributions;
     this.currentIndex        = -1;
 }