System.Yaml.YamlNode.ToYamlFile C# (CSharp) Méthode

ToYamlFile() public méthode

Convert YamlNode to a YAML text and save it to the file.
public ToYamlFile ( string FileName, YamlConfig config ) : void
FileName string Name of the file to output
config YamlConfig YAML configuration to customize serialization.
Résultat void
        public void ToYamlFile(string FileName, YamlConfig config)
        {
            using ( var s = new FileStream(FileName, FileMode.Create) )
                DefaultPresenter.ToYaml(s, this, config);
        }

Same methods

YamlNode::ToYamlFile ( string FileName ) : void