public XmlSchemaWriter (XmlWriter writer,
DataTable[] tables,
DataRelation[] relations,
string mainDataTable,
string dataSetName,
CultureInfo locale)
{
w = writer;
this.tables = tables;
this.relations = relations;
this.mainDataTable = mainDataTable;
this.dataSetName = dataSetName;
this.dataSetLocale = locale;
this.dataSetProperties = new PropertyCollection();
if (tables[0].DataSet != null) {
dataSetNamespace = tables[0].DataSet.Namespace;
#if !NET_2_0
dataSetLocale = tables[0].DataSet.Locale;
#endif
} else {
dataSetNamespace = tables[0].Namespace;
#if !NET_2_0
dataSetLocale = tables[0].Locale;
#endif
}
}