Serialize(Object?, Type, YamlSerializerOptions?) Method

Definition

Namespace SharpYaml
Assembly SharpYaml.dll

Serializes a value into YAML text using an explicit input type.

public static string Serialize(object? value, Type inputType, YamlSerializerOptions? options = null)

Parameters

value
Object

The value to serialize.

inputType
Type

The declared input type.

options
YamlSerializerOptions

The serializer options. If null, Default is used.

Returns

String
A YAML payload.