Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ CreateWriter() [2/4]

XmlWriter System.Xml.XmlWriterSettings.CreateWriter ( string outputFileName)
inlinepackage

Definition at line 414 of file XmlWriterSettings.cs.

415 {
416 if (outputFileName == null)
417 {
418 throw new ArgumentNullException("outputFileName");
419 }
421 if (!xmlWriterSettings.CloseOutput)
422 {
425 }
426 FileStream fileStream = null;
427 try
428 {
429 fileStream = new FileStream(outputFileName, FileMode.Create, FileAccess.Write, FileShare.Read, 4096, _useAsync);
430 return xmlWriterSettings.CreateWriter(fileStream);
431 }
432 catch
433 {
434 fileStream?.Dispose();
435 throw;
436 }
437 }

References System.Xml.XmlWriterSettings._useAsync, and System.Xml.Dictionary.

Referenced by System.Xml.XmlWriter.Create(), System.Xml.XmlWriter.Create(), System.Xml.XmlWriter.Create(), System.Xml.XmlWriter.Create(), and System.Xml.XmlWriter.Create().