fs4net.Framework.Impl.FilenameParser.ValidateWhiteSpaces C# (CSharp) Метод

ValidateWhiteSpaces() приватный Метод

private ValidateWhiteSpaces ( ) : void
Результат void
        private void ValidateWhiteSpaces()
        {
            _validator.Ensure<InvalidPathException>(!_filename.IsEmpty(), "The filename of the path '{0}' is empty.");
            if (_validator.HasError) return; // To avoid empty string logic below
            _validator.Ensure<InvalidPathException>(!Char.IsWhiteSpace(_filename.Last()), "The filename of the path '{0}' ends with a whitespace which is not allowed.");
            _validator.Ensure<InvalidPathException>(!_filename.EndsWith("."), "The path '{0}' has an empty extension, which is not allowed.");
        }