Serialize(T, YamlTypeInfo) Method

Definition

Namespace SharpYaml
Assembly SharpYaml.dll

Serializes a value using explicit type metadata.

public static string Serialize<T>(T value, YamlTypeInfo<T> typeInfo)

Type parameters

T
The represented CLR type.

Parameters

value
{T}

The value to serialize.

typeInfo
YamlTypeInfo<T>

The metadata used for serialization.

Returns

String
A YAML payload.