static public void SaveToBinFile(String fileName, T_DictFile dictFile) { Stream s = CSerialization.SerializeBinary(dictFile); s.Position = 0; CFile.WriteStream(fileName, (MemoryStream)s); }
public void Save(String fileName) { Stream s = CSerialization.SerializeBinary(_Traffic); s.Position = 0; CFile.WriteStream(fileName, (MemoryStream)s); }