///<summary>Checks whether the geometry buffer is valid, and returns an error message if not.
        ///</summary>
        /// <param name="g"></param>
        /// <param name="distance"></param>
        /// <param name="result"></param>
        /// <returns>An appropriate error message<br/>
        /// or <c>null</c>if the buffer is valid</returns>
        ///
        public static String IsValidMessage(IGeometry g, double distance, IGeometry result)
        {
            var validator = new BufferResultValidator(g, distance, result);

            if (!validator.IsValid())
            {
                return(validator.ErrorMessage);
            }
            return(null);
        }
        public static bool IsValid(IGeometry g, double distance, IGeometry result)
        {
            BufferResultValidator validator = new BufferResultValidator(g, distance, result);

            if (validator.IsValid())
            {
                return(true);
            }
            return(false);
        }