Exist() public static method

public static Exist ( string DirName, string EntryPattern ) : bool
DirName string
EntryPattern string
return bool
Beispiel #1
0
 public override void SetPrefix(string prefix)
 {
     if (DirPattern.Exist(prefix, @"[0-9][0-9][0-9][0-9]", @"([0-9][0-9][0-9][0-9])\.png"))
     {
         Global.Debugf("info", "selecting OldBookStore");
         p = new OldBookStore();
     }
     else
     {
         Global.Debugf("info", "selecting (new) BookStore");
         p = new BookStore();
     }
     p.SetPrefix(prefix);
 }