コード例 #1
0
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="pHandle">the handle of the region
        /// </param>
        /// <param name="pDimensions">the dimensions of the region
        /// </param>
        public RegionDescriptor(IRegionHandle pHandle, IDimensionHandleSet pDimensions)
        {
            handle     = pHandle;
            dimensions = pDimensions;

            //UPGRADE_TODO: Class 'java.util.HashMap' was converted to 'System.Collections.Hashtable' which has a different behavior. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1073_javautilHashMap_3"'
            dimensionRangeBoundsMap = new System.Collections.Hashtable();

            System.Collections.IEnumerator it = dimensions.GetEnumerator();

            //UPGRADE_TODO: Method 'java.util.Iterator.hasNext' was converted to 'System.Collections.IEnumerator.MoveNext' which has a different behavior. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1073_javautilIteratorhasNext_3"'
            while (it.MoveNext())
            {
                RangeBounds rb = new RangeBounds(System.Int64.MinValue, System.Int64.MaxValue);
                dimensionRangeBoundsMap[(IDimensionHandle)it.Current] = rb;
            }
        }