public XmlSchemaWriter (DataSet dataset,
XmlWriter writer, DataTableCollection tables,
DataRelationCollection relations)
{
dataSetName = dataset.DataSetName;
dataSetNamespace = dataset.Namespace;
#if NET_2_0
dataSetLocale = dataset.LocaleSpecified ? dataset.Locale : null;
#else
dataSetLocale = dataset.Locale;
#endif
dataSetProperties = dataset.ExtendedProperties;
w = writer;
if (tables != null) {
this.tables = new DataTable[tables.Count];
for(int i=0;i<tables.Count;i++) this.tables[i] = tables[i];
}
if (relations != null) {
this.relations = new DataRelation[relations.Count];
for(int i=0;i<relations.Count;i++) this.relations[i] = relations[i];
}
}