YamlAliases.

SerializeYamlToFile<T>(ICakeContext, FilePath, T) 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)

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.

Return Value

Type Description
void