public void WriteXmlSchema (XmlWriter writer)
{
DataSet ds = DataSet;
DataSet tmp = null;
try {
if (ds == null) {
tmp = ds = new DataSet ();
ds.Tables.Add (this);
}
DataTableCollection col = new DataTableCollection (ds);
col.Add (this);
XmlSchemaWriter.WriteXmlSchema (ds, writer, col, null);
} finally {
if (tmp != null)
ds.Tables.Remove (this);
}
}