Definition at line 5266 of file DataTable.cs.
5267 {
5270 try
5271 {
5272 disposable = TypeLimiter.EnterRestrictedScope(
this);
5273 bool flag = false;
5276 int depth = -1;
5279 if (reader == null)
5280 {
5281 return result;
5282 }
5285 {
5288 }
5289 else
5290 {
5293 }
5295 {
5297 }
5300 {
5301 depth = reader.
Depth;
5302 }
5305 {
5307 return result;
5308 }
5311 {
5314 {
5317 }
5318 else
5319 {
5320 if (reader.
LocalName ==
"diffgram" && reader.
NamespaceURI ==
"urn:schemas-microsoft-com:xml-diffgram-v1")
5321 {
5323 {
5325 {
5327 {
5330 }
5331 throw ExceptionBuilder.DataTableInferenceNotSupported();
5332 }
5335 }
5336 else
5337 {
5339 }
5341 return result;
5342 }
5344 {
5346 {
5348 }
5349 else
5350 {
5352 }
5354 return result;
5355 }
5357 {
5359 {
5361 }
5362 else
5363 {
5365 }
5367 return result;
5368 }
5370 {
5372 {
5374 }
5375 else
5376 {
5378 }
5379 throw ExceptionBuilder.DataSetUnsupportedSchema("http://www.w3.org/2001/XMLSchema");
5380 }
5383 {
5385 for (
int i = 0;
i < attributeCount;
i++)
5386 {
5388 if (reader.
NamespaceURI.Equals(
"http://www.w3.org/2000/xmlns/"))
5389 {
5391 continue;
5392 }
5396 }
5397 }
5399 }
5401 {
5403 {
5405 {
5407 flag = true;
5409 }
5410 else
5411 {
5413 }
5414 continue;
5415 }
5417 {
5419 {
5421 flag = true;
5422 }
5423 else
5424 {
5426 }
5427 continue;
5428 }
5429 if (reader.
LocalName ==
"diffgram" && reader.
NamespaceURI ==
"urn:schemas-microsoft-com:xml-diffgram-v1")
5430 {
5432 {
5434 {
5436 {
5439 }
5440 throw ExceptionBuilder.DataTableInferenceNotSupported();
5441 }
5444 }
5445 else
5446 {
5448 }
5449 continue;
5450 }
5452 {
5454 {
5456 }
5457 else
5458 {
5460 }
5461 throw ExceptionBuilder.DataSetUnsupportedSchema("http://www.w3.org/2001/XMLSchema");
5462 }
5464 {
5466 continue;
5467 }
5470 {
5473 continue;
5474 }
5476 {
5477 throw ExceptionBuilder.DataTableInferenceNotSupported();
5478 }
5480 {
5482 }
5484 }
5488 {
5490 }
5491 switch (mode)
5492 {
5495 return result;
5498 {
5499 throw ExceptionBuilder.DataTableInferenceNotSupported();
5500 }
5501 break;
5502 }
5503 }
5505 return result;
5506 }
5507 finally
5508 {
5510 }
5511 }
void RestoreEnforceConstraints(bool value)
bool IsEmptyXml(XmlReader reader)
void ReadXmlSchema(Stream? stream)
void ReadXmlDiffgram(XmlReader reader)
DataColumnCollection Columns
void RestoreConstraint(bool originalEnforceConstraint)
void ReadEndElement(XmlReader reader)
void ReadXDRSchema(XmlReader reader)
bool MoveToElement(XmlReader reader, int depth)
string? GetAttribute(string name)
bool MoveToAttribute(string name)
virtual bool HasAttributes
virtual XmlNodeType MoveToContent()
References System.Data.DataTable._enforceConstraints, System.Xml.XmlReader.AttributeCount, System.Data.DataTable.Columns, System.Data.InternalDataCollectionBase.Count, System.Data.ExceptionBuilder.DataSetUnsupportedSchema(), System.Data.ExceptionBuilder.DataTableInferenceNotSupported(), System.Xml.XmlReader.Depth, System.Runtime.Serialization.Dictionary, System.Data.DataSet.EnforceConstraints, System.Data.DataTable.EnforceConstraints, System.Data.TypeLimiter.EnterRestrictedScope(), System.Xml.XmlReader.GetAttribute(), System.Xml.XmlReader.HasAttributes, System.Xml.XmlReader.IsEmptyElement, System.Data.DataTable.IsEmptyXml(), System.Xml.XmlReader.LocalName, System.Xml.XmlReader.MoveToAttribute(), System.Xml.XmlReader.MoveToContent(), System.Data.DataTable.MoveToElement(), System.Xml.XmlReader.Name, System.Xml.XmlReader.NamespaceURI, System.Xml.XmlReader.NodeType, System.Xml.XmlReader.Prefix, System.Xml.XmlReader.Read(), System.Data.DataTable.ReadEndElement(), System.Data.DataTable.ReadXDRSchema(), System.Data.DataTable.ReadXmlDiffgram(), System.Data.DataTable.ReadXmlSchema(), System.Data.DataTable.RestoreConstraint(), System.Data.DataSet.RestoreEnforceConstraints(), and System.Xml.XmlReader.Skip().