◆ DeserializeObject()
static ISerializable BrawlLib.Internal.Serializer.DeserializeObject |
( |
string |
filename | ) |
|
|
inlinestatic |
158 {
159 Stream stream = File.Open(filename, FileMode.Open);
160 BinaryFormatter bFormatter = new BinaryFormatter();
161 ISerializable obj = (ISerializable) bFormatter.Deserialize(stream);
162 stream.Close();
163 return obj;
164 }
◆ SerializeObject()
static void BrawlLib.Internal.Serializer.SerializeObject |
( |
string |
filename, |
|
|
ISerializable |
obj |
|
) |
| |
|
inlinestatic |
150 {
151 Stream stream = File.Open(filename, FileMode.Create);
152 BinaryFormatter bFormatter = new BinaryFormatter();
153 bFormatter.Serialize(stream, obj);
154 stream.Close();
155 }
The documentation for this class was generated from the following file:
- BrawlLib/Internal/ViewerSettingsFile.cs