This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.Yaml.
Summary
Serializes an object to a YAML string.
- Assembly
- Cake
.Yaml .dll - Namespace
- Cake
.Yaml - Containing Type
- YamlAliases
Syntax
public static string SerializeYaml<T>(this ICakeContext context, T instance, SerializeYamlSettings settings)
Attributes
| Type | Description |
|---|---|
| Cake |
Type Parameters
| Name | Description |
|---|---|
| T | The type of object to serialize. |
Parameters
| Name | Type | Description |
|---|---|---|
| context | ICakeContext | The context. |
| instance | T | The object to serialize. |
| settings | Serialize |
The SerializeYamlSettings that will be used to build the serializer. |
Return Value
| Type | Description |
|---|---|
| string | The YAML string. |
