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

IsNullOrEmpty() public static method

${WP_core_Rectangle2D_method_IsNullOrEmpty_D}
public static IsNullOrEmpty ( Rectangle2D rect ) : bool
rect Rectangle2D ${WP_core_Rectangle2D_method_IsNullOrEmpty_param_rect}
return bool
        public static bool IsNullOrEmpty(Rectangle2D rect)
        {
            if (rect == null)
            {
                return true;
            }
            if (rect._x.ValueCheck() && rect._y.ValueCheck() && rect._width.ValueCheck() && rect._height.ValueCheck())
            {
                return false;
            }
            if (rect._width < 0.0 || rect._height < 0.0)
            {
                return true;
            }
            return true;
        }