src/Cake.Yaml/YamlAliases.cs
/// <summary>
/// Deserializes the YAML from a file.
/// </summary>
/// <returns>The Deserialized Object.</returns>
/// <param name="context">The context.</param>
/// <param name="filename">The YAML filename.</param>
/// <param name="settings">The <see cref="DeserializeYamlSettings"/> that will be used to build the deserializer.</param>
/// <typeparam name="T">The type to deserialize to.</typeparam>
Deserializes the YAML from a file.
Deserializes the YAML from a file .
[CakeMethodAlias]
        public static T DeserializeYamlFromFile<T>(this ICakeContext context, FilePath filename, DeserializeYamlSettings settings)
        {
            T result = default(T);
            var d = BuildDeserializer(settings);
            using (var tr = File.OpenText(filename.MakeAbsolute(context.Environment).FullPath))
            {
                var reader = new MergingParser(new Parser(tr));
                result = d.Deserialize<T>(reader);
            }
            return result;
        }
[ CakeMethodAlias ] public static T DeserializeYamlFromFile < T > ( this ICakeContext context , FilePath filename , DeserializeYamlSettings settings ) { T result = default ( T ) ; var d = BuildDeserializer ( settings ) ; using ( var tr = File . OpenText ( filename . MakeAbsolute ( context . Environment ) . FullPath ) ) { var reader = new MergingParser ( new Parser ( tr ) ) ; result = d . Deserialize < T > ( reader ) ; } return result ; }
Deserializes the YAML from a file.
Deserializes the YAML from a file .
The Deserialized Object.
The Deserialized Object .
ICakeContext
this
filename
FilePath
The YAML filename.
The YAML filename .
settings
DeserializeYamlSettings
The  that will be used to build the deserializer.
The that will be used to build the deserializer .
context
None
typeparam
The type to deserialize to.
The type to deserialize to .