Ejemplo n.º 1
0
 public void SerializeObject(string filename, IndexBuilder objectToSerialize)
 {
     Stream stream = File.Open(filename, FileMode.Create);
     BinaryFormatter bFormatter = new BinaryFormatter();
     bFormatter.Serialize(stream, objectToSerialize);
     stream.Close();
 }
Ejemplo n.º 2
0
 // allows for serialization of bible index
 private data_index.IndexBuilder loadIndex(bible_data.Bible Bible)
 {
     string indexFileName = Bible.BibleVersion + ".index";
     data_index.IndexReaderWriter indexStorage = new data_index.IndexReaderWriter();
     data_index.IndexBuilder index = new data_index.IndexBuilder(Bible);
     return index;
 }