Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ InferSchema()

void System.Data.DataSet.InferSchema ( XmlDocument xdoc,
string[] excludedNamespaces,
XmlReadMode mode )
inlinepackage

Definition at line 1940 of file DataSet.cs.

1941 {
1942 long scopeId = DataCommonEventSource.Log.EnterScope("<ds.DataSet.InferSchema|INFO> {0}, mode={1}", ObjectID, mode);
1943 try
1944 {
1945 if (excludedNamespaces == null)
1946 {
1947 excludedNamespaces = Array.Empty<string>();
1948 }
1949 XmlNodeReader instanceDocument = new XmlIgnoreNamespaceReader(xdoc, excludedNamespaces);
1952 xmlSchemaInference.TypeInference = ((mode != XmlReadMode.InferTypedSchema) ? XmlSchemaInference.InferenceOption.Relaxed : XmlSchemaInference.InferenceOption.Restricted);
1954 xmlSchemaSet.Compile();
1955 XSDSchema xSDSchema = new XSDSchema();
1957 try
1958 {
1959 xSDSchema.LoadSchema(xmlSchemaSet, this);
1960 }
1961 finally
1962 {
1964 }
1965 }
1966 finally
1967 {
1968 DataCommonEventSource.Log.ExitScope(scopeId);
1969 }
1970 }

References System.Runtime.Serialization.Dictionary, System.Data.DataCommonEventSource.Log, and System.Data.DataSet.ObjectID.