Exemplo n.º 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;
            }
        }
Exemplo n.º 2
0
 /// <summary> 
 /// Returns the descriptor for the region with the given handle.
 /// </summary>
 /// <param name="handle">the handle of the region
 /// </param>
 /// <returns> the region descriptor, or <code>null</code> if no such
 /// descriptor exists
 /// </returns>
 public virtual RegionDescriptor GetRegionDescriptor(IRegionHandle handle)
 {
     //UPGRADE_TODO: Method 'java.util.HashMap.get' was converted to 'System.Collections.Hashtable.Item' which has a different behavior. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1073_javautilHashMapget_javalangObject_3"'
     return (RegionDescriptor)regionHandleDescriptorMap[handle];
 }