BrawlCrate v0.41
Wii File Editor
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
BrawlLib.Internal.Serializer Class Reference

Static Public Member Functions

static void SerializeObject (string filename, ISerializable obj)
 
static ISerializable DeserializeObject (string filename)
 

Member Function Documentation

◆ 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: