public static void Save(CRoot root, string Path) { root.ClearContent(); using (FileStream fs = new FileStream(Path, FileMode.Create)) { BinaryFormatter formatter = new BinaryFormatter(); formatter.Serialize(fs, root); } }
public static void Save(CRoot root) { root.ClearContent(); using (FileStream fs = new FileStream(AppDomain.CurrentDomain.BaseDirectory + "Data.dat", FileMode.Create)) { BinaryFormatter formatter = new BinaryFormatter(); formatter.Serialize(fs, root); } }
public SearchEngine(CRoot root, SearchPosition sp, string keyword) { Root = root; SP = sp; Keyword = keyword; }