YamlAliases.

SerializeYamlToFile<T>(ICakeContext, FilePath, T, SerializeYamlSettings) Method

Summary

Serializes an object to a YAML file.
Assembly
Cake.Yaml.dll
Namespace
Cake.Yaml
Containing Type
YamlAliases

Syntax

public static void SerializeYamlToFile<T>(this ICakeContext context, FilePath filename, T instance, SerializeYamlSettings settings)

Attributes

Type Description
CakeMethodAliasAttribute

Type Parameters

Name Description
T The type of object to serialize.

Parameters

Name Type Description
context ICakeContext The context.
filename FilePath The filename to serialize to.
instance T The object to serialize.
settings SerializeYamlSettings The SerializeYamlSettings that will be used to build the serializer.

Return Value

Type Description
void