Table of Contents

Method Serialize

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Serialize<T>(TextWriter, T)

Serializes object to the specified TextWriter.

public static void Serialize<T>(TextWriter writer, T obj)

Parameters

writer TextWriter

TextWriter object.

obj T

Object to serialize.

Type Parameters

T

Type 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

filename string

Path to file.

obj T

Object to serialize.

Returns

bool

Type Parameters

T

Type of the serialized object.