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

◆ WriteXml() [4/9]

void System.Data.DataSet.WriteXml ( string fileName,
XmlWriteMode mode )
inline

Definition at line 2432 of file DataSet.cs.

2433 {
2434 long scopeId = DataCommonEventSource.Log.EnterScope("<ds.DataSet.WriteXml|API> {0}, fileName='{1}', mode={2}", ObjectID, fileName, (int)mode);
2436 try
2437 {
2439 xmlTextWriter.WriteStartDocument(standalone: true);
2440 if (mode == XmlWriteMode.DiffGram)
2441 {
2442 new NewDiffgramGen(this).Save(xmlTextWriter);
2443 }
2444 else
2445 {
2446 new XmlDataTreeWriter(this).Save(xmlTextWriter, mode == XmlWriteMode.WriteSchema);
2447 }
2448 xmlTextWriter.WriteEndDocument();
2449 }
2450 finally
2451 {
2452 xmlTextWriter.Close();
2453 DataCommonEventSource.Log.ExitScope(scopeId);
2454 }
2455 }

References System.Runtime.Serialization.Dictionary, System.Data.DataCommonEventSource.Log, System.Data.DataSet.ObjectID, System.Data.NewDiffgramGen.Save(), and System.Data.XmlDataTreeWriter.Save().