コード例 #1
0
        /// <summary>
        /// Returns a collection of Measure objects filtered by the parent table's name.
        /// </summary>
        /// <param name="tableName"></param>
        /// <returns>MeasureCollection</returns>
        public MeasureCollection FilterByTableName(string tableName)
        {
            MeasureCollection returnMeasures = new MeasureCollection();

            foreach (Measure measure in this)
            {
                if (measure.TableName == tableName)
                {
                    returnMeasures.Add(measure);
                }
            }
            return(returnMeasures);
        }