public override bool isValid() { // filter if there are no files if (!Filenames.Any()) { return(false); } // filter if there is only one file with no name if (Filenames.Count == 1 && Filenames[0] == string.Empty) { return(false); } return(true); }
public override bool isValid() { return(Filenames.Any(str => !String.IsNullOrWhiteSpace(str))); }