SuperMap.WinRT.Core.Rectangle2D.IsNullOrEmpty C# (CSharp) Method

IsNullOrEmpty() public static method

${core_Rectangle2D_method_IsNullOrEmpty_D}
public static IsNullOrEmpty ( Rectangle2D rect ) : bool
rect Rectangle2D ${core_Rectangle2D_method_IsNullOrEmpty_param_rect}
return bool
        public static bool IsNullOrEmpty(Rectangle2D rect)
        {
            if (rect == null)
            {
                return true;
            }
            if (rect._x == double.NegativeInfinity || rect._y == double.NegativeInfinity || rect._width == double.NegativeInfinity || rect._height == double.NegativeInfinity)
            {
                return true;
            }
            if (rect._width < 0.0 || rect._height < 0.0)
            {
                return true;
            }
            return false;
        }