UtilSerializationSerializeT(T, SerializationFormat, Encoding) Method

Serializes the data of an Object to a String representation using the specified serialization format.

Definition

Namespace: DevCase.Core.DataProcessing.Serialization
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static string Serialize<T>(
	T obj,
	SerializationFormat format,
	Encoding enc = null
)

Parameters

obj  T
The object to be serialized.
format  SerializationFormat
The serialization format.
enc  Encoding  (Optional)
The Encoding to use for writing the.

Type Parameters

T
The type.

Return Value

String
The resulting String representation of the serialized Object.

Example

This is a code example for Binary serialization.
C#
No code example is currently available or this language may not be supported.

See Also