System.Data.Tests.DataTableTest4.XmlTest4 C# (CSharp) Метод

XmlTest4() приватный Метод

private XmlTest4 ( ) : void
Результат void
        public void XmlTest4()
        {
            MakeParentTable1();

            using (FileStream stream = new FileStream(_tempFile, FileMode.Create))
            {
                //Here the table belong to a dataset
                //Write the Xml and the Schema
                _parentTable1.WriteXml(stream, XmlWriteMode.WriteSchema);
            }

            DataTable table = new DataTable("ParentTable");
            //Read the Xml and the Schema into a table which already belongs to a DataSet
            //and the table name matches with the table in the source XML 
            table.ReadXml(_tempFile);
            VerifyTableSchema(table, _parentTable1.TableName, null);
        }