Static class for serializing objects to binary files.
More...
List of all members.
Static Public Member Functions |
static bool | CanWrite (string filename) |
| Determine whether we can write our data to the disk.
|
static ISerializable | Deserialize (string filename) |
| Deserialize an object from a binary file.
|
static void | Serialize (this ISerializable object_to_serialize, string filename) |
| Serialize the specified object to a binary file.
|
static bool | Should (IMapping user_mapping, IMapping item_mapping) |
| Determine from the mapping objects whether we should serialize the data or not.
|
Detailed Description
Static class for serializing objects to binary files.
Member Function Documentation
static bool CanWrite |
( |
string |
filename | ) |
[inline, static] |
Determine whether we can write our data to the disk.
- Returns:
true
if we can write to filename; otherwise, false
- Parameters:
-
filename | name of the file to write to |
static ISerializable Deserialize |
( |
string |
filename | ) |
[inline, static] |
Deserialize an object from a binary file.
- Parameters:
-
filename | name of the file to load from |
static void Serialize |
( |
this ISerializable |
object_to_serialize, |
|
|
string |
filename |
|
) |
| [inline, static] |
Serialize the specified object to a binary file.
- Parameters:
-
object_to_serialize | object to serialize |
filename | name of the file to save to |
Determine from the mapping objects whether we should serialize the data or not.
- Returns:
true
if we should serialize; otherwise, false
- Parameters:
-
user_mapping | user ID mapping |
item_mapping | item ID mapping |
The documentation for this class was generated from the following file: