Method Serialize
Serialize<T>(TextWriter, T)
Serializes object to the specified TextWriter.
public static void Serialize<T>(TextWriter writer, T obj)
Parameters
writerTextWriterTextWriter object.
objTObject to serialize.
Type Parameters
TType of the serialized object.
Serialize<T>(string, T)
Serializes object to the specified file without throwing exceptions.
public static bool Serialize<T>(string filename, T obj)
Parameters
filenamestringPath to file.
objTObject to serialize.
Returns
Type Parameters
TType of the serialized object.