internal int EstimatedXmlStringSize()
{
int bytes = 100;
for (int i = 0; i < Tables.Count; i++)
{
int rowBytes = (Tables[i].TableName.Length + 4) << 2;
DataTable table = Tables[i];
for (int j = 0; j < table.Columns.Count; j++)
{
rowBytes += ((table.Columns[j].ColumnName.Length + 4) << 2);
rowBytes += 20;
}
bytes += table.Rows.Count * rowBytes;
}
return bytes;
}