public static ReactivePropertyValidator <string> IfUncPath(this ReactivePropertyValidator <string> This, string errorMessage)
 {
     return(This.IfTrue(str => str.StartsWith(@"\\", StringComparison.Ordinal), errorMessage));
 }
 public static ReactivePropertyValidator <string> DirectoryExists(this ReactivePropertyValidator <string> This, string errorMessage)
 {
     return(This.IfFalse(Directory.Exists, errorMessage));
 }
 public static ReactivePropertyValidator <string> IfNullOrEmpty(this ReactivePropertyValidator <string> This, string errorMessage)
 {
     return(This.IfTrue(String.IsNullOrEmpty, errorMessage));
 }
 public static ReactivePropertyValidator <string> IfPathNotRooted(this ReactivePropertyValidator <string> This, string errorMessage)
 {
     return(This.IfFalse(Path.IsPathRooted, errorMessage));
 }
        public static ReactivePropertyValidator <string> IfNotMatch(this ReactivePropertyValidator <string> This, string pattern, string errorMessage)
        {
            var regex = new Regex(pattern);

            return(This.IfFalse(regex.IsMatch, errorMessage));
        }