예제 #1
0
 /// <summary>
 ///  Adds a dimension descriptor.
 /// </summary>
 /// <param name="dd">the dimension descriptor to Add
 /// </param>
 public virtual void AddDimensionDescriptor(DimensionDescriptor dd)
 {
     dimensionNameDescriptorMap[dd.Name] = dd;
     dimensionHandleDescriptorMap[dd.Handle] = dd;
 }
예제 #2
0
        /// <summary> 
        /// Removes a dimension descriptor.
        /// </summary>
        /// <param name="dd">the dimension descriptor to Remove
        /// </param>
        public virtual void RemoveDimensionDescriptor(DimensionDescriptor dd)
        {
            if (dimensionNameDescriptorMap[dd.Name] == dd)
            {
                dimensionNameDescriptorMap.Remove(dd.Name);
            }

            if (dimensionHandleDescriptorMap[dd.Handle] == dd)
            {
                dimensionHandleDescriptorMap.Remove(dd.Handle);
            }
        }