Interface ISerializableData
Defines methods for serializing an object into a binary format. Implementers of this interface provide mechanisms to convert an object's state into a binary representation, which can be stored or transmitted.
public interface ISerializableData
Methods
- Serialize()
Serializes an instance into a binary format and returns the resulting data as a byte array.
- Serialize(Stream)
Serializes this instance into a binary format and writes it to the specified stream.
- Serialize(string)
Serializes this instance into a binary format and writes it to the specified file path. This method converts the current instance into its binary representation and writes the data to a file at the given path.