Monobjc.Tools.PropertyList.PListDocument.WriteToFile C# (CSharp) Method

WriteToFile() public method

Writes this instance to a file.
public WriteToFile ( String path ) : void
path String The path.
return void
        public void WriteToFile(String path)
        {
            XmlWriterSettings settings = new XmlWriterSettings {CloseOutput = true, Indent = true};
            using (XmlWriter writer = XmlWriter.Create(path, settings))
            {
                this.WriteXml(writer);
            }
        }

Usage Example

Exemplo n.º 1
0
 public void WriteInfoPList(PListDocument document)
 {
     String path = Path.Combine(this.ContentsDirectory, "Info.plist");
     document.WriteToFile(path);
 }