From 031368a853f7ca662649fbdac9220b89f222a087 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20Cant=C3=BA?= Date: Thu, 27 Aug 2020 13:03:46 -0700 Subject: [PATCH] Port nullability annotations to System.Xml.ReaderWriter contract (#41083) * Port nullability annotations to System.Xml.ReaderWriter contract assembly * Port annotations of recently updated members in Xml/Serialization * Fix anontations on XmlElement discovered while updating System.Data.Common Xml related annotations * Fix Xml related annotations on System.Data.Common * address feedback Co-authored-by: Krzysztof Wicher --- .../src/System/Data/Common/ObjectStorage.cs | 4 +- .../src/System/Data/Common/SqlUDTStorage.cs | 4 +- .../System.Data.Common/src/System/Data/DataSet.cs | 34 +- .../src/System/Data/DataTable.cs | 8 +- .../src/System/Data/SQLTypes/SQLBinary.cs | 2 +- .../src/System/Data/SQLTypes/SQLBoolean.cs | 2 +- .../src/System/Data/SQLTypes/SQLByte.cs | 2 +- .../src/System/Data/SQLTypes/SQLBytes.cs | 2 +- .../src/System/Data/SQLTypes/SQLChars.cs | 2 +- .../src/System/Data/SQLTypes/SQLDateTime.cs | 2 +- .../src/System/Data/SQLTypes/SQLDecimal.cs | 2 +- .../src/System/Data/SQLTypes/SQLDouble.cs | 2 +- .../src/System/Data/SQLTypes/SQLGuid.cs | 2 +- .../src/System/Data/SQLTypes/SQLInt16.cs | 2 +- .../src/System/Data/SQLTypes/SQLInt32.cs | 2 +- .../src/System/Data/SQLTypes/SQLInt64.cs | 2 +- .../src/System/Data/SQLTypes/SQLMoney.cs | 2 +- .../src/System/Data/SQLTypes/SQLSingle.cs | 2 +- .../src/System/Data/SQLTypes/SQLString.cs | 2 +- .../src/System/Data/SQLTypes/SqlXml.cs | 2 +- .../src/System/Data/SimpleType.cs | 14 +- .../System.Data.Common/src/System/Data/xmlsaver.cs | 38 +- .../src/System/Xml/Core/XmlWriter.cs | 4 +- .../src/System/Xml/Core/XmlWriterAsync.cs | 4 +- .../src/System/Xml/Dom/XmlElement.cs | 8 +- .../ref/System.Xml.ReaderWriter.cs | 1053 ++++++++++---------- .../ref/System.Xml.ReaderWriter.csproj | 1 + .../src/System.Xml.ReaderWriter.csproj | 1 + 28 files changed, 621 insertions(+), 584 deletions(-) diff --git a/src/libraries/System.Data.Common/src/System/Data/Common/ObjectStorage.cs b/src/libraries/System.Data.Common/src/System/Data/Common/ObjectStorage.cs index 6e16308..80bc06a 100644 --- a/src/libraries/System.Data.Common/src/System/Data/Common/ObjectStorage.cs +++ b/src/libraries/System.Data.Common/src/System/Data/Common/ObjectStorage.cs @@ -355,10 +355,10 @@ namespace System.Data.Common if (null == xmlAttrib) { // this means type implements IXmlSerializable Type? type = null; - string typeName = xmlReader.GetAttribute(Keywords.MSD_INSTANCETYPE, Keywords.MSDNS); + string? typeName = xmlReader.GetAttribute(Keywords.MSD_INSTANCETYPE, Keywords.MSDNS); if (typeName == null || typeName.Length == 0) { // No CDT polumorphism - string xsdTypeName = xmlReader.GetAttribute(Keywords.TYPE, Keywords.XSINS); // this xsd type: Base type polymorphism + string? xsdTypeName = xmlReader.GetAttribute(Keywords.TYPE, Keywords.XSINS); // this xsd type: Base type polymorphism if (null != xsdTypeName && xsdTypeName.Length > 0) { string[] _typename = xsdTypeName.Split(':'); diff --git a/src/libraries/System.Data.Common/src/System/Data/Common/SqlUDTStorage.cs b/src/libraries/System.Data.Common/src/System/Data/Common/SqlUDTStorage.cs index 2681daf..2d00cd9 100644 --- a/src/libraries/System.Data.Common/src/System/Data/Common/SqlUDTStorage.cs +++ b/src/libraries/System.Data.Common/src/System/Data/Common/SqlUDTStorage.cs @@ -170,10 +170,10 @@ namespace System.Data.Common { if (null == xmlAttrib) { - string typeName = xmlReader.GetAttribute(Keywords.MSD_INSTANCETYPE, Keywords.MSDNS); + string? typeName = xmlReader.GetAttribute(Keywords.MSD_INSTANCETYPE, Keywords.MSDNS); if (typeName == null) { - string xsdTypeName = xmlReader.GetAttribute(Keywords.MSD_INSTANCETYPE, Keywords.XSINS); // this xsd type + string? xsdTypeName = xmlReader.GetAttribute(Keywords.MSD_INSTANCETYPE, Keywords.XSINS); // this xsd type if (null != xsdTypeName) { typeName = XSDSchema.XsdtoClr(xsdTypeName).FullName!; diff --git a/src/libraries/System.Data.Common/src/System/Data/DataSet.cs b/src/libraries/System.Data.Common/src/System/Data/DataSet.cs index e5c7e2a..8089963 100644 --- a/src/libraries/System.Data.Common/src/System/Data/DataSet.cs +++ b/src/libraries/System.Data.Common/src/System/Data/DataSet.cs @@ -181,7 +181,7 @@ namespace System.Data { if (reader.HasAttributes) { - string attribValue = reader.GetAttribute(Keywords.MSD_SCHEMASERIALIZATIONMODE, Keywords.MSDNS); + string? attribValue = reader.GetAttribute(Keywords.MSD_SCHEMASERIALIZATIONMODE, Keywords.MSDNS); if (string.Equals(attribValue, Keywords.MSD_EXCLUDESCHEMA, StringComparison.OrdinalIgnoreCase)) { schemaSerializationMode = SchemaSerializationMode.ExcludeSchema; @@ -1533,7 +1533,7 @@ namespace System.Data XmlDocument xdoc = new XmlDocument(); if (reader.NodeType == XmlNodeType.Element) { - XmlNode node = xdoc.ReadNode(reader); + XmlNode node = xdoc.ReadNode(reader)!; xdoc.AppendChild(node); } else @@ -1693,7 +1693,7 @@ namespace System.Data throw ExceptionBuilder.DataSetUnsupportedSchema(Keywords.XSDNS); } - XmlNode node = xdoc.ReadNode(reader); + XmlNode node = xdoc.ReadNode(reader)!; topNode.AppendChild(node); } @@ -1755,7 +1755,7 @@ namespace System.Data { if (reader.HasAttributes) { - string attribValue = reader.GetAttribute(Keywords.MSD_FRAGMENTCOUNT, Keywords.MSDNS); // this must not move the position + string? attribValue = reader.GetAttribute(Keywords.MSD_FRAGMENTCOUNT, Keywords.MSDNS); // this must not move the position if (!string.IsNullOrEmpty(attribValue)) { schemaFragmentCount = int.Parse(attribValue, null); @@ -1765,7 +1765,7 @@ namespace System.Data while (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI == Keywords.XSDNS) { - XmlSchema s = XmlSchema.Read(reader, null); + XmlSchema s = XmlSchema.Read(reader, null)!; sSet.Add(s); //read the end tag ReadEndElement(reader); @@ -1787,10 +1787,10 @@ namespace System.Data internal void ReadXDRSchema(XmlReader reader) { XmlDocument xdoc = new XmlDocument(); // we may need this to infer the schema - XmlNode schNode = xdoc.ReadNode(reader); + XmlNode schNode = xdoc.ReadNode(reader)!; xdoc.AppendChild(schNode); XDRSchema schema = new XDRSchema(this, false); - DataSetName = xdoc.DocumentElement.LocalName; + DataSetName = xdoc.DocumentElement!.LocalName; schema.LoadSchema((XmlElement)schNode, this); } @@ -2121,7 +2121,7 @@ namespace System.Data if (!fSchemaFound && Tables.Count == 0) { - XmlNode node = xdoc.ReadNode(reader); + XmlNode node = xdoc.ReadNode(reader)!; topNode.AppendChild(node); } else @@ -2177,12 +2177,12 @@ namespace System.Data if (!isEmptyDataSet && !topNodeIsProcessed) { - XmlElement root = xdoc.DocumentElement; + XmlElement root = xdoc.DocumentElement!; Debug.Assert(root.NamespaceURI != null, "root.NamespaceURI should not ne null, it should be empty string"); // just recognize that below given Xml represents datatable in toplevel //text
// only allow root element with simple content, if any - if (root.ChildNodes.Count == 0 || ((root.ChildNodes.Count == 1) && root.FirstChild.GetType() == typeof(System.Xml.XmlText))) + if (root.ChildNodes.Count == 0 || ((root.ChildNodes.Count == 1) && root.FirstChild!.GetType() == typeof(System.Xml.XmlText))) { bool initfTopLevelTable = _fTopLevelTable; // if root element maps to a datatable @@ -2525,7 +2525,7 @@ namespace System.Data if (mode == XmlReadMode.Fragment) { xdoc.AppendChild(xdoc.CreateElement("ds_sqlXmlWraPPeR")); - topNode = xdoc.DocumentElement; + topNode = xdoc.DocumentElement!; } else { @@ -2666,7 +2666,7 @@ namespace System.Data if (mode == XmlReadMode.InferSchema || mode == XmlReadMode.InferTypedSchema) { //save the node in DOM until the end; - XmlNode node = xdoc.ReadNode(reader); + XmlNode node = xdoc.ReadNode(reader)!; topNode.AppendChild(node); } else @@ -3309,7 +3309,7 @@ namespace System.Data const string xsinill = Keywords.XSI + ":" + Keywords.XSI_NIL; if (reader.MoveToAttribute(xsinill)) { - string nilAttrib = reader.GetAttribute(xsinill); + string? nilAttrib = reader.GetAttribute(xsinill); if (string.Equals(nilAttrib, "true", StringComparison.Ordinal)) { // case sensitive true comparison @@ -3321,7 +3321,7 @@ namespace System.Data const string UseDataSetSchemaOnlyString = Keywords.MSD + ":" + Keywords.USEDATASETSCHEMAONLY; if (reader.MoveToAttribute(UseDataSetSchemaOnlyString)) { - string useDataSetSchemaOnly = reader.GetAttribute(UseDataSetSchemaOnlyString); + string? useDataSetSchemaOnly = reader.GetAttribute(UseDataSetSchemaOnlyString); if (string.Equals(useDataSetSchemaOnly, "true", StringComparison.Ordinal) || string.Equals(useDataSetSchemaOnly, "1", StringComparison.Ordinal)) { @@ -3330,14 +3330,14 @@ namespace System.Data else if (!string.Equals(useDataSetSchemaOnly, "false", StringComparison.Ordinal) && !string.Equals(useDataSetSchemaOnly, "0", StringComparison.Ordinal)) { - throw ExceptionBuilder.InvalidAttributeValue(Keywords.USEDATASETSCHEMAONLY, useDataSetSchemaOnly); + throw ExceptionBuilder.InvalidAttributeValue(Keywords.USEDATASETSCHEMAONLY, useDataSetSchemaOnly!); } } const string udtIsWrappedString = Keywords.MSD + ":" + Keywords.UDTCOLUMNVALUEWRAPPED; if (reader.MoveToAttribute(udtIsWrappedString)) { - string _udtIsWrappedString = reader.GetAttribute(udtIsWrappedString); + string? _udtIsWrappedString = reader.GetAttribute(udtIsWrappedString); if (string.Equals(_udtIsWrappedString, "true", StringComparison.Ordinal) || string.Equals(_udtIsWrappedString, "1", StringComparison.Ordinal)) { @@ -3346,7 +3346,7 @@ namespace System.Data else if (!string.Equals(_udtIsWrappedString, "false", StringComparison.Ordinal) && !string.Equals(_udtIsWrappedString, "0", StringComparison.Ordinal)) { - throw ExceptionBuilder.InvalidAttributeValue(Keywords.UDTCOLUMNVALUEWRAPPED, _udtIsWrappedString); + throw ExceptionBuilder.InvalidAttributeValue(Keywords.UDTCOLUMNVALUEWRAPPED, _udtIsWrappedString!); } } } diff --git a/src/libraries/System.Data.Common/src/System/Data/DataTable.cs b/src/libraries/System.Data.Common/src/System/Data/DataTable.cs index ad0a64e..8b4c108 100644 --- a/src/libraries/System.Data.Common/src/System/Data/DataTable.cs +++ b/src/libraries/System.Data.Common/src/System/Data/DataTable.cs @@ -5851,7 +5851,7 @@ namespace System.Data if (!fSchemaFound && Columns.Count == 0) { - XmlNode node = xdoc.ReadNode(reader); + XmlNode node = xdoc.ReadNode(reader)!; topNode.AppendChild(node); } else @@ -5966,7 +5966,7 @@ namespace System.Data if (mode == XmlReadMode.Fragment) { xdoc.AppendChild(xdoc.CreateElement("ds_sqlXmlWraPPeR")); - topNode = xdoc.DocumentElement; + topNode = xdoc.DocumentElement!; } else { @@ -6147,7 +6147,7 @@ namespace System.Data if (mode == XmlReadMode.InferSchema) { //save the node in DOM until the end; - XmlNode node = xdoc.ReadNode(reader); + XmlNode node = xdoc.ReadNode(reader)!; topNode.AppendChild(node); } else @@ -6347,7 +6347,7 @@ namespace System.Data XmlSchemaSet sSet = new XmlSchemaSet(); while (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI == Keywords.XSDNS) { - XmlSchema s = XmlSchema.Read(reader, null); + XmlSchema s = XmlSchema.Read(reader, null)!; sSet.Add(s); //read the end tag ReadEndElement(reader); diff --git a/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLBinary.cs b/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLBinary.cs index 9d771f0..ab17670 100644 --- a/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLBinary.cs +++ b/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLBinary.cs @@ -424,7 +424,7 @@ namespace System.Data.SqlTypes void IXmlSerializable.ReadXml(XmlReader reader) { - string isNull = reader.GetAttribute("nil", XmlSchema.InstanceNamespace); + string? isNull = reader.GetAttribute("nil", XmlSchema.InstanceNamespace); if (isNull != null && XmlConvert.ToBoolean(isNull)) { // Read the next value. diff --git a/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLBoolean.cs b/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLBoolean.cs index 932d7c1..b76f3d1 100644 --- a/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLBoolean.cs +++ b/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLBoolean.cs @@ -489,7 +489,7 @@ namespace System.Data.SqlTypes void IXmlSerializable.ReadXml(XmlReader reader) { - string isNull = reader.GetAttribute("nil", XmlSchema.InstanceNamespace); + string? isNull = reader.GetAttribute("nil", XmlSchema.InstanceNamespace); if (isNull != null && XmlConvert.ToBoolean(isNull)) { // Read the next value. diff --git a/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLByte.cs b/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLByte.cs index 060ae2b..fd35313 100644 --- a/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLByte.cs +++ b/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLByte.cs @@ -498,7 +498,7 @@ namespace System.Data.SqlTypes void IXmlSerializable.ReadXml(XmlReader reader) { - string isNull = reader.GetAttribute("nil", XmlSchema.InstanceNamespace); + string? isNull = reader.GetAttribute("nil", XmlSchema.InstanceNamespace); if (isNull != null && XmlConvert.ToBoolean(isNull)) { // Read the next value. diff --git a/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLBytes.cs b/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLBytes.cs index 14d1fa1..caeff12 100644 --- a/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLBytes.cs +++ b/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLBytes.cs @@ -498,7 +498,7 @@ namespace System.Data.SqlTypes { byte[]? value = null; - string isNull = r.GetAttribute("nil", XmlSchema.InstanceNamespace); + string? isNull = r.GetAttribute("nil", XmlSchema.InstanceNamespace); if (isNull != null && XmlConvert.ToBoolean(isNull)) { diff --git a/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLChars.cs b/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLChars.cs index b7ae23b..dfb18b7 100644 --- a/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLChars.cs +++ b/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLChars.cs @@ -496,7 +496,7 @@ namespace System.Data.SqlTypes { char[]? value = null; - string isNull = r.GetAttribute("nil", XmlSchema.InstanceNamespace); + string? isNull = r.GetAttribute("nil", XmlSchema.InstanceNamespace); if (isNull != null && XmlConvert.ToBoolean(isNull)) { diff --git a/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLDateTime.cs b/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLDateTime.cs index 6126c74..2e08f0e 100644 --- a/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLDateTime.cs +++ b/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLDateTime.cs @@ -645,7 +645,7 @@ namespace System.Data.SqlTypes void IXmlSerializable.ReadXml(XmlReader reader) { - string isNull = reader.GetAttribute("nil", XmlSchema.InstanceNamespace); + string? isNull = reader.GetAttribute("nil", XmlSchema.InstanceNamespace); if (isNull != null && XmlConvert.ToBoolean(isNull)) { // Read the next value. diff --git a/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLDecimal.cs b/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLDecimal.cs index 2fd011c..0297ada 100644 --- a/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLDecimal.cs +++ b/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLDecimal.cs @@ -3334,7 +3334,7 @@ namespace System.Data.SqlTypes void IXmlSerializable.ReadXml(XmlReader reader) { - string isNull = reader.GetAttribute("nil", XmlSchema.InstanceNamespace); + string? isNull = reader.GetAttribute("nil", XmlSchema.InstanceNamespace); if (isNull != null && XmlConvert.ToBoolean(isNull)) { // Read the next value. diff --git a/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLDouble.cs b/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLDouble.cs index 968f5cb..aa8ea8c 100644 --- a/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLDouble.cs +++ b/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLDouble.cs @@ -414,7 +414,7 @@ namespace System.Data.SqlTypes void IXmlSerializable.ReadXml(XmlReader reader) { - string isNull = reader.GetAttribute("nil", XmlSchema.InstanceNamespace); + string? isNull = reader.GetAttribute("nil", XmlSchema.InstanceNamespace); if (isNull != null && XmlConvert.ToBoolean(isNull)) { // Read the next value. diff --git a/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLGuid.cs b/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLGuid.cs index 0a87708..263cf29 100644 --- a/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLGuid.cs +++ b/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLGuid.cs @@ -305,7 +305,7 @@ namespace System.Data.SqlTypes void IXmlSerializable.ReadXml(XmlReader reader) { - string isNull = reader.GetAttribute("nil", XmlSchema.InstanceNamespace); + string? isNull = reader.GetAttribute("nil", XmlSchema.InstanceNamespace); if (isNull != null && XmlConvert.ToBoolean(isNull)) { // Read the next value. diff --git a/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLInt16.cs b/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLInt16.cs index 3444f17..7da5e90 100644 --- a/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLInt16.cs +++ b/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLInt16.cs @@ -499,7 +499,7 @@ namespace System.Data.SqlTypes void IXmlSerializable.ReadXml(XmlReader reader) { - string isNull = reader.GetAttribute("nil", XmlSchema.InstanceNamespace); + string? isNull = reader.GetAttribute("nil", XmlSchema.InstanceNamespace); if (isNull != null && XmlConvert.ToBoolean(isNull)) { // Read the next value. diff --git a/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLInt32.cs b/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLInt32.cs index c9c06b2..c02908e 100644 --- a/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLInt32.cs +++ b/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLInt32.cs @@ -514,7 +514,7 @@ namespace System.Data.SqlTypes void IXmlSerializable.ReadXml(XmlReader reader) { - string isNull = reader.GetAttribute("nil", XmlSchema.InstanceNamespace); + string? isNull = reader.GetAttribute("nil", XmlSchema.InstanceNamespace); if (isNull != null && XmlConvert.ToBoolean(isNull)) { // Read the next value. diff --git a/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLInt64.cs b/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLInt64.cs index c4508d6..d65fcd7 100644 --- a/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLInt64.cs +++ b/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLInt64.cs @@ -573,7 +573,7 @@ namespace System.Data.SqlTypes void IXmlSerializable.ReadXml(XmlReader reader) { - string isNull = reader.GetAttribute("nil", XmlSchema.InstanceNamespace); + string? isNull = reader.GetAttribute("nil", XmlSchema.InstanceNamespace); if (isNull != null && XmlConvert.ToBoolean(isNull)) { // Read the next value. diff --git a/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLMoney.cs b/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLMoney.cs index 5e722de..83ecd1c 100644 --- a/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLMoney.cs +++ b/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLMoney.cs @@ -564,7 +564,7 @@ namespace System.Data.SqlTypes void IXmlSerializable.ReadXml(XmlReader reader) { - string isNull = reader.GetAttribute("nil", XmlSchema.InstanceNamespace); + string? isNull = reader.GetAttribute("nil", XmlSchema.InstanceNamespace); if (isNull != null && XmlConvert.ToBoolean(isNull)) { // Read the next value. diff --git a/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLSingle.cs b/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLSingle.cs index 8798deb..9e61441 100644 --- a/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLSingle.cs +++ b/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLSingle.cs @@ -424,7 +424,7 @@ namespace System.Data.SqlTypes void IXmlSerializable.ReadXml(XmlReader reader) { - string isNull = reader.GetAttribute("nil", XmlSchema.InstanceNamespace); + string? isNull = reader.GetAttribute("nil", XmlSchema.InstanceNamespace); if (isNull != null && XmlConvert.ToBoolean(isNull)) { // Read the next value. diff --git a/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLString.cs b/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLString.cs index b85a913..e16012f 100644 --- a/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLString.cs +++ b/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLString.cs @@ -922,7 +922,7 @@ namespace System.Data.SqlTypes void IXmlSerializable.ReadXml(XmlReader reader) { - string isNull = reader.GetAttribute("nil", XmlSchema.InstanceNamespace); + string? isNull = reader.GetAttribute("nil", XmlSchema.InstanceNamespace); if (isNull != null && XmlConvert.ToBoolean(isNull)) { // Read the next value. diff --git a/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SqlXml.cs b/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SqlXml.cs index 7af1333..8c6726a 100644 --- a/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SqlXml.cs +++ b/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SqlXml.cs @@ -220,7 +220,7 @@ namespace System.Data.SqlTypes void IXmlSerializable.ReadXml(XmlReader r) { - string isNull = r.GetAttribute("nil", XmlSchema.InstanceNamespace); + string? isNull = r.GetAttribute("nil", XmlSchema.InstanceNamespace); if (isNull != null && XmlConvert.ToBoolean(isNull)) { diff --git a/src/libraries/System.Data.Common/src/System/Data/SimpleType.cs b/src/libraries/System.Data.Common/src/System/Data/SimpleType.cs index c239328..63dbd99 100644 --- a/src/libraries/System.Data.Common/src/System/Data/SimpleType.cs +++ b/src/libraries/System.Data.Common/src/System/Data/SimpleType.cs @@ -19,15 +19,15 @@ namespace System.Data private int _length = -1; private int _minLength = -1; private int _maxLength = -1; - private string _pattern = string.Empty; + private string? _pattern = string.Empty; private string _ns = string.Empty; // my ns - private string _maxExclusive = string.Empty; - private string _maxInclusive = string.Empty; - private string _minExclusive = string.Empty; - private string _minInclusive = string.Empty; + private string? _maxExclusive = string.Empty; + private string? _maxInclusive = string.Empty; + private string? _minExclusive = string.Empty; + private string? _minInclusive = string.Empty; - internal string _enumeration = string.Empty; + internal string? _enumeration = string.Empty; internal SimpleType(string baseType) { @@ -82,7 +82,7 @@ namespace System.Data if (_baseType == null || _baseType.Length == 0) { - _baseType = content.BaseType.Name; + _baseType = content.BaseType!.Name; _xmlBaseType = null; } diff --git a/src/libraries/System.Data.Common/src/System/Data/xmlsaver.cs b/src/libraries/System.Data.Common/src/System/Data/xmlsaver.cs index 0d5f495..7307670 100644 --- a/src/libraries/System.Data.Common/src/System/Data/xmlsaver.cs +++ b/src/libraries/System.Data.Common/src/System/Data/xmlsaver.cs @@ -1189,7 +1189,7 @@ namespace System.Data private static XmlElement? FindSimpleType(XmlElement schema, string name) { - for (XmlNode n = schema.FirstChild; n != null; n = n.NextSibling) + for (XmlNode? n = schema.FirstChild; n != null; n = n.NextSibling) { if (n is XmlElement) { @@ -1558,7 +1558,7 @@ namespace System.Data if (node == null) return null; - for (XmlNode n = node.FirstChild; n != null; n = n.NextSibling) + for (XmlNode? n = node.FirstChild; n != null; n = n.NextSibling) { if (!(n is XmlElement)) continue; @@ -3134,12 +3134,12 @@ namespace System.Data _xmltextWriter.WriteEndDocument(); } - public override void WriteDocType(string name, string pubid, string sysid, string subset) + public override void WriteDocType(string name, string? pubid, string? sysid, string? subset) { _xmltextWriter.WriteDocType(name, pubid, sysid, subset); } - public override void WriteStartElement(string prefix, string localName, string ns) + public override void WriteStartElement(string? prefix, string localName, string? ns) { _xmltextWriter.WriteStartElement(prefix, localName, ns); } @@ -3154,7 +3154,7 @@ namespace System.Data _xmltextWriter.WriteFullEndElement(); } - public override void WriteStartAttribute(string prefix, string localName, string ns) + public override void WriteStartAttribute(string? prefix, string localName, string? ns) { _xmltextWriter.WriteStartAttribute(prefix, localName, ns); } @@ -3164,17 +3164,17 @@ namespace System.Data _xmltextWriter.WriteEndAttribute(); } - public override void WriteCData(string text) + public override void WriteCData(string? text) { _xmltextWriter.WriteCData(text); } - public override void WriteComment(string text) + public override void WriteComment(string? text) { _xmltextWriter.WriteComment(text); } - public override void WriteProcessingInstruction(string name, string text) + public override void WriteProcessingInstruction(string name, string? text) { _xmltextWriter.WriteProcessingInstruction(name, text); } @@ -3189,12 +3189,12 @@ namespace System.Data _xmltextWriter.WriteCharEntity(ch); } - public override void WriteWhitespace(string ws) + public override void WriteWhitespace(string? ws) { _xmltextWriter.WriteWhitespace(ws); } - public override void WriteString(string text) + public override void WriteString(string? text) { _xmltextWriter.WriteString(text); } @@ -3252,12 +3252,12 @@ namespace System.Data _xmltextWriter.WriteName(name); } - public override void WriteQualifiedName(string localName, string ns) + public override void WriteQualifiedName(string localName, string? ns) { _xmltextWriter.WriteQualifiedName(localName, ns); } - public override string LookupPrefix(string ns) + public override string? LookupPrefix(string ns) { return _xmltextWriter.LookupPrefix(ns); } @@ -3270,7 +3270,7 @@ namespace System.Data } } - public override string XmlLang + public override string? XmlLang { get { @@ -3300,7 +3300,7 @@ namespace System.Data _xmlreader = input; } - public override XmlReaderSettings Settings + public override XmlReaderSettings? Settings { get { @@ -3360,7 +3360,7 @@ namespace System.Data get { return _xmlreader.Depth; } } - public override string BaseURI + public override string? BaseURI { get { return _xmlreader.BaseURI; } } @@ -3392,12 +3392,12 @@ namespace System.Data public override int AttributeCount { get { return _xmlreader.AttributeCount; } } - public override string GetAttribute(string name) + public override string? GetAttribute(string name) { return _xmlreader.GetAttribute(name); } - public override string GetAttribute(string localName, string namespaceURI) + public override string? GetAttribute(string localName, string? namespaceURI) { return _xmlreader.GetAttribute(localName, namespaceURI); } @@ -3412,7 +3412,7 @@ namespace System.Data return _xmlreader.MoveToAttribute(name); } - public override bool MoveToAttribute(string localName, string namespaceURI) + public override bool MoveToAttribute(string localName, string? namespaceURI) { return _xmlreader.MoveToAttribute(localName, namespaceURI); } @@ -3472,7 +3472,7 @@ namespace System.Data get { return _xmlreader.NameTable; } } - public override string LookupNamespace(string prefix) + public override string? LookupNamespace(string prefix) { return _xmlreader.LookupNamespace(prefix); } diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Core/XmlWriter.cs b/src/libraries/System.Private.Xml/src/System/Xml/Core/XmlWriter.cs index 6542efb..222b6e7 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Core/XmlWriter.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Core/XmlWriter.cs @@ -99,7 +99,7 @@ namespace System.Xml public abstract void WriteFullEndElement(); // Writes out the attribute with the specified LocalName, value, and NamespaceURI. - public void WriteAttributeString(string localName, string? ns, string value) + public void WriteAttributeString(string localName, string? ns, string? value) { WriteStartAttribute(null, localName, ns); WriteString(value); @@ -107,7 +107,7 @@ namespace System.Xml } // Writes out the attribute with the specified LocalName and value. - public void WriteAttributeString(string localName, string value) + public void WriteAttributeString(string localName, string? value) { WriteStartAttribute(null, localName, (string?)null); WriteString(value); diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Core/XmlWriterAsync.cs b/src/libraries/System.Private.Xml/src/System/Xml/Core/XmlWriterAsync.cs index 2a8b334..8b77dcf 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Core/XmlWriterAsync.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Core/XmlWriterAsync.cs @@ -70,7 +70,7 @@ namespace System.Xml } // Writes out the attribute with the specified prefix, LocalName, NamespaceURI and value. - public Task WriteAttributeStringAsync(string? prefix, string localName, string? ns, string value) + public Task WriteAttributeStringAsync(string? prefix, string localName, string? ns, string? value) { Task task = WriteStartAttributeAsync(prefix, localName, ns); if (task.IsSuccess()) @@ -83,7 +83,7 @@ namespace System.Xml } } - private async Task WriteAttributeStringAsyncHelper(Task task, string value) + private async Task WriteAttributeStringAsyncHelper(Task task, string? value) { await task.ConfigureAwait(false); await WriteStringAsync(value).ConfigureAwait(false); diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Dom/XmlElement.cs b/src/libraries/System.Private.Xml/src/System/Xml/Dom/XmlElement.cs index b103dcf..15193b4 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Dom/XmlElement.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Dom/XmlElement.cs @@ -7,6 +7,7 @@ using System.Xml.XPath; using System.Collections; using System.Diagnostics; using System.Globalization; +using System.Diagnostics.CodeAnalysis; namespace System.Xml { @@ -277,7 +278,7 @@ namespace System.Xml // Sets the value of the attribute // with the specified name. - public virtual void SetAttribute(string name, string value) + public virtual void SetAttribute(string name, string? value) { XmlAttribute? attr = GetAttributeNode(name); if (attr == null) @@ -308,7 +309,7 @@ namespace System.Xml } // Adds the specified XmlAttribute. - public virtual XmlAttribute SetAttributeNode(XmlAttribute newAttr) + public virtual XmlAttribute? SetAttributeNode(XmlAttribute newAttr) { if (newAttr.OwnerElement != null) throw new InvalidOperationException(SR.Xdom_Attr_InUse); @@ -347,7 +348,8 @@ namespace System.Xml // Sets the value of the attribute with the specified name // and namespace. - public virtual string SetAttribute(string localName, string? namespaceURI, string value) + [return: NotNullIfNotNull("value")] + public virtual string? SetAttribute(string localName, string? namespaceURI, string? value) { XmlAttribute? attr = GetAttributeNode(localName, namespaceURI); if (attr == null) diff --git a/src/libraries/System.Xml.ReaderWriter/ref/System.Xml.ReaderWriter.cs b/src/libraries/System.Xml.ReaderWriter/ref/System.Xml.ReaderWriter.cs index ef1a9b8..4f8074e 100644 --- a/src/libraries/System.Xml.ReaderWriter/ref/System.Xml.ReaderWriter.cs +++ b/src/libraries/System.Xml.ReaderWriter/ref/System.Xml.ReaderWriter.cs @@ -49,8 +49,8 @@ namespace System.Xml public partial interface IXmlNamespaceResolver { System.Collections.Generic.IDictionary GetNamespacesInScope(System.Xml.XmlNamespaceScope scope); - string LookupNamespace(string prefix); - string LookupPrefix(string namespaceName); + string? LookupNamespace(string prefix); + string? LookupPrefix(string namespaceName); } [System.FlagsAttribute] public enum NamespaceHandling @@ -63,8 +63,8 @@ namespace System.Xml public NameTable() { } public override string Add(char[] key, int start, int len) { throw null; } public override string Add(string key) { throw null; } - public override string Get(char[] key, int start, int len) { throw null; } - public override string Get(string value) { throw null; } + public override string? Get(char[] key, int start, int len) { throw null; } + public override string? Get(string value) { throw null; } } public enum NewLineHandling { @@ -108,7 +108,7 @@ namespace System.Xml } public partial class XmlAttribute : System.Xml.XmlNode { - protected internal XmlAttribute(string prefix, string localName, string namespaceURI, System.Xml.XmlDocument doc) { } + protected internal XmlAttribute(string? prefix, string localName, string? namespaceURI, System.Xml.XmlDocument doc) { } public override string BaseURI { get { throw null; } } public override string InnerText { set { } } public override string InnerXml { set { } } @@ -117,17 +117,18 @@ namespace System.Xml public override string NamespaceURI { get { throw null; } } public override System.Xml.XmlNodeType NodeType { get { throw null; } } public override System.Xml.XmlDocument OwnerDocument { get { throw null; } } - public virtual System.Xml.XmlElement OwnerElement { get { throw null; } } - public override System.Xml.XmlNode ParentNode { get { throw null; } } + public virtual System.Xml.XmlElement? OwnerElement { get { throw null; } } + public override System.Xml.XmlNode? ParentNode { get { throw null; } } public override string Prefix { get { throw null; } set { } } public override System.Xml.Schema.IXmlSchemaInfo SchemaInfo { get { throw null; } } public virtual bool Specified { get { throw null; } } + [System.Diagnostics.CodeAnalysis.AllowNullAttribute] public override string Value { get { throw null; } set { } } - public override System.Xml.XmlNode AppendChild(System.Xml.XmlNode newChild) { throw null; } + public override System.Xml.XmlNode? AppendChild(System.Xml.XmlNode newChild) { throw null; } public override System.Xml.XmlNode CloneNode(bool deep) { throw null; } - public override System.Xml.XmlNode InsertAfter(System.Xml.XmlNode newChild, System.Xml.XmlNode refChild) { throw null; } - public override System.Xml.XmlNode InsertBefore(System.Xml.XmlNode newChild, System.Xml.XmlNode refChild) { throw null; } - public override System.Xml.XmlNode PrependChild(System.Xml.XmlNode newChild) { throw null; } + public override System.Xml.XmlNode? InsertAfter(System.Xml.XmlNode newChild, System.Xml.XmlNode? refChild) { throw null; } + public override System.Xml.XmlNode? InsertBefore(System.Xml.XmlNode newChild, System.Xml.XmlNode? refChild) { throw null; } + public override System.Xml.XmlNode? PrependChild(System.Xml.XmlNode newChild) { throw null; } public override System.Xml.XmlNode RemoveChild(System.Xml.XmlNode oldChild) { throw null; } public override System.Xml.XmlNode ReplaceChild(System.Xml.XmlNode newChild, System.Xml.XmlNode oldChild) { throw null; } public override void WriteContentTo(System.Xml.XmlWriter w) { } @@ -139,51 +140,53 @@ namespace System.Xml [System.Runtime.CompilerServices.IndexerName("ItemOf")] public System.Xml.XmlAttribute this[int i] { get { throw null; } } [System.Runtime.CompilerServices.IndexerName("ItemOf")] - public System.Xml.XmlAttribute this[string name] { get { throw null; } } + public System.Xml.XmlAttribute? this[string name] { get { throw null; } } [System.Runtime.CompilerServices.IndexerName("ItemOf")] - public System.Xml.XmlAttribute this[string localName, string namespaceURI] { get { throw null; } } + public System.Xml.XmlAttribute? this[string localName, string? namespaceURI] { get { throw null; } } int System.Collections.ICollection.Count { get { throw null; } } bool System.Collections.ICollection.IsSynchronized { get { throw null; } } object System.Collections.ICollection.SyncRoot { get { throw null; } } public System.Xml.XmlAttribute Append(System.Xml.XmlAttribute node) { throw null; } public void CopyTo(System.Xml.XmlAttribute[] array, int index) { } - public System.Xml.XmlAttribute InsertAfter(System.Xml.XmlAttribute newNode, System.Xml.XmlAttribute refNode) { throw null; } - public System.Xml.XmlAttribute InsertBefore(System.Xml.XmlAttribute newNode, System.Xml.XmlAttribute refNode) { throw null; } + public System.Xml.XmlAttribute InsertAfter(System.Xml.XmlAttribute newNode, System.Xml.XmlAttribute? refNode) { throw null; } + public System.Xml.XmlAttribute InsertBefore(System.Xml.XmlAttribute newNode, System.Xml.XmlAttribute? refNode) { throw null; } public System.Xml.XmlAttribute Prepend(System.Xml.XmlAttribute node) { throw null; } - public System.Xml.XmlAttribute Remove(System.Xml.XmlAttribute node) { throw null; } + public System.Xml.XmlAttribute? Remove(System.Xml.XmlAttribute? node) { throw null; } public void RemoveAll() { } - public System.Xml.XmlAttribute RemoveAt(int i) { throw null; } - public override System.Xml.XmlNode SetNamedItem(System.Xml.XmlNode node) { throw null; } + public System.Xml.XmlAttribute? RemoveAt(int i) { throw null; } + [return: System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute("node")] + public override System.Xml.XmlNode? SetNamedItem(System.Xml.XmlNode? node) { throw null; } void System.Collections.ICollection.CopyTo(System.Array array, int index) { } } public partial class XmlCDataSection : System.Xml.XmlCharacterData { - protected internal XmlCDataSection(string data, System.Xml.XmlDocument doc) : base (default(string), default(System.Xml.XmlDocument)) { } + protected internal XmlCDataSection(string? data, System.Xml.XmlDocument doc) : base (default(string), default(System.Xml.XmlDocument)) { } public override string LocalName { get { throw null; } } public override string Name { get { throw null; } } public override System.Xml.XmlNodeType NodeType { get { throw null; } } - public override System.Xml.XmlNode ParentNode { get { throw null; } } - public override System.Xml.XmlNode PreviousText { get { throw null; } } + public override System.Xml.XmlNode? ParentNode { get { throw null; } } + public override System.Xml.XmlNode? PreviousText { get { throw null; } } public override System.Xml.XmlNode CloneNode(bool deep) { throw null; } public override void WriteContentTo(System.Xml.XmlWriter w) { } public override void WriteTo(System.Xml.XmlWriter w) { } } public abstract partial class XmlCharacterData : System.Xml.XmlLinkedNode { - protected internal XmlCharacterData(string data, System.Xml.XmlDocument doc) { } + protected internal XmlCharacterData(string? data, System.Xml.XmlDocument doc) { } + [System.Diagnostics.CodeAnalysis.AllowNullAttribute] public virtual string Data { get { throw null; } set { } } public override string InnerText { get { throw null; } set { } } public virtual int Length { get { throw null; } } - public override string Value { get { throw null; } set { } } - public virtual void AppendData(string strData) { } + public override string? Value { get { throw null; } set { } } + public virtual void AppendData(string? strData) { } public virtual void DeleteData(int offset, int count) { } - public virtual void InsertData(int offset, string strData) { } - public virtual void ReplaceData(int offset, int count, string strData) { } + public virtual void InsertData(int offset, string? strData) { } + public virtual void ReplaceData(int offset, int count, string? strData) { } public virtual string Substring(int offset, int count) { throw null; } } public partial class XmlComment : System.Xml.XmlCharacterData { - protected internal XmlComment(string comment, System.Xml.XmlDocument doc) : base (default(string), default(System.Xml.XmlDocument)) { } + protected internal XmlComment(string? comment, System.Xml.XmlDocument doc) : base (default(string), default(System.Xml.XmlDocument)) { } public override string LocalName { get { throw null; } } public override string Name { get { throw null; } } public override System.Xml.XmlNodeType NodeType { get { throw null; } } @@ -194,10 +197,14 @@ namespace System.Xml public partial class XmlConvert { public XmlConvert() { } - public static string DecodeName(string name) { throw null; } - public static string EncodeLocalName(string name) { throw null; } - public static string EncodeName(string name) { throw null; } - public static string EncodeNmToken(string name) { throw null; } + [return: System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute("name")] + public static string? DecodeName(string? name) { throw null; } + [return: System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute("name")] + public static string? EncodeLocalName(string? name) { throw null; } + [return: System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute("name")] + public static string? EncodeName(string? name) { throw null; } + [return: System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute("name")] + public static string? EncodeNmToken(string? name) { throw null; } public static bool IsNCNameChar(char ch) { throw null; } public static bool IsPublicIdChar(char ch) { throw null; } public static bool IsStartNCNameChar(char ch) { throw null; } @@ -260,7 +267,8 @@ namespace System.Xml public static string VerifyNCName(string name) { throw null; } public static string VerifyNMTOKEN(string name) { throw null; } public static string VerifyPublicId(string publicId) { throw null; } - public static string VerifyTOKEN(string token) { throw null; } + [return: System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute("token")] + public static string? VerifyTOKEN(string? token) { throw null; } public static string VerifyWhitespace(string content) { throw null; } public static string VerifyXmlChars(string content) { throw null; } } @@ -273,14 +281,16 @@ namespace System.Xml } public partial class XmlDeclaration : System.Xml.XmlLinkedNode { - protected internal XmlDeclaration(string version, string encoding, string standalone, System.Xml.XmlDocument doc) { } + protected internal XmlDeclaration(string version, string? encoding, string? standalone, System.Xml.XmlDocument doc) { } + [System.Diagnostics.CodeAnalysis.AllowNullAttribute] public string Encoding { get { throw null; } set { } } public override string InnerText { get { throw null; } set { } } public override string LocalName { get { throw null; } } public override string Name { get { throw null; } } public override System.Xml.XmlNodeType NodeType { get { throw null; } } + [System.Diagnostics.CodeAnalysis.AllowNullAttribute] public string Standalone { get { throw null; } set { } } - public override string Value { get { throw null; } set { } } + public override string? Value { get { throw null; } set { } } public string Version { get { throw null; } } public override System.Xml.XmlNode CloneNode(bool deep) { throw null; } public override void WriteContentTo(System.Xml.XmlWriter w) { } @@ -292,9 +302,10 @@ namespace System.Xml protected internal XmlDocument(System.Xml.XmlImplementation imp) { } public XmlDocument(System.Xml.XmlNameTable nt) { } public override string BaseURI { get { throw null; } } - public System.Xml.XmlElement DocumentElement { get { throw null; } } - public virtual System.Xml.XmlDocumentType DocumentType { get { throw null; } } + public System.Xml.XmlElement? DocumentElement { get { throw null; } } + public virtual System.Xml.XmlDocumentType? DocumentType { get { throw null; } } public System.Xml.XmlImplementation Implementation { get { throw null; } } + [System.Diagnostics.CodeAnalysis.AllowNullAttribute] public override string InnerText { set { } } public override string InnerXml { get { throw null; } set { } } public override bool IsReadOnly { get { throw null; } } @@ -302,8 +313,8 @@ namespace System.Xml public override string Name { get { throw null; } } public System.Xml.XmlNameTable NameTable { get { throw null; } } public override System.Xml.XmlNodeType NodeType { get { throw null; } } - public override System.Xml.XmlDocument OwnerDocument { get { throw null; } } - public override System.Xml.XmlNode ParentNode { get { throw null; } } + public override System.Xml.XmlDocument? OwnerDocument { get { throw null; } } + public override System.Xml.XmlNode? ParentNode { get { throw null; } } public bool PreserveWhitespace { get { throw null; } set { } } public override System.Xml.Schema.IXmlSchemaInfo SchemaInfo { get { throw null; } } public System.Xml.Schema.XmlSchemaSet Schemas { get { throw null; } set { } } @@ -316,28 +327,28 @@ namespace System.Xml public event System.Xml.XmlNodeChangedEventHandler NodeRemoving { add { } remove { } } public override System.Xml.XmlNode CloneNode(bool deep) { throw null; } public System.Xml.XmlAttribute CreateAttribute(string name) { throw null; } - public System.Xml.XmlAttribute CreateAttribute(string qualifiedName, string namespaceURI) { throw null; } - public virtual System.Xml.XmlAttribute CreateAttribute(string prefix, string localName, string namespaceURI) { throw null; } - public virtual System.Xml.XmlCDataSection CreateCDataSection(string data) { throw null; } - public virtual System.Xml.XmlComment CreateComment(string data) { throw null; } - protected internal virtual System.Xml.XmlAttribute CreateDefaultAttribute(string prefix, string localName, string namespaceURI) { throw null; } + public System.Xml.XmlAttribute CreateAttribute(string qualifiedName, string? namespaceURI) { throw null; } + public virtual System.Xml.XmlAttribute CreateAttribute(string? prefix, string localName, string? namespaceURI) { throw null; } + public virtual System.Xml.XmlCDataSection CreateCDataSection(string? data) { throw null; } + public virtual System.Xml.XmlComment CreateComment(string? data) { throw null; } + protected internal virtual System.Xml.XmlAttribute CreateDefaultAttribute(string? prefix, string localName, string? namespaceURI) { throw null; } public virtual System.Xml.XmlDocumentFragment CreateDocumentFragment() { throw null; } - public virtual System.Xml.XmlDocumentType CreateDocumentType(string name, string publicId, string systemId, string internalSubset) { throw null; } + public virtual System.Xml.XmlDocumentType CreateDocumentType(string name, string? publicId, string? systemId, string? internalSubset) { throw null; } public System.Xml.XmlElement CreateElement(string name) { throw null; } - public System.Xml.XmlElement CreateElement(string qualifiedName, string namespaceURI) { throw null; } - public virtual System.Xml.XmlElement CreateElement(string prefix, string localName, string namespaceURI) { throw null; } + public System.Xml.XmlElement CreateElement(string qualifiedName, string? namespaceURI) { throw null; } + public virtual System.Xml.XmlElement CreateElement(string? prefix, string localName, string? namespaceURI) { throw null; } public virtual System.Xml.XmlEntityReference CreateEntityReference(string name) { throw null; } - public override System.Xml.XPath.XPathNavigator CreateNavigator() { throw null; } - protected internal virtual System.Xml.XPath.XPathNavigator CreateNavigator(System.Xml.XmlNode node) { throw null; } - public virtual System.Xml.XmlNode CreateNode(string nodeTypeString, string name, string namespaceURI) { throw null; } - public virtual System.Xml.XmlNode CreateNode(System.Xml.XmlNodeType type, string name, string namespaceURI) { throw null; } - public virtual System.Xml.XmlNode CreateNode(System.Xml.XmlNodeType type, string prefix, string name, string namespaceURI) { throw null; } + public override System.Xml.XPath.XPathNavigator? CreateNavigator() { throw null; } + protected internal virtual System.Xml.XPath.XPathNavigator? CreateNavigator(System.Xml.XmlNode node) { throw null; } + public virtual System.Xml.XmlNode CreateNode(string nodeTypeString, string name, string? namespaceURI) { throw null; } + public virtual System.Xml.XmlNode CreateNode(System.Xml.XmlNodeType type, string name, string? namespaceURI) { throw null; } + public virtual System.Xml.XmlNode CreateNode(System.Xml.XmlNodeType type, string? prefix, string name, string? namespaceURI) { throw null; } public virtual System.Xml.XmlProcessingInstruction CreateProcessingInstruction(string target, string data) { throw null; } - public virtual System.Xml.XmlSignificantWhitespace CreateSignificantWhitespace(string text) { throw null; } - public virtual System.Xml.XmlText CreateTextNode(string text) { throw null; } - public virtual System.Xml.XmlWhitespace CreateWhitespace(string text) { throw null; } - public virtual System.Xml.XmlDeclaration CreateXmlDeclaration(string version, string encoding, string standalone) { throw null; } - public virtual System.Xml.XmlElement GetElementById(string elementId) { throw null; } + public virtual System.Xml.XmlSignificantWhitespace CreateSignificantWhitespace(string? text) { throw null; } + public virtual System.Xml.XmlText CreateTextNode(string? text) { throw null; } + public virtual System.Xml.XmlWhitespace CreateWhitespace(string? text) { throw null; } + public virtual System.Xml.XmlDeclaration CreateXmlDeclaration(string version, string? encoding, string? standalone) { throw null; } + public virtual System.Xml.XmlElement? GetElementById(string elementId) { throw null; } public virtual System.Xml.XmlNodeList GetElementsByTagName(string name) { throw null; } public virtual System.Xml.XmlNodeList GetElementsByTagName(string localName, string namespaceURI) { throw null; } public virtual System.Xml.XmlNode ImportNode(System.Xml.XmlNode node, bool deep) { throw null; } @@ -346,13 +357,13 @@ namespace System.Xml public virtual void Load(string filename) { } public virtual void Load(System.Xml.XmlReader reader) { } public virtual void LoadXml(string xml) { } - public virtual System.Xml.XmlNode ReadNode(System.Xml.XmlReader reader) { throw null; } + public virtual System.Xml.XmlNode? ReadNode(System.Xml.XmlReader reader) { throw null; } public virtual void Save(System.IO.Stream outStream) { } public virtual void Save(System.IO.TextWriter writer) { } public virtual void Save(string filename) { } public virtual void Save(System.Xml.XmlWriter w) { } - public void Validate(System.Xml.Schema.ValidationEventHandler validationEventHandler) { } - public void Validate(System.Xml.Schema.ValidationEventHandler validationEventHandler, System.Xml.XmlNode nodeToValidate) { } + public void Validate(System.Xml.Schema.ValidationEventHandler? validationEventHandler) { } + public void Validate(System.Xml.Schema.ValidationEventHandler? validationEventHandler, System.Xml.XmlNode nodeToValidate) { } public override void WriteContentTo(System.Xml.XmlWriter xw) { } public override void WriteTo(System.Xml.XmlWriter w) { } } @@ -364,30 +375,30 @@ namespace System.Xml public override string Name { get { throw null; } } public override System.Xml.XmlNodeType NodeType { get { throw null; } } public override System.Xml.XmlDocument OwnerDocument { get { throw null; } } - public override System.Xml.XmlNode ParentNode { get { throw null; } } + public override System.Xml.XmlNode? ParentNode { get { throw null; } } public override System.Xml.XmlNode CloneNode(bool deep) { throw null; } public override void WriteContentTo(System.Xml.XmlWriter w) { } public override void WriteTo(System.Xml.XmlWriter w) { } } public partial class XmlDocumentType : System.Xml.XmlLinkedNode { - protected internal XmlDocumentType(string name, string publicId, string systemId, string internalSubset, System.Xml.XmlDocument doc) { } + protected internal XmlDocumentType(string name, string? publicId, string? systemId, string? internalSubset, System.Xml.XmlDocument doc) { } public System.Xml.XmlNamedNodeMap Entities { get { throw null; } } - public string InternalSubset { get { throw null; } } + public string? InternalSubset { get { throw null; } } public override bool IsReadOnly { get { throw null; } } public override string LocalName { get { throw null; } } public override string Name { get { throw null; } } public override System.Xml.XmlNodeType NodeType { get { throw null; } } public System.Xml.XmlNamedNodeMap Notations { get { throw null; } } - public string PublicId { get { throw null; } } - public string SystemId { get { throw null; } } + public string? PublicId { get { throw null; } } + public string? SystemId { get { throw null; } } public override System.Xml.XmlNode CloneNode(bool deep) { throw null; } public override void WriteContentTo(System.Xml.XmlWriter w) { } public override void WriteTo(System.Xml.XmlWriter w) { } } public partial class XmlElement : System.Xml.XmlLinkedNode { - protected internal XmlElement(string prefix, string localName, string namespaceURI, System.Xml.XmlDocument doc) { } + protected internal XmlElement(string prefix, string localName, string? namespaceURI, System.Xml.XmlDocument doc) { } public override System.Xml.XmlAttributeCollection Attributes { get { throw null; } } public virtual bool HasAttributes { get { throw null; } } public override string InnerText { get { throw null; } set { } } @@ -396,32 +407,33 @@ namespace System.Xml public override string LocalName { get { throw null; } } public override string Name { get { throw null; } } public override string NamespaceURI { get { throw null; } } - public override System.Xml.XmlNode NextSibling { get { throw null; } } + public override System.Xml.XmlNode? NextSibling { get { throw null; } } public override System.Xml.XmlNodeType NodeType { get { throw null; } } public override System.Xml.XmlDocument OwnerDocument { get { throw null; } } - public override System.Xml.XmlNode ParentNode { get { throw null; } } + public override System.Xml.XmlNode? ParentNode { get { throw null; } } public override string Prefix { get { throw null; } set { } } public override System.Xml.Schema.IXmlSchemaInfo SchemaInfo { get { throw null; } } public override System.Xml.XmlNode CloneNode(bool deep) { throw null; } public virtual string GetAttribute(string name) { throw null; } - public virtual string GetAttribute(string localName, string namespaceURI) { throw null; } - public virtual System.Xml.XmlAttribute GetAttributeNode(string name) { throw null; } - public virtual System.Xml.XmlAttribute GetAttributeNode(string localName, string namespaceURI) { throw null; } + public virtual string GetAttribute(string localName, string? namespaceURI) { throw null; } + public virtual System.Xml.XmlAttribute? GetAttributeNode(string name) { throw null; } + public virtual System.Xml.XmlAttribute? GetAttributeNode(string localName, string? namespaceURI) { throw null; } public virtual System.Xml.XmlNodeList GetElementsByTagName(string name) { throw null; } public virtual System.Xml.XmlNodeList GetElementsByTagName(string localName, string namespaceURI) { throw null; } public virtual bool HasAttribute(string name) { throw null; } - public virtual bool HasAttribute(string localName, string namespaceURI) { throw null; } + public virtual bool HasAttribute(string localName, string? namespaceURI) { throw null; } public override void RemoveAll() { } public virtual void RemoveAllAttributes() { } public virtual void RemoveAttribute(string name) { } - public virtual void RemoveAttribute(string localName, string namespaceURI) { } - public virtual System.Xml.XmlNode RemoveAttributeAt(int i) { throw null; } - public virtual System.Xml.XmlAttribute RemoveAttributeNode(string localName, string namespaceURI) { throw null; } - public virtual System.Xml.XmlAttribute RemoveAttributeNode(System.Xml.XmlAttribute oldAttr) { throw null; } - public virtual void SetAttribute(string name, string value) { } - public virtual string SetAttribute(string localName, string namespaceURI, string value) { throw null; } - public virtual System.Xml.XmlAttribute SetAttributeNode(string localName, string namespaceURI) { throw null; } - public virtual System.Xml.XmlAttribute SetAttributeNode(System.Xml.XmlAttribute newAttr) { throw null; } + public virtual void RemoveAttribute(string localName, string? namespaceURI) { } + public virtual System.Xml.XmlNode? RemoveAttributeAt(int i) { throw null; } + public virtual System.Xml.XmlAttribute? RemoveAttributeNode(string localName, string? namespaceURI) { throw null; } + public virtual System.Xml.XmlAttribute? RemoveAttributeNode(System.Xml.XmlAttribute oldAttr) { throw null; } + public virtual void SetAttribute(string name, string? value) { } + [return: System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute("value")] + public virtual string? SetAttribute(string localName, string? namespaceURI, string? value) { throw null; } + public virtual System.Xml.XmlAttribute SetAttributeNode(string localName, string? namespaceURI) { throw null; } + public virtual System.Xml.XmlAttribute? SetAttributeNode(System.Xml.XmlAttribute newAttr) { throw null; } public override void WriteContentTo(System.Xml.XmlWriter w) { } public override void WriteTo(System.Xml.XmlWriter w) { } } @@ -435,10 +447,10 @@ namespace System.Xml public override string LocalName { get { throw null; } } public override string Name { get { throw null; } } public override System.Xml.XmlNodeType NodeType { get { throw null; } } - public string NotationName { get { throw null; } } + public string? NotationName { get { throw null; } } public override string OuterXml { get { throw null; } } - public string PublicId { get { throw null; } } - public string SystemId { get { throw null; } } + public string? PublicId { get { throw null; } } + public string? SystemId { get { throw null; } } public override System.Xml.XmlNode CloneNode(bool deep) { throw null; } public override void WriteContentTo(System.Xml.XmlWriter w) { } public override void WriteTo(System.Xml.XmlWriter w) { } @@ -451,7 +463,7 @@ namespace System.Xml public override string LocalName { get { throw null; } } public override string Name { get { throw null; } } public override System.Xml.XmlNodeType NodeType { get { throw null; } } - public override string Value { get { throw null; } set { } } + public override string? Value { get { throw null; } set { } } public override System.Xml.XmlNode CloneNode(bool deep) { throw null; } public override void WriteContentTo(System.Xml.XmlWriter w) { } public override void WriteTo(System.Xml.XmlWriter w) { } @@ -460,13 +472,13 @@ namespace System.Xml { public XmlException() { } protected XmlException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } - public XmlException(string message) { } - public XmlException(string message, System.Exception innerException) { } - public XmlException(string message, System.Exception innerException, int lineNumber, int linePosition) { } + public XmlException(string? message) { } + public XmlException(string? message, System.Exception? innerException) { } + public XmlException(string? message, System.Exception? innerException, int lineNumber, int linePosition) { } public int LineNumber { get { throw null; } } public int LinePosition { get { throw null; } } public override string Message { get { throw null; } } - public string SourceUri { get { throw null; } } + public string? SourceUri { get { throw null; } } public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } } public partial class XmlImplementation @@ -479,32 +491,32 @@ namespace System.Xml public abstract partial class XmlLinkedNode : System.Xml.XmlNode { internal XmlLinkedNode() { } - public override System.Xml.XmlNode NextSibling { get { throw null; } } - public override System.Xml.XmlNode PreviousSibling { get { throw null; } } + public override System.Xml.XmlNode? NextSibling { get { throw null; } } + public override System.Xml.XmlNode? PreviousSibling { get { throw null; } } } public partial class XmlNamedNodeMap : System.Collections.IEnumerable { internal XmlNamedNodeMap() { } public virtual int Count { get { throw null; } } public virtual System.Collections.IEnumerator GetEnumerator() { throw null; } - public virtual System.Xml.XmlNode GetNamedItem(string name) { throw null; } - public virtual System.Xml.XmlNode GetNamedItem(string localName, string namespaceURI) { throw null; } - public virtual System.Xml.XmlNode Item(int index) { throw null; } - public virtual System.Xml.XmlNode RemoveNamedItem(string name) { throw null; } - public virtual System.Xml.XmlNode RemoveNamedItem(string localName, string namespaceURI) { throw null; } - public virtual System.Xml.XmlNode SetNamedItem(System.Xml.XmlNode node) { throw null; } + public virtual System.Xml.XmlNode? GetNamedItem(string name) { throw null; } + public virtual System.Xml.XmlNode? GetNamedItem(string localName, string? namespaceURI) { throw null; } + public virtual System.Xml.XmlNode? Item(int index) { throw null; } + public virtual System.Xml.XmlNode? RemoveNamedItem(string name) { throw null; } + public virtual System.Xml.XmlNode? RemoveNamedItem(string localName, string? namespaceURI) { throw null; } + public virtual System.Xml.XmlNode? SetNamedItem(System.Xml.XmlNode? node) { throw null; } } public partial class XmlNamespaceManager : System.Collections.IEnumerable, System.Xml.IXmlNamespaceResolver { public XmlNamespaceManager(System.Xml.XmlNameTable nameTable) { } public virtual string DefaultNamespace { get { throw null; } } - public virtual System.Xml.XmlNameTable NameTable { get { throw null; } } + public virtual System.Xml.XmlNameTable? NameTable { get { throw null; } } public virtual void AddNamespace(string prefix, string uri) { } public virtual System.Collections.IEnumerator GetEnumerator() { throw null; } public virtual System.Collections.Generic.IDictionary GetNamespacesInScope(System.Xml.XmlNamespaceScope scope) { throw null; } public virtual bool HasNamespace(string prefix) { throw null; } - public virtual string LookupNamespace(string prefix) { throw null; } - public virtual string LookupPrefix(string uri) { throw null; } + public virtual string? LookupNamespace(string prefix) { throw null; } + public virtual string? LookupPrefix(string uri) { throw null; } public virtual bool PopScope() { throw null; } public virtual void PushScope() { } public virtual void RemoveNamespace(string prefix, string uri) { } @@ -520,55 +532,55 @@ namespace System.Xml protected XmlNameTable() { } public abstract string Add(char[] array, int offset, int length); public abstract string Add(string array); - public abstract string Get(char[] array, int offset, int length); - public abstract string Get(string array); + public abstract string? Get(char[] array, int offset, int length); + public abstract string? Get(string array); } [System.Diagnostics.DebuggerDisplayAttribute("{debuggerDisplayProxy}")] public abstract partial class XmlNode : System.Collections.IEnumerable, System.ICloneable, System.Xml.XPath.IXPathNavigable { internal XmlNode() { } - public virtual System.Xml.XmlAttributeCollection Attributes { get { throw null; } } + public virtual System.Xml.XmlAttributeCollection? Attributes { get { throw null; } } public virtual string BaseURI { get { throw null; } } public virtual System.Xml.XmlNodeList ChildNodes { get { throw null; } } - public virtual System.Xml.XmlNode FirstChild { get { throw null; } } + public virtual System.Xml.XmlNode? FirstChild { get { throw null; } } public virtual bool HasChildNodes { get { throw null; } } public virtual string InnerText { get { throw null; } set { } } public virtual string InnerXml { get { throw null; } set { } } public virtual bool IsReadOnly { get { throw null; } } - public virtual System.Xml.XmlElement this[string name] { get { throw null; } } - public virtual System.Xml.XmlElement this[string localname, string ns] { get { throw null; } } - public virtual System.Xml.XmlNode LastChild { get { throw null; } } + public virtual System.Xml.XmlElement? this[string name] { get { throw null; } } + public virtual System.Xml.XmlElement? this[string localname, string ns] { get { throw null; } } + public virtual System.Xml.XmlNode? LastChild { get { throw null; } } public abstract string LocalName { get; } public abstract string Name { get; } public virtual string NamespaceURI { get { throw null; } } - public virtual System.Xml.XmlNode NextSibling { get { throw null; } } + public virtual System.Xml.XmlNode? NextSibling { get { throw null; } } public abstract System.Xml.XmlNodeType NodeType { get; } public virtual string OuterXml { get { throw null; } } - public virtual System.Xml.XmlDocument OwnerDocument { get { throw null; } } - public virtual System.Xml.XmlNode ParentNode { get { throw null; } } + public virtual System.Xml.XmlDocument? OwnerDocument { get { throw null; } } + public virtual System.Xml.XmlNode? ParentNode { get { throw null; } } public virtual string Prefix { get { throw null; } set { } } - public virtual System.Xml.XmlNode PreviousSibling { get { throw null; } } - public virtual System.Xml.XmlNode PreviousText { get { throw null; } } + public virtual System.Xml.XmlNode? PreviousSibling { get { throw null; } } + public virtual System.Xml.XmlNode? PreviousText { get { throw null; } } public virtual System.Xml.Schema.IXmlSchemaInfo SchemaInfo { get { throw null; } } - public virtual string Value { get { throw null; } set { } } - public virtual System.Xml.XmlNode AppendChild(System.Xml.XmlNode newChild) { throw null; } + public virtual string? Value { get { throw null; } set { } } + public virtual System.Xml.XmlNode? AppendChild(System.Xml.XmlNode newChild) { throw null; } public virtual System.Xml.XmlNode Clone() { throw null; } public abstract System.Xml.XmlNode CloneNode(bool deep); - public virtual System.Xml.XPath.XPathNavigator CreateNavigator() { throw null; } + public virtual System.Xml.XPath.XPathNavigator? CreateNavigator() { throw null; } public System.Collections.IEnumerator GetEnumerator() { throw null; } public virtual string GetNamespaceOfPrefix(string prefix) { throw null; } public virtual string GetPrefixOfNamespace(string namespaceURI) { throw null; } - public virtual System.Xml.XmlNode InsertAfter(System.Xml.XmlNode newChild, System.Xml.XmlNode refChild) { throw null; } - public virtual System.Xml.XmlNode InsertBefore(System.Xml.XmlNode newChild, System.Xml.XmlNode refChild) { throw null; } + public virtual System.Xml.XmlNode? InsertAfter(System.Xml.XmlNode newChild, System.Xml.XmlNode? refChild) { throw null; } + public virtual System.Xml.XmlNode? InsertBefore(System.Xml.XmlNode newChild, System.Xml.XmlNode? refChild) { throw null; } public virtual void Normalize() { } - public virtual System.Xml.XmlNode PrependChild(System.Xml.XmlNode newChild) { throw null; } + public virtual System.Xml.XmlNode? PrependChild(System.Xml.XmlNode newChild) { throw null; } public virtual void RemoveAll() { } public virtual System.Xml.XmlNode RemoveChild(System.Xml.XmlNode oldChild) { throw null; } public virtual System.Xml.XmlNode ReplaceChild(System.Xml.XmlNode newChild, System.Xml.XmlNode oldChild) { throw null; } - public System.Xml.XmlNodeList SelectNodes(string xpath) { throw null; } - public System.Xml.XmlNodeList SelectNodes(string xpath, System.Xml.XmlNamespaceManager nsmgr) { throw null; } - public System.Xml.XmlNode SelectSingleNode(string xpath) { throw null; } - public System.Xml.XmlNode SelectSingleNode(string xpath, System.Xml.XmlNamespaceManager nsmgr) { throw null; } + public System.Xml.XmlNodeList? SelectNodes(string xpath) { throw null; } + public System.Xml.XmlNodeList? SelectNodes(string xpath, System.Xml.XmlNamespaceManager nsmgr) { throw null; } + public System.Xml.XmlNode? SelectSingleNode(string xpath) { throw null; } + public System.Xml.XmlNode? SelectSingleNode(string xpath, System.Xml.XmlNamespaceManager nsmgr) { throw null; } public virtual bool Supports(string feature, string version) { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } object System.ICloneable.Clone() { throw null; } @@ -583,13 +595,13 @@ namespace System.Xml } public partial class XmlNodeChangedEventArgs : System.EventArgs { - public XmlNodeChangedEventArgs(System.Xml.XmlNode node, System.Xml.XmlNode oldParent, System.Xml.XmlNode newParent, string oldValue, string newValue, System.Xml.XmlNodeChangedAction action) { } + public XmlNodeChangedEventArgs(System.Xml.XmlNode? node, System.Xml.XmlNode? oldParent, System.Xml.XmlNode? newParent, string? oldValue, string? newValue, System.Xml.XmlNodeChangedAction action) { } public System.Xml.XmlNodeChangedAction Action { get { throw null; } } - public System.Xml.XmlNode NewParent { get { throw null; } } - public string NewValue { get { throw null; } } - public System.Xml.XmlNode Node { get { throw null; } } - public System.Xml.XmlNode OldParent { get { throw null; } } - public string OldValue { get { throw null; } } + public System.Xml.XmlNode? NewParent { get { throw null; } } + public string? NewValue { get { throw null; } } + public System.Xml.XmlNode? Node { get { throw null; } } + public System.Xml.XmlNode? OldParent { get { throw null; } } + public string? OldValue { get { throw null; } } } public delegate void XmlNodeChangedEventHandler(object sender, System.Xml.XmlNodeChangedEventArgs e); public abstract partial class XmlNodeList : System.Collections.IEnumerable, System.IDisposable @@ -597,9 +609,9 @@ namespace System.Xml protected XmlNodeList() { } public abstract int Count { get; } [System.Runtime.CompilerServices.IndexerName("ItemOf")] - public virtual System.Xml.XmlNode this[int i] { get { throw null; } } + public virtual System.Xml.XmlNode? this[int i] { get { throw null; } } public abstract System.Collections.IEnumerator GetEnumerator(); - public abstract System.Xml.XmlNode Item(int index); + public abstract System.Xml.XmlNode? Item(int index); protected virtual void PrivateDisposeNodeList() { } void System.IDisposable.Dispose() { } } @@ -630,18 +642,18 @@ namespace System.Xml public override System.Xml.XmlNodeType NodeType { get { throw null; } } public override string Prefix { get { throw null; } } public override System.Xml.ReadState ReadState { get { throw null; } } - public override System.Xml.Schema.IXmlSchemaInfo SchemaInfo { get { throw null; } } + public override System.Xml.Schema.IXmlSchemaInfo? SchemaInfo { get { throw null; } } public override string Value { get { throw null; } } public override string XmlLang { get { throw null; } } public override System.Xml.XmlSpace XmlSpace { get { throw null; } } public override void Close() { } public override string GetAttribute(int attributeIndex) { throw null; } - public override string GetAttribute(string name) { throw null; } - public override string GetAttribute(string name, string namespaceURI) { throw null; } - public override string LookupNamespace(string prefix) { throw null; } + public override string? GetAttribute(string name) { throw null; } + public override string? GetAttribute(string name, string? namespaceURI) { throw null; } + public override string? LookupNamespace(string prefix) { throw null; } public override void MoveToAttribute(int attributeIndex) { } public override bool MoveToAttribute(string name) { throw null; } - public override bool MoveToAttribute(string name, string namespaceURI) { throw null; } + public override bool MoveToAttribute(string name, string? namespaceURI) { throw null; } public override bool MoveToElement() { throw null; } public override bool MoveToFirstAttribute() { throw null; } public override bool MoveToNextAttribute() { throw null; } @@ -688,8 +700,8 @@ namespace System.Xml public override string Name { get { throw null; } } public override System.Xml.XmlNodeType NodeType { get { throw null; } } public override string OuterXml { get { throw null; } } - public string PublicId { get { throw null; } } - public string SystemId { get { throw null; } } + public string? PublicId { get { throw null; } } + public string? SystemId { get { throw null; } } public override System.Xml.XmlNode CloneNode(bool deep) { throw null; } public override void WriteContentTo(System.Xml.XmlWriter w) { } public override void WriteTo(System.Xml.XmlWriter w) { } @@ -703,18 +715,24 @@ namespace System.Xml } public partial class XmlParserContext { - public XmlParserContext(System.Xml.XmlNameTable nt, System.Xml.XmlNamespaceManager nsMgr, string docTypeName, string pubId, string sysId, string internalSubset, string baseURI, string xmlLang, System.Xml.XmlSpace xmlSpace) { } - public XmlParserContext(System.Xml.XmlNameTable nt, System.Xml.XmlNamespaceManager nsMgr, string docTypeName, string pubId, string sysId, string internalSubset, string baseURI, string xmlLang, System.Xml.XmlSpace xmlSpace, System.Text.Encoding enc) { } - public XmlParserContext(System.Xml.XmlNameTable nt, System.Xml.XmlNamespaceManager nsMgr, string xmlLang, System.Xml.XmlSpace xmlSpace) { } - public XmlParserContext(System.Xml.XmlNameTable nt, System.Xml.XmlNamespaceManager nsMgr, string xmlLang, System.Xml.XmlSpace xmlSpace, System.Text.Encoding enc) { } + public XmlParserContext(System.Xml.XmlNameTable? nt, System.Xml.XmlNamespaceManager? nsMgr, string? docTypeName, string? pubId, string? sysId, string? internalSubset, string? baseURI, string? xmlLang, System.Xml.XmlSpace xmlSpace) { } + public XmlParserContext(System.Xml.XmlNameTable? nt, System.Xml.XmlNamespaceManager? nsMgr, string? docTypeName, string? pubId, string? sysId, string? internalSubset, string? baseURI, string? xmlLang, System.Xml.XmlSpace xmlSpace, System.Text.Encoding? enc) { } + public XmlParserContext(System.Xml.XmlNameTable? nt, System.Xml.XmlNamespaceManager? nsMgr, string? xmlLang, System.Xml.XmlSpace xmlSpace) { } + public XmlParserContext(System.Xml.XmlNameTable? nt, System.Xml.XmlNamespaceManager? nsMgr, string? xmlLang, System.Xml.XmlSpace xmlSpace, System.Text.Encoding? enc) { } + [System.Diagnostics.CodeAnalysis.AllowNullAttribute] public string BaseURI { get { throw null; } set { } } + [System.Diagnostics.CodeAnalysis.AllowNullAttribute] public string DocTypeName { get { throw null; } set { } } - public System.Text.Encoding Encoding { get { throw null; } set { } } + public System.Text.Encoding? Encoding { get { throw null; } set { } } + [System.Diagnostics.CodeAnalysis.AllowNullAttribute] public string InternalSubset { get { throw null; } set { } } - public System.Xml.XmlNamespaceManager NamespaceManager { get { throw null; } set { } } - public System.Xml.XmlNameTable NameTable { get { throw null; } set { } } + public System.Xml.XmlNamespaceManager? NamespaceManager { get { throw null; } set { } } + public System.Xml.XmlNameTable? NameTable { get { throw null; } set { } } + [System.Diagnostics.CodeAnalysis.AllowNullAttribute] public string PublicId { get { throw null; } set { } } + [System.Diagnostics.CodeAnalysis.AllowNullAttribute] public string SystemId { get { throw null; } set { } } + [System.Diagnostics.CodeAnalysis.AllowNullAttribute] public string XmlLang { get { throw null; } set { } } public System.Xml.XmlSpace XmlSpace { get { throw null; } set { } } } @@ -726,7 +744,8 @@ namespace System.Xml public override string LocalName { get { throw null; } } public override string Name { get { throw null; } } public override System.Xml.XmlNodeType NodeType { get { throw null; } } - public string Target { get { throw null; } } + public string? Target { get { throw null; } } + [System.Diagnostics.CodeAnalysis.AllowNullAttribute] public override string Value { get { throw null; } set { } } public override System.Xml.XmlNode CloneNode(bool deep) { throw null; } public override void WriteContentTo(System.Xml.XmlWriter w) { } @@ -736,15 +755,15 @@ namespace System.Xml { public static readonly System.Xml.XmlQualifiedName Empty; public XmlQualifiedName() { } - public XmlQualifiedName(string name) { } - public XmlQualifiedName(string name, string ns) { } + public XmlQualifiedName(string? name) { } + public XmlQualifiedName(string? name, string? ns) { } public bool IsEmpty { get { throw null; } } public string Name { get { throw null; } } public string Namespace { get { throw null; } } - public override bool Equals(object other) { throw null; } + public override bool Equals(object? other) { throw null; } public override int GetHashCode() { throw null; } - public static bool operator ==(System.Xml.XmlQualifiedName a, System.Xml.XmlQualifiedName b) { throw null; } - public static bool operator !=(System.Xml.XmlQualifiedName a, System.Xml.XmlQualifiedName b) { throw null; } + public static bool operator ==(System.Xml.XmlQualifiedName? a, System.Xml.XmlQualifiedName? b) { throw null; } + public static bool operator !=(System.Xml.XmlQualifiedName? a, System.Xml.XmlQualifiedName? b) { throw null; } public override string ToString() { throw null; } public static string ToString(string name, string ns) { throw null; } } @@ -754,7 +773,7 @@ namespace System.Xml { protected XmlReader() { } public abstract int AttributeCount { get; } - public abstract string BaseURI { get; } + public abstract string? BaseURI { get; } public virtual bool CanReadBinaryContent { get { throw null; } } public virtual bool CanReadValueChunk { get { throw null; } } public virtual bool CanResolveEntity { get { throw null; } } @@ -765,8 +784,8 @@ namespace System.Xml public virtual bool IsDefault { get { throw null; } } public abstract bool IsEmptyElement { get; } public virtual string this[int i] { get { throw null; } } - public virtual string this[string name] { get { throw null; } } - public virtual string this[string name, string namespaceURI] { get { throw null; } } + public virtual string? this[string name] { get { throw null; } } + public virtual string? this[string name, string? namespaceURI] { get { throw null; } } public abstract string LocalName { get; } public virtual string Name { get { throw null; } } public abstract string NamespaceURI { get; } @@ -775,40 +794,40 @@ namespace System.Xml public abstract string Prefix { get; } public virtual char QuoteChar { get { throw null; } } public abstract System.Xml.ReadState ReadState { get; } - public virtual System.Xml.Schema.IXmlSchemaInfo SchemaInfo { get { throw null; } } - public virtual System.Xml.XmlReaderSettings Settings { get { throw null; } } + public virtual System.Xml.Schema.IXmlSchemaInfo? SchemaInfo { get { throw null; } } + public virtual System.Xml.XmlReaderSettings? Settings { get { throw null; } } public abstract string Value { get; } public virtual System.Type ValueType { get { throw null; } } public virtual string XmlLang { get { throw null; } } public virtual System.Xml.XmlSpace XmlSpace { get { throw null; } } public virtual void Close() { } public static System.Xml.XmlReader Create(System.IO.Stream input) { throw null; } - public static System.Xml.XmlReader Create(System.IO.Stream input, System.Xml.XmlReaderSettings settings) { throw null; } - public static System.Xml.XmlReader Create(System.IO.Stream input, System.Xml.XmlReaderSettings settings, string baseUri) { throw null; } - public static System.Xml.XmlReader Create(System.IO.Stream input, System.Xml.XmlReaderSettings settings, System.Xml.XmlParserContext inputContext) { throw null; } + public static System.Xml.XmlReader Create(System.IO.Stream input, System.Xml.XmlReaderSettings? settings) { throw null; } + public static System.Xml.XmlReader Create(System.IO.Stream input, System.Xml.XmlReaderSettings? settings, string? baseUri) { throw null; } + public static System.Xml.XmlReader Create(System.IO.Stream input, System.Xml.XmlReaderSettings? settings, System.Xml.XmlParserContext? inputContext) { throw null; } public static System.Xml.XmlReader Create(System.IO.TextReader input) { throw null; } - public static System.Xml.XmlReader Create(System.IO.TextReader input, System.Xml.XmlReaderSettings settings) { throw null; } - public static System.Xml.XmlReader Create(System.IO.TextReader input, System.Xml.XmlReaderSettings settings, string baseUri) { throw null; } - public static System.Xml.XmlReader Create(System.IO.TextReader input, System.Xml.XmlReaderSettings settings, System.Xml.XmlParserContext inputContext) { throw null; } + public static System.Xml.XmlReader Create(System.IO.TextReader input, System.Xml.XmlReaderSettings? settings) { throw null; } + public static System.Xml.XmlReader Create(System.IO.TextReader input, System.Xml.XmlReaderSettings? settings, string? baseUri) { throw null; } + public static System.Xml.XmlReader Create(System.IO.TextReader input, System.Xml.XmlReaderSettings? settings, System.Xml.XmlParserContext? inputContext) { throw null; } public static System.Xml.XmlReader Create(string inputUri) { throw null; } - public static System.Xml.XmlReader Create(string inputUri, System.Xml.XmlReaderSettings settings) { throw null; } - public static System.Xml.XmlReader Create(string inputUri, System.Xml.XmlReaderSettings settings, System.Xml.XmlParserContext inputContext) { throw null; } - public static System.Xml.XmlReader Create(System.Xml.XmlReader reader, System.Xml.XmlReaderSettings settings) { throw null; } + public static System.Xml.XmlReader Create(string inputUri, System.Xml.XmlReaderSettings? settings) { throw null; } + public static System.Xml.XmlReader Create(string inputUri, System.Xml.XmlReaderSettings? settings, System.Xml.XmlParserContext? inputContext) { throw null; } + public static System.Xml.XmlReader Create(System.Xml.XmlReader reader, System.Xml.XmlReaderSettings? settings) { throw null; } public void Dispose() { } protected virtual void Dispose(bool disposing) { } public abstract string GetAttribute(int i); - public abstract string GetAttribute(string name); - public abstract string GetAttribute(string name, string namespaceURI); + public abstract string? GetAttribute(string name); + public abstract string? GetAttribute(string name, string? namespaceURI); public virtual System.Threading.Tasks.Task GetValueAsync() { throw null; } public static bool IsName(string str) { throw null; } public static bool IsNameToken(string str) { throw null; } public virtual bool IsStartElement() { throw null; } public virtual bool IsStartElement(string name) { throw null; } public virtual bool IsStartElement(string localname, string ns) { throw null; } - public abstract string LookupNamespace(string prefix); + public abstract string? LookupNamespace(string prefix); public virtual void MoveToAttribute(int i) { } public abstract bool MoveToAttribute(string name); - public abstract bool MoveToAttribute(string name, string ns); + public abstract bool MoveToAttribute(string name, string? ns); public virtual System.Xml.XmlNodeType MoveToContent() { throw null; } [System.Diagnostics.DebuggerStepThroughAttribute] public virtual System.Threading.Tasks.Task MoveToContentAsync() { throw null; } @@ -818,9 +837,9 @@ namespace System.Xml public abstract bool Read(); public virtual System.Threading.Tasks.Task ReadAsync() { throw null; } public abstract bool ReadAttributeValue(); - public virtual object ReadContentAs(System.Type returnType, System.Xml.IXmlNamespaceResolver namespaceResolver) { throw null; } + public virtual object ReadContentAs(System.Type returnType, System.Xml.IXmlNamespaceResolver? namespaceResolver) { throw null; } [System.Diagnostics.DebuggerStepThroughAttribute] - public virtual System.Threading.Tasks.Task ReadContentAsAsync(System.Type returnType, System.Xml.IXmlNamespaceResolver namespaceResolver) { throw null; } + public virtual System.Threading.Tasks.Task ReadContentAsAsync(System.Type returnType, System.Xml.IXmlNamespaceResolver? namespaceResolver) { throw null; } public virtual int ReadContentAsBase64(byte[] buffer, int index, int count) { throw null; } public virtual System.Threading.Tasks.Task ReadContentAsBase64Async(byte[] buffer, int index, int count) { throw null; } public virtual int ReadContentAsBinHex(byte[] buffer, int index, int count) { throw null; } @@ -914,13 +933,13 @@ namespace System.Xml public int LinePositionOffset { get { throw null; } set { } } public long MaxCharactersFromEntities { get { throw null; } set { } } public long MaxCharactersInDocument { get { throw null; } set { } } - public System.Xml.XmlNameTable NameTable { get { throw null; } set { } } + public System.Xml.XmlNameTable? NameTable { get { throw null; } set { } } [System.ObsoleteAttribute("Use XmlReaderSettings.DtdProcessing property instead.")] public bool ProhibitDtd { get { throw null; } set { } } public System.Xml.Schema.XmlSchemaSet Schemas { get { throw null; } set { } } public System.Xml.Schema.XmlSchemaValidationFlags ValidationFlags { get { throw null; } set { } } public System.Xml.ValidationType ValidationType { get { throw null; } set { } } - public System.Xml.XmlResolver XmlResolver { set { } } + public System.Xml.XmlResolver? XmlResolver { set { } } public event System.Xml.Schema.ValidationEventHandler ValidationEventHandler { add { } remove { } } public System.Xml.XmlReaderSettings Clone() { throw null; } public void Reset() { } @@ -929,28 +948,28 @@ namespace System.Xml { protected XmlResolver() { } public virtual System.Net.ICredentials Credentials { set { } } - public abstract object GetEntity(System.Uri absoluteUri, string role, System.Type ofObjectToReturn); - public virtual System.Threading.Tasks.Task GetEntityAsync(System.Uri absoluteUri, string role, System.Type ofObjectToReturn) { throw null; } - public virtual System.Uri ResolveUri(System.Uri baseUri, string relativeUri) { throw null; } - public virtual bool SupportsType(System.Uri absoluteUri, System.Type type) { throw null; } + public abstract object? GetEntity(System.Uri absoluteUri, string? role, System.Type? ofObjectToReturn); + public virtual System.Threading.Tasks.Task GetEntityAsync(System.Uri absoluteUri, string? role, System.Type? ofObjectToReturn) { throw null; } + public virtual System.Uri ResolveUri(System.Uri? baseUri, string? relativeUri) { throw null; } + public virtual bool SupportsType(System.Uri absoluteUri, System.Type? type) { throw null; } } public partial class XmlSecureResolver : System.Xml.XmlResolver { - public XmlSecureResolver(System.Xml.XmlResolver resolver, string securityUrl) { } + public XmlSecureResolver(System.Xml.XmlResolver resolver, string? securityUrl) { } public override System.Net.ICredentials Credentials { set { } } - public override object GetEntity(System.Uri absoluteUri, string role, System.Type ofObjectToReturn) { throw null; } - public override System.Threading.Tasks.Task GetEntityAsync(System.Uri absoluteUri, string role, System.Type ofObjectToReturn) { throw null; } - public override System.Uri ResolveUri(System.Uri baseUri, string relativeUri) { throw null; } + public override object? GetEntity(System.Uri absoluteUri, string? role, System.Type? ofObjectToReturn) { throw null; } + public override System.Threading.Tasks.Task GetEntityAsync(System.Uri absoluteUri, string? role, System.Type? ofObjectToReturn) { throw null; } + public override System.Uri ResolveUri(System.Uri? baseUri, string? relativeUri) { throw null; } } public partial class XmlSignificantWhitespace : System.Xml.XmlCharacterData { - protected internal XmlSignificantWhitespace(string strData, System.Xml.XmlDocument doc) : base (default(string), default(System.Xml.XmlDocument)) { } + protected internal XmlSignificantWhitespace(string? strData, System.Xml.XmlDocument doc) : base (default(string), default(System.Xml.XmlDocument)) { } public override string LocalName { get { throw null; } } public override string Name { get { throw null; } } public override System.Xml.XmlNodeType NodeType { get { throw null; } } - public override System.Xml.XmlNode ParentNode { get { throw null; } } - public override System.Xml.XmlNode PreviousText { get { throw null; } } - public override string Value { get { throw null; } set { } } + public override System.Xml.XmlNode? ParentNode { get { throw null; } } + public override System.Xml.XmlNode? PreviousText { get { throw null; } } + public override string? Value { get { throw null; } set { } } public override System.Xml.XmlNode CloneNode(bool deep) { throw null; } public override void WriteContentTo(System.Xml.XmlWriter w) { } public override void WriteTo(System.Xml.XmlWriter w) { } @@ -963,13 +982,13 @@ namespace System.Xml } public partial class XmlText : System.Xml.XmlCharacterData { - protected internal XmlText(string strData, System.Xml.XmlDocument doc) : base (default(string), default(System.Xml.XmlDocument)) { } + protected internal XmlText(string? strData, System.Xml.XmlDocument doc) : base (default(string), default(System.Xml.XmlDocument)) { } public override string LocalName { get { throw null; } } public override string Name { get { throw null; } } public override System.Xml.XmlNodeType NodeType { get { throw null; } } - public override System.Xml.XmlNode ParentNode { get { throw null; } } - public override System.Xml.XmlNode PreviousText { get { throw null; } } - public override string Value { get { throw null; } set { } } + public override System.Xml.XmlNode? ParentNode { get { throw null; } } + public override System.Xml.XmlNode? PreviousText { get { throw null; } } + public override string? Value { get { throw null; } set { } } public override System.Xml.XmlNode CloneNode(bool deep) { throw null; } public virtual System.Xml.XmlText SplitText(int offset) { throw null; } public override void WriteContentTo(System.Xml.XmlWriter w) { } @@ -981,7 +1000,7 @@ namespace System.Xml protected XmlTextReader() { } public XmlTextReader(System.IO.Stream input) { } public XmlTextReader(System.IO.Stream input, System.Xml.XmlNameTable nt) { } - public XmlTextReader(System.IO.Stream xmlFragment, System.Xml.XmlNodeType fragType, System.Xml.XmlParserContext context) { } + public XmlTextReader(System.IO.Stream xmlFragment, System.Xml.XmlNodeType fragType, System.Xml.XmlParserContext? context) { } public XmlTextReader(System.IO.TextReader input) { } public XmlTextReader(System.IO.TextReader input, System.Xml.XmlNameTable nt) { } public XmlTextReader(string url) { } @@ -990,16 +1009,16 @@ namespace System.Xml public XmlTextReader(string url, System.IO.TextReader input) { } public XmlTextReader(string url, System.IO.TextReader input, System.Xml.XmlNameTable nt) { } public XmlTextReader(string url, System.Xml.XmlNameTable nt) { } - public XmlTextReader(string xmlFragment, System.Xml.XmlNodeType fragType, System.Xml.XmlParserContext context) { } + public XmlTextReader(string xmlFragment, System.Xml.XmlNodeType fragType, System.Xml.XmlParserContext? context) { } protected XmlTextReader(System.Xml.XmlNameTable nt) { } public override int AttributeCount { get { throw null; } } - public override string BaseURI { get { throw null; } } + public override string? BaseURI { get { throw null; } } public override bool CanReadBinaryContent { get { throw null; } } public override bool CanReadValueChunk { get { throw null; } } public override bool CanResolveEntity { get { throw null; } } public override int Depth { get { throw null; } } public System.Xml.DtdProcessing DtdProcessing { get { throw null; } set { } } - public System.Text.Encoding Encoding { get { throw null; } } + public System.Text.Encoding? Encoding { get { throw null; } } public System.Xml.EntityHandling EntityHandling { get { throw null; } set { } } public override bool EOF { get { throw null; } } public override bool HasValue { get { throw null; } } @@ -1022,19 +1041,19 @@ namespace System.Xml public override string Value { get { throw null; } } public System.Xml.WhitespaceHandling WhitespaceHandling { get { throw null; } set { } } public override string XmlLang { get { throw null; } } - public System.Xml.XmlResolver XmlResolver { set { } } + public System.Xml.XmlResolver? XmlResolver { set { } } public override System.Xml.XmlSpace XmlSpace { get { throw null; } } public override void Close() { } public override string GetAttribute(int i) { throw null; } - public override string GetAttribute(string name) { throw null; } - public override string GetAttribute(string localName, string namespaceURI) { throw null; } + public override string? GetAttribute(string name) { throw null; } + public override string? GetAttribute(string localName, string? namespaceURI) { throw null; } public System.Collections.Generic.IDictionary GetNamespacesInScope(System.Xml.XmlNamespaceScope scope) { throw null; } public System.IO.TextReader GetRemainder() { throw null; } public bool HasLineInfo() { throw null; } - public override string LookupNamespace(string prefix) { throw null; } + public override string? LookupNamespace(string prefix) { throw null; } public override void MoveToAttribute(int i) { } public override bool MoveToAttribute(string name) { throw null; } - public override bool MoveToAttribute(string localName, string namespaceURI) { throw null; } + public override bool MoveToAttribute(string localName, string? namespaceURI) { throw null; } public override bool MoveToElement() { throw null; } public override bool MoveToFirstAttribute() { throw null; } public override bool MoveToNextAttribute() { throw null; } @@ -1052,34 +1071,34 @@ namespace System.Xml public override void ResolveEntity() { } public override void Skip() { } System.Collections.Generic.IDictionary System.Xml.IXmlNamespaceResolver.GetNamespacesInScope(System.Xml.XmlNamespaceScope scope) { throw null; } - string System.Xml.IXmlNamespaceResolver.LookupNamespace(string prefix) { throw null; } - string System.Xml.IXmlNamespaceResolver.LookupPrefix(string namespaceName) { throw null; } + string? System.Xml.IXmlNamespaceResolver.LookupNamespace(string prefix) { throw null; } + string? System.Xml.IXmlNamespaceResolver.LookupPrefix(string namespaceName) { throw null; } } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public partial class XmlTextWriter : System.Xml.XmlWriter { - public XmlTextWriter(System.IO.Stream w, System.Text.Encoding encoding) { } + public XmlTextWriter(System.IO.Stream w, System.Text.Encoding? encoding) { } public XmlTextWriter(System.IO.TextWriter w) { } - public XmlTextWriter(string filename, System.Text.Encoding encoding) { } - public System.IO.Stream BaseStream { get { throw null; } } + public XmlTextWriter(string filename, System.Text.Encoding? encoding) { } + public System.IO.Stream? BaseStream { get { throw null; } } public System.Xml.Formatting Formatting { get { throw null; } set { } } public int Indentation { get { throw null; } set { } } public char IndentChar { get { throw null; } set { } } public bool Namespaces { get { throw null; } set { } } public char QuoteChar { get { throw null; } set { } } public override System.Xml.WriteState WriteState { get { throw null; } } - public override string XmlLang { get { throw null; } } + public override string? XmlLang { get { throw null; } } public override System.Xml.XmlSpace XmlSpace { get { throw null; } } public override void Close() { } public override void Flush() { } - public override string LookupPrefix(string ns) { throw null; } + public override string? LookupPrefix(string ns) { throw null; } public override void WriteBase64(byte[] buffer, int index, int count) { } public override void WriteBinHex(byte[] buffer, int index, int count) { } - public override void WriteCData(string text) { } + public override void WriteCData(string? text) { } public override void WriteCharEntity(char ch) { } public override void WriteChars(char[] buffer, int index, int count) { } - public override void WriteComment(string text) { } - public override void WriteDocType(string name, string pubid, string sysid, string subset) { } + public override void WriteComment(string? text) { } + public override void WriteDocType(string name, string? pubid, string? sysid, string? subset) { } public override void WriteEndAttribute() { } public override void WriteEndDocument() { } public override void WriteEndElement() { } @@ -1087,17 +1106,17 @@ namespace System.Xml public override void WriteFullEndElement() { } public override void WriteName(string name) { } public override void WriteNmToken(string name) { } - public override void WriteProcessingInstruction(string name, string text) { } - public override void WriteQualifiedName(string localName, string ns) { } + public override void WriteProcessingInstruction(string name, string? text) { } + public override void WriteQualifiedName(string localName, string? ns) { } public override void WriteRaw(char[] buffer, int index, int count) { } public override void WriteRaw(string data) { } - public override void WriteStartAttribute(string prefix, string localName, string ns) { } + public override void WriteStartAttribute(string? prefix, string localName, string? ns) { } public override void WriteStartDocument() { } public override void WriteStartDocument(bool standalone) { } - public override void WriteStartElement(string prefix, string localName, string ns) { } - public override void WriteString(string text) { } + public override void WriteStartElement(string? prefix, string localName, string? ns) { } + public override void WriteString(string? text) { } public override void WriteSurrogateCharEntity(char lowChar, char highChar) { } - public override void WriteWhitespace(string ws) { } + public override void WriteWhitespace(string? ws) { } } public enum XmlTokenizedType { @@ -1119,11 +1138,11 @@ namespace System.Xml { public XmlUrlResolver() { } public System.Net.Cache.RequestCachePolicy CachePolicy { set { } } - public override System.Net.ICredentials Credentials { set { } } - public System.Net.IWebProxy Proxy { set { } } - public override object GetEntity(System.Uri absoluteUri, string role, System.Type ofObjectToReturn) { throw null; } - public override System.Threading.Tasks.Task GetEntityAsync(System.Uri absoluteUri, string role, System.Type ofObjectToReturn) { throw null; } - public override System.Uri ResolveUri(System.Uri baseUri, string relativeUri) { throw null; } + public override System.Net.ICredentials? Credentials { set { } } + public System.Net.IWebProxy? Proxy { set { } } + public override object? GetEntity(System.Uri absoluteUri, string? role, System.Type? ofObjectToReturn) { throw null; } + public override System.Threading.Tasks.Task GetEntityAsync(System.Uri absoluteUri, string? role, System.Type? ofObjectToReturn) { throw null; } + public override System.Uri ResolveUri(System.Uri? baseUri, string? relativeUri) { throw null; } } [System.ObsoleteAttribute("Use XmlReader created by XmlReader.Create() method using appropriate XmlReaderSettings instead. https://go.microsoft.com/fwlink/?linkid=14202")] public partial class XmlValidatingReader : System.Xml.XmlReader, System.Xml.IXmlLineInfo, System.Xml.IXmlNamespaceResolver @@ -1132,11 +1151,11 @@ namespace System.Xml public XmlValidatingReader(string xmlFragment, System.Xml.XmlNodeType fragType, System.Xml.XmlParserContext context) { } public XmlValidatingReader(System.Xml.XmlReader reader) { } public override int AttributeCount { get { throw null; } } - public override string BaseURI { get { throw null; } } + public override string? BaseURI { get { throw null; } } public override bool CanReadBinaryContent { get { throw null; } } public override bool CanResolveEntity { get { throw null; } } public override int Depth { get { throw null; } } - public System.Text.Encoding Encoding { get { throw null; } } + public System.Text.Encoding? Encoding { get { throw null; } } public System.Xml.EntityHandling EntityHandling { get { throw null; } set { } } public override bool EOF { get { throw null; } } public override bool HasValue { get { throw null; } } @@ -1155,7 +1174,7 @@ namespace System.Xml public System.Xml.XmlReader Reader { get { throw null; } } public override System.Xml.ReadState ReadState { get { throw null; } } public System.Xml.Schema.XmlSchemaCollection Schemas { get { throw null; } } - public object SchemaType { get { throw null; } } + public object? SchemaType { get { throw null; } } public System.Xml.ValidationType ValidationType { get { throw null; } set { } } public override string Value { get { throw null; } } public override string XmlLang { get { throw null; } } @@ -1164,13 +1183,13 @@ namespace System.Xml public event System.Xml.Schema.ValidationEventHandler ValidationEventHandler { add { } remove { } } public override void Close() { } public override string GetAttribute(int i) { throw null; } - public override string GetAttribute(string name) { throw null; } - public override string GetAttribute(string localName, string namespaceURI) { throw null; } + public override string? GetAttribute(string name) { throw null; } + public override string? GetAttribute(string localName, string? namespaceURI) { throw null; } public bool HasLineInfo() { throw null; } - public override string LookupNamespace(string prefix) { throw null; } + public override string? LookupNamespace(string prefix) { throw null; } public override void MoveToAttribute(int i) { } public override bool MoveToAttribute(string name) { throw null; } - public override bool MoveToAttribute(string localName, string namespaceURI) { throw null; } + public override bool MoveToAttribute(string localName, string? namespaceURI) { throw null; } public override bool MoveToElement() { throw null; } public override bool MoveToFirstAttribute() { throw null; } public override bool MoveToNextAttribute() { throw null; } @@ -1181,7 +1200,7 @@ namespace System.Xml public override int ReadElementContentAsBase64(byte[] buffer, int index, int count) { throw null; } public override int ReadElementContentAsBinHex(byte[] buffer, int index, int count) { throw null; } public override string ReadString() { throw null; } - public object ReadTypedValue() { throw null; } + public object? ReadTypedValue() { throw null; } public override void ResolveEntity() { } System.Collections.Generic.IDictionary System.Xml.IXmlNamespaceResolver.GetNamespacesInScope(System.Xml.XmlNamespaceScope scope) { throw null; } string System.Xml.IXmlNamespaceResolver.LookupNamespace(string prefix) { throw null; } @@ -1189,66 +1208,66 @@ namespace System.Xml } public partial class XmlWhitespace : System.Xml.XmlCharacterData { - protected internal XmlWhitespace(string strData, System.Xml.XmlDocument doc) : base (default(string), default(System.Xml.XmlDocument)) { } + protected internal XmlWhitespace(string? strData, System.Xml.XmlDocument doc) : base (default(string), default(System.Xml.XmlDocument)) { } public override string LocalName { get { throw null; } } public override string Name { get { throw null; } } public override System.Xml.XmlNodeType NodeType { get { throw null; } } - public override System.Xml.XmlNode ParentNode { get { throw null; } } - public override System.Xml.XmlNode PreviousText { get { throw null; } } - public override string Value { get { throw null; } set { } } + public override System.Xml.XmlNode? ParentNode { get { throw null; } } + public override System.Xml.XmlNode? PreviousText { get { throw null; } } + public override string? Value { get { throw null; } set { } } public override System.Xml.XmlNode CloneNode(bool deep) { throw null; } public override void WriteContentTo(System.Xml.XmlWriter w) { } public override void WriteTo(System.Xml.XmlWriter w) { } } - public abstract partial class XmlWriter : System.IDisposable, System.IAsyncDisposable + public abstract partial class XmlWriter : System.IAsyncDisposable, System.IDisposable { protected XmlWriter() { } - public virtual System.Xml.XmlWriterSettings Settings { get { throw null; } } + public virtual System.Xml.XmlWriterSettings? Settings { get { throw null; } } public abstract System.Xml.WriteState WriteState { get; } - public virtual string XmlLang { get { throw null; } } + public virtual string? XmlLang { get { throw null; } } public virtual System.Xml.XmlSpace XmlSpace { get { throw null; } } public virtual void Close() { } public static System.Xml.XmlWriter Create(System.IO.Stream output) { throw null; } - public static System.Xml.XmlWriter Create(System.IO.Stream output, System.Xml.XmlWriterSettings settings) { throw null; } + public static System.Xml.XmlWriter Create(System.IO.Stream output, System.Xml.XmlWriterSettings? settings) { throw null; } public static System.Xml.XmlWriter Create(System.IO.TextWriter output) { throw null; } - public static System.Xml.XmlWriter Create(System.IO.TextWriter output, System.Xml.XmlWriterSettings settings) { throw null; } + public static System.Xml.XmlWriter Create(System.IO.TextWriter output, System.Xml.XmlWriterSettings? settings) { throw null; } public static System.Xml.XmlWriter Create(string outputFileName) { throw null; } - public static System.Xml.XmlWriter Create(string outputFileName, System.Xml.XmlWriterSettings settings) { throw null; } + public static System.Xml.XmlWriter Create(string outputFileName, System.Xml.XmlWriterSettings? settings) { throw null; } public static System.Xml.XmlWriter Create(System.Text.StringBuilder output) { throw null; } - public static System.Xml.XmlWriter Create(System.Text.StringBuilder output, System.Xml.XmlWriterSettings settings) { throw null; } + public static System.Xml.XmlWriter Create(System.Text.StringBuilder output, System.Xml.XmlWriterSettings? settings) { throw null; } public static System.Xml.XmlWriter Create(System.Xml.XmlWriter output) { throw null; } - public static System.Xml.XmlWriter Create(System.Xml.XmlWriter output, System.Xml.XmlWriterSettings settings) { throw null; } + public static System.Xml.XmlWriter Create(System.Xml.XmlWriter output, System.Xml.XmlWriterSettings? settings) { throw null; } public void Dispose() { } protected virtual void Dispose(bool disposing) { } public abstract void Flush(); public virtual System.Threading.Tasks.Task FlushAsync() { throw null; } - public abstract string LookupPrefix(string ns); + public abstract string? LookupPrefix(string ns); public virtual void WriteAttributes(System.Xml.XmlReader reader, bool defattr) { } [System.Diagnostics.DebuggerStepThroughAttribute] public virtual System.Threading.Tasks.Task WriteAttributesAsync(System.Xml.XmlReader reader, bool defattr) { throw null; } - public void WriteAttributeString(string localName, string value) { } - public void WriteAttributeString(string localName, string ns, string value) { } - public void WriteAttributeString(string prefix, string localName, string ns, string value) { } - public System.Threading.Tasks.Task WriteAttributeStringAsync(string prefix, string localName, string ns, string value) { throw null; } + public void WriteAttributeString(string localName, string? value) { } + public void WriteAttributeString(string localName, string? ns, string? value) { } + public void WriteAttributeString(string? prefix, string localName, string? ns, string? value) { } + public System.Threading.Tasks.Task WriteAttributeStringAsync(string? prefix, string localName, string? ns, string? value) { throw null; } public abstract void WriteBase64(byte[] buffer, int index, int count); public virtual System.Threading.Tasks.Task WriteBase64Async(byte[] buffer, int index, int count) { throw null; } public virtual void WriteBinHex(byte[] buffer, int index, int count) { } public virtual System.Threading.Tasks.Task WriteBinHexAsync(byte[] buffer, int index, int count) { throw null; } - public abstract void WriteCData(string text); - public virtual System.Threading.Tasks.Task WriteCDataAsync(string text) { throw null; } + public abstract void WriteCData(string? text); + public virtual System.Threading.Tasks.Task WriteCDataAsync(string? text) { throw null; } public abstract void WriteCharEntity(char ch); public virtual System.Threading.Tasks.Task WriteCharEntityAsync(char ch) { throw null; } public abstract void WriteChars(char[] buffer, int index, int count); public virtual System.Threading.Tasks.Task WriteCharsAsync(char[] buffer, int index, int count) { throw null; } - public abstract void WriteComment(string text); - public virtual System.Threading.Tasks.Task WriteCommentAsync(string text) { throw null; } - public abstract void WriteDocType(string name, string pubid, string sysid, string subset); - public virtual System.Threading.Tasks.Task WriteDocTypeAsync(string name, string pubid, string sysid, string subset) { throw null; } - public void WriteElementString(string localName, string value) { } - public void WriteElementString(string localName, string ns, string value) { } - public void WriteElementString(string prefix, string localName, string ns, string value) { } + public abstract void WriteComment(string? text); + public virtual System.Threading.Tasks.Task WriteCommentAsync(string? text) { throw null; } + public abstract void WriteDocType(string name, string? pubid, string? sysid, string? subset); + public virtual System.Threading.Tasks.Task WriteDocTypeAsync(string name, string? pubid, string? sysid, string? subset) { throw null; } + public void WriteElementString(string localName, string? value) { } + public void WriteElementString(string localName, string? ns, string? value) { } + public void WriteElementString(string? prefix, string localName, string? ns, string? value) { } [System.Diagnostics.DebuggerStepThroughAttribute] - public System.Threading.Tasks.Task WriteElementStringAsync(string prefix, string localName, string ns, string value) { throw null; } + public System.Threading.Tasks.Task WriteElementStringAsync(string? prefix, string localName, string? ns, string value) { throw null; } public abstract void WriteEndAttribute(); protected internal virtual System.Threading.Tasks.Task WriteEndAttributeAsync() { throw null; } public abstract void WriteEndDocument(); @@ -1268,29 +1287,29 @@ namespace System.Xml public virtual System.Threading.Tasks.Task WriteNodeAsync(System.Xml.XmlReader reader, bool defattr) { throw null; } [System.Diagnostics.DebuggerStepThroughAttribute] public virtual System.Threading.Tasks.Task WriteNodeAsync(System.Xml.XPath.XPathNavigator navigator, bool defattr) { throw null; } - public abstract void WriteProcessingInstruction(string name, string text); + public abstract void WriteProcessingInstruction(string name, string? text); public virtual System.Threading.Tasks.Task WriteProcessingInstructionAsync(string name, string text) { throw null; } - public virtual void WriteQualifiedName(string localName, string ns) { } + public virtual void WriteQualifiedName(string localName, string? ns) { } [System.Diagnostics.DebuggerStepThroughAttribute] - public virtual System.Threading.Tasks.Task WriteQualifiedNameAsync(string localName, string ns) { throw null; } + public virtual System.Threading.Tasks.Task WriteQualifiedNameAsync(string localName, string? ns) { throw null; } public abstract void WriteRaw(char[] buffer, int index, int count); public abstract void WriteRaw(string data); public virtual System.Threading.Tasks.Task WriteRawAsync(char[] buffer, int index, int count) { throw null; } public virtual System.Threading.Tasks.Task WriteRawAsync(string data) { throw null; } public void WriteStartAttribute(string localName) { } - public void WriteStartAttribute(string localName, string ns) { } - public abstract void WriteStartAttribute(string prefix, string localName, string ns); - protected internal virtual System.Threading.Tasks.Task WriteStartAttributeAsync(string prefix, string localName, string ns) { throw null; } + public void WriteStartAttribute(string localName, string? ns) { } + public abstract void WriteStartAttribute(string? prefix, string localName, string? ns); + protected internal virtual System.Threading.Tasks.Task WriteStartAttributeAsync(string? prefix, string localName, string? ns) { throw null; } public abstract void WriteStartDocument(); public abstract void WriteStartDocument(bool standalone); public virtual System.Threading.Tasks.Task WriteStartDocumentAsync() { throw null; } public virtual System.Threading.Tasks.Task WriteStartDocumentAsync(bool standalone) { throw null; } public void WriteStartElement(string localName) { } - public void WriteStartElement(string localName, string ns) { } - public abstract void WriteStartElement(string prefix, string localName, string ns); - public virtual System.Threading.Tasks.Task WriteStartElementAsync(string prefix, string localName, string ns) { throw null; } - public abstract void WriteString(string text); - public virtual System.Threading.Tasks.Task WriteStringAsync(string text) { throw null; } + public void WriteStartElement(string localName, string? ns) { } + public abstract void WriteStartElement(string? prefix, string localName, string? ns); + public virtual System.Threading.Tasks.Task WriteStartElementAsync(string? prefix, string localName, string? ns) { throw null; } + public abstract void WriteString(string? text); + public virtual System.Threading.Tasks.Task WriteStringAsync(string? text) { throw null; } public abstract void WriteSurrogateCharEntity(char lowChar, char highChar); public virtual System.Threading.Tasks.Task WriteSurrogateCharEntityAsync(char lowChar, char highChar) { throw null; } public virtual void WriteValue(bool value) { } @@ -1302,11 +1321,11 @@ namespace System.Xml public virtual void WriteValue(long value) { } public virtual void WriteValue(object value) { } public virtual void WriteValue(float value) { } - public virtual void WriteValue(string value) { } - public abstract void WriteWhitespace(string ws); - public virtual System.Threading.Tasks.Task WriteWhitespaceAsync(string ws) { throw null; } + public virtual void WriteValue(string? value) { } + public abstract void WriteWhitespace(string? ws); + public virtual System.Threading.Tasks.Task WriteWhitespaceAsync(string? ws) { throw null; } public System.Threading.Tasks.ValueTask DisposeAsync() { throw null; } - protected virtual System.Threading.Tasks.ValueTask DisposeAsyncCore() { throw null; } + protected virtual System.Threading.Tasks.ValueTask DisposeAsyncCore() { throw null; } } public sealed partial class XmlWriterSettings { @@ -1344,20 +1363,20 @@ namespace System.Xml.Resolvers { public XmlPreloadedResolver() { } public XmlPreloadedResolver(System.Xml.Resolvers.XmlKnownDtds preloadedDtds) { } - public XmlPreloadedResolver(System.Xml.XmlResolver fallbackResolver) { } - public XmlPreloadedResolver(System.Xml.XmlResolver fallbackResolver, System.Xml.Resolvers.XmlKnownDtds preloadedDtds) { } - public XmlPreloadedResolver(System.Xml.XmlResolver fallbackResolver, System.Xml.Resolvers.XmlKnownDtds preloadedDtds, System.Collections.Generic.IEqualityComparer uriComparer) { } + public XmlPreloadedResolver(System.Xml.XmlResolver? fallbackResolver) { } + public XmlPreloadedResolver(System.Xml.XmlResolver? fallbackResolver, System.Xml.Resolvers.XmlKnownDtds preloadedDtds) { } + public XmlPreloadedResolver(System.Xml.XmlResolver? fallbackResolver, System.Xml.Resolvers.XmlKnownDtds preloadedDtds, System.Collections.Generic.IEqualityComparer? uriComparer) { } public override System.Net.ICredentials Credentials { set { } } public System.Collections.Generic.IEnumerable PreloadedUris { get { throw null; } } public void Add(System.Uri uri, byte[] value) { } public void Add(System.Uri uri, byte[] value, int offset, int count) { } public void Add(System.Uri uri, System.IO.Stream value) { } public void Add(System.Uri uri, string value) { } - public override object GetEntity(System.Uri absoluteUri, string role, System.Type ofObjectToReturn) { throw null; } - public override System.Threading.Tasks.Task GetEntityAsync(System.Uri absoluteUri, string role, System.Type ofObjectToReturn) { throw null; } + public override object? GetEntity(System.Uri absoluteUri, string? role, System.Type? ofObjectToReturn) { throw null; } + public override System.Threading.Tasks.Task GetEntityAsync(System.Uri absoluteUri, string? role, System.Type? ofObjectToReturn) { throw null; } public void Remove(System.Uri uri) { } - public override System.Uri ResolveUri(System.Uri baseUri, string relativeUri) { throw null; } - public override bool SupportsType(System.Uri absoluteUri, System.Type type) { throw null; } + public override System.Uri ResolveUri(System.Uri? baseUri, string? relativeUri) { throw null; } + public override bool SupportsType(System.Uri absoluteUri, System.Type? type) { throw null; } } } namespace System.Xml.Schema @@ -1366,10 +1385,10 @@ namespace System.Xml.Schema { bool IsDefault { get; } bool IsNil { get; } - System.Xml.Schema.XmlSchemaSimpleType MemberType { get; } - System.Xml.Schema.XmlSchemaAttribute SchemaAttribute { get; } - System.Xml.Schema.XmlSchemaElement SchemaElement { get; } - System.Xml.Schema.XmlSchemaType SchemaType { get; } + System.Xml.Schema.XmlSchemaSimpleType? MemberType { get; } + System.Xml.Schema.XmlSchemaAttribute? SchemaAttribute { get; } + System.Xml.Schema.XmlSchemaElement? SchemaElement { get; } + System.Xml.Schema.XmlSchemaType? SchemaType { get; } System.Xml.Schema.XmlSchemaValidity Validity { get; } } public partial class ValidationEventArgs : System.EventArgs @@ -1379,7 +1398,7 @@ namespace System.Xml.Schema public string Message { get { throw null; } } public System.Xml.Schema.XmlSeverityType Severity { get { throw null; } } } - public delegate void ValidationEventHandler(object sender, System.Xml.Schema.ValidationEventArgs e); + public delegate void ValidationEventHandler(object? sender, System.Xml.Schema.ValidationEventArgs e); public sealed partial class XmlAtomicValue : System.Xml.XPath.XPathItem, System.ICloneable { internal XmlAtomicValue() { } @@ -1396,7 +1415,7 @@ namespace System.Xml.Schema public System.Xml.Schema.XmlAtomicValue Clone() { throw null; } object System.ICloneable.Clone() { throw null; } public override string ToString() { throw null; } - public override object ValueAs(System.Type type, System.Xml.IXmlNamespaceResolver nsResolver) { throw null; } + public override object ValueAs(System.Type type, System.Xml.IXmlNamespaceResolver? nsResolver) { throw null; } } [System.Xml.Serialization.XmlRootAttribute("schema", Namespace="http://www.w3.org/2001/XMLSchema")] public partial class XmlSchema : System.Xml.Schema.XmlSchemaObject @@ -1425,7 +1444,7 @@ namespace System.Xml.Schema [System.Xml.Serialization.XmlIgnoreAttribute] public System.Xml.Schema.XmlSchemaObjectTable Groups { get { throw null; } } [System.Xml.Serialization.XmlAttributeAttribute("id", DataType="ID")] - public string Id { get { throw null; } set { } } + public string? Id { get { throw null; } set { } } [System.Xml.Serialization.XmlElementAttribute("import", typeof(System.Xml.Schema.XmlSchemaImport))] [System.Xml.Serialization.XmlElementAttribute("include", typeof(System.Xml.Schema.XmlSchemaInclude))] [System.Xml.Serialization.XmlElementAttribute("redefine", typeof(System.Xml.Schema.XmlSchemaRedefine))] @@ -1446,24 +1465,24 @@ namespace System.Xml.Schema [System.Xml.Serialization.XmlIgnoreAttribute] public System.Xml.Schema.XmlSchemaObjectTable SchemaTypes { get { throw null; } } [System.Xml.Serialization.XmlAttributeAttribute("targetNamespace", DataType="anyURI")] - public string TargetNamespace { get { throw null; } set { } } + public string? TargetNamespace { get { throw null; } set { } } [System.Xml.Serialization.XmlAnyAttributeAttribute] - public System.Xml.XmlAttribute[] UnhandledAttributes { get { throw null; } set { } } + public System.Xml.XmlAttribute[]? UnhandledAttributes { get { throw null; } set { } } [System.Xml.Serialization.XmlAttributeAttribute("version", DataType="token")] - public string Version { get { throw null; } set { } } + public string? Version { get { throw null; } set { } } [System.ObsoleteAttribute("Use System.Xml.Schema.XmlSchemaSet for schema compilation and validation. https://go.microsoft.com/fwlink/?linkid=14202")] - public void Compile(System.Xml.Schema.ValidationEventHandler validationEventHandler) { } + public void Compile(System.Xml.Schema.ValidationEventHandler? validationEventHandler) { } [System.ObsoleteAttribute("Use System.Xml.Schema.XmlSchemaSet for schema compilation and validation. https://go.microsoft.com/fwlink/?linkid=14202")] - public void Compile(System.Xml.Schema.ValidationEventHandler validationEventHandler, System.Xml.XmlResolver resolver) { } - public static System.Xml.Schema.XmlSchema Read(System.IO.Stream stream, System.Xml.Schema.ValidationEventHandler validationEventHandler) { throw null; } - public static System.Xml.Schema.XmlSchema Read(System.IO.TextReader reader, System.Xml.Schema.ValidationEventHandler validationEventHandler) { throw null; } - public static System.Xml.Schema.XmlSchema Read(System.Xml.XmlReader reader, System.Xml.Schema.ValidationEventHandler validationEventHandler) { throw null; } + public void Compile(System.Xml.Schema.ValidationEventHandler? validationEventHandler, System.Xml.XmlResolver? resolver) { } + public static System.Xml.Schema.XmlSchema? Read(System.IO.Stream stream, System.Xml.Schema.ValidationEventHandler? validationEventHandler) { throw null; } + public static System.Xml.Schema.XmlSchema? Read(System.IO.TextReader reader, System.Xml.Schema.ValidationEventHandler? validationEventHandler) { throw null; } + public static System.Xml.Schema.XmlSchema? Read(System.Xml.XmlReader reader, System.Xml.Schema.ValidationEventHandler? validationEventHandler) { throw null; } public void Write(System.IO.Stream stream) { } - public void Write(System.IO.Stream stream, System.Xml.XmlNamespaceManager namespaceManager) { } + public void Write(System.IO.Stream stream, System.Xml.XmlNamespaceManager? namespaceManager) { } public void Write(System.IO.TextWriter writer) { } - public void Write(System.IO.TextWriter writer, System.Xml.XmlNamespaceManager namespaceManager) { } + public void Write(System.IO.TextWriter writer, System.Xml.XmlNamespaceManager? namespaceManager) { } public void Write(System.Xml.XmlWriter writer) { } - public void Write(System.Xml.XmlWriter writer, System.Xml.XmlNamespaceManager namespaceManager) { } + public void Write(System.Xml.XmlWriter writer, System.Xml.XmlNamespaceManager? namespaceManager) { } } public partial class XmlSchemaAll : System.Xml.Schema.XmlSchemaGroupBase { @@ -1475,28 +1494,28 @@ namespace System.Xml.Schema { public XmlSchemaAnnotated() { } [System.Xml.Serialization.XmlElementAttribute("annotation", typeof(System.Xml.Schema.XmlSchemaAnnotation))] - public System.Xml.Schema.XmlSchemaAnnotation Annotation { get { throw null; } set { } } - [System.Xml.Serialization.XmlAttributeAttribute("id", DataType="ID")] - public string Id { get { throw null; } set { } } + public System.Xml.Schema.XmlSchemaAnnotation? Annotation { get { throw null; } set { } } + [System.Xml.Serialization.XmlAttributeAttribute("id", DataType = "ID")] + public string? Id { get { throw null; } set { } } [System.Xml.Serialization.XmlAnyAttributeAttribute] - public System.Xml.XmlAttribute[] UnhandledAttributes { get { throw null; } set { } } + public System.Xml.XmlAttribute[]? UnhandledAttributes { get { throw null; } set { } } } public partial class XmlSchemaAnnotation : System.Xml.Schema.XmlSchemaObject { public XmlSchemaAnnotation() { } [System.Xml.Serialization.XmlAttributeAttribute("id", DataType="ID")] - public string Id { get { throw null; } set { } } + public string? Id { get { throw null; } set { } } [System.Xml.Serialization.XmlElementAttribute("appinfo", typeof(System.Xml.Schema.XmlSchemaAppInfo))] [System.Xml.Serialization.XmlElementAttribute("documentation", typeof(System.Xml.Schema.XmlSchemaDocumentation))] public System.Xml.Schema.XmlSchemaObjectCollection Items { get { throw null; } } [System.Xml.Serialization.XmlAnyAttributeAttribute] - public System.Xml.XmlAttribute[] UnhandledAttributes { get { throw null; } set { } } + public System.Xml.XmlAttribute[]? UnhandledAttributes { get { throw null; } set { } } } public partial class XmlSchemaAny : System.Xml.Schema.XmlSchemaParticle { public XmlSchemaAny() { } [System.Xml.Serialization.XmlAttributeAttribute("namespace")] - public string Namespace { get { throw null; } set { } } + public string? Namespace { get { throw null; } set { } } [System.ComponentModel.DefaultValueAttribute(System.Xml.Schema.XmlSchemaContentProcessing.None)] [System.Xml.Serialization.XmlAttributeAttribute("processContents")] public System.Xml.Schema.XmlSchemaContentProcessing ProcessContents { get { throw null; } set { } } @@ -1505,7 +1524,7 @@ namespace System.Xml.Schema { public XmlSchemaAnyAttribute() { } [System.Xml.Serialization.XmlAttributeAttribute("namespace")] - public string Namespace { get { throw null; } set { } } + public string? Namespace { get { throw null; } set { } } [System.ComponentModel.DefaultValueAttribute(System.Xml.Schema.XmlSchemaContentProcessing.None)] [System.Xml.Serialization.XmlAttributeAttribute("processContents")] public System.Xml.Schema.XmlSchemaContentProcessing ProcessContents { get { throw null; } set { } } @@ -1515,35 +1534,35 @@ namespace System.Xml.Schema public XmlSchemaAppInfo() { } [System.Xml.Serialization.XmlAnyElementAttribute] [System.Xml.Serialization.XmlTextAttribute] - public System.Xml.XmlNode[] Markup { get { throw null; } set { } } + public System.Xml.XmlNode[]? Markup { get { throw null; } set { } } [System.Xml.Serialization.XmlAttributeAttribute("source", DataType="anyURI")] - public string Source { get { throw null; } set { } } + public string? Source { get { throw null; } set { } } } public partial class XmlSchemaAttribute : System.Xml.Schema.XmlSchemaAnnotated { public XmlSchemaAttribute() { } [System.Xml.Serialization.XmlIgnoreAttribute] - public System.Xml.Schema.XmlSchemaSimpleType AttributeSchemaType { get { throw null; } } + public System.Xml.Schema.XmlSchemaSimpleType? AttributeSchemaType { get { throw null; } } [System.ObsoleteAttribute("This property has been deprecated. Please use AttributeSchemaType property that returns a strongly typed attribute type. https://go.microsoft.com/fwlink/?linkid=14202")] [System.Xml.Serialization.XmlIgnoreAttribute] - public object AttributeType { get { throw null; } } + public object? AttributeType { get { throw null; } } [System.ComponentModel.DefaultValueAttribute(null)] [System.Xml.Serialization.XmlAttributeAttribute("default")] - public string DefaultValue { get { throw null; } set { } } + public string? DefaultValue { get { throw null; } set { } } [System.ComponentModel.DefaultValueAttribute(null)] [System.Xml.Serialization.XmlAttributeAttribute("fixed")] - public string FixedValue { get { throw null; } set { } } + public string? FixedValue { get { throw null; } set { } } [System.ComponentModel.DefaultValueAttribute(System.Xml.Schema.XmlSchemaForm.None)] [System.Xml.Serialization.XmlAttributeAttribute("form")] public System.Xml.Schema.XmlSchemaForm Form { get { throw null; } set { } } [System.Xml.Serialization.XmlAttributeAttribute("name")] - public string Name { get { throw null; } set { } } + public string? Name { get { throw null; } set { } } [System.Xml.Serialization.XmlIgnoreAttribute] public System.Xml.XmlQualifiedName QualifiedName { get { throw null; } } [System.Xml.Serialization.XmlAttributeAttribute("ref")] public System.Xml.XmlQualifiedName RefName { get { throw null; } set { } } [System.Xml.Serialization.XmlElementAttribute("simpleType")] - public System.Xml.Schema.XmlSchemaSimpleType SchemaType { get { throw null; } set { } } + public System.Xml.Schema.XmlSchemaSimpleType? SchemaType { get { throw null; } set { } } [System.Xml.Serialization.XmlAttributeAttribute("type")] public System.Xml.XmlQualifiedName SchemaTypeName { get { throw null; } set { } } [System.ComponentModel.DefaultValueAttribute(System.Xml.Schema.XmlSchemaUse.None)] @@ -1554,21 +1573,22 @@ namespace System.Xml.Schema { public XmlSchemaAttributeGroup() { } [System.Xml.Serialization.XmlElementAttribute("anyAttribute")] - public System.Xml.Schema.XmlSchemaAnyAttribute AnyAttribute { get { throw null; } set { } } + public System.Xml.Schema.XmlSchemaAnyAttribute? AnyAttribute { get { throw null; } set { } } [System.Xml.Serialization.XmlElementAttribute("attribute", typeof(System.Xml.Schema.XmlSchemaAttribute))] [System.Xml.Serialization.XmlElementAttribute("attributeGroup", typeof(System.Xml.Schema.XmlSchemaAttributeGroupRef))] public System.Xml.Schema.XmlSchemaObjectCollection Attributes { get { throw null; } } [System.Xml.Serialization.XmlAttributeAttribute("name")] - public string Name { get { throw null; } set { } } + public string? Name { get { throw null; } set { } } [System.Xml.Serialization.XmlIgnoreAttribute] public System.Xml.XmlQualifiedName QualifiedName { get { throw null; } } [System.Xml.Serialization.XmlIgnoreAttribute] - public System.Xml.Schema.XmlSchemaAttributeGroup RedefinedAttributeGroup { get { throw null; } } + public System.Xml.Schema.XmlSchemaAttributeGroup? RedefinedAttributeGroup { get { throw null; } } } public partial class XmlSchemaAttributeGroupRef : System.Xml.Schema.XmlSchemaAnnotated { public XmlSchemaAttributeGroupRef() { } [System.Xml.Serialization.XmlAttributeAttribute("ref")] + [System.Diagnostics.CodeAnalysis.AllowNullAttribute] public System.Xml.XmlQualifiedName RefName { get { throw null; } set { } } } public partial class XmlSchemaChoice : System.Xml.Schema.XmlSchemaGroupBase @@ -1587,19 +1607,19 @@ namespace System.Xml.Schema public XmlSchemaCollection() { } public XmlSchemaCollection(System.Xml.XmlNameTable nametable) { } public int Count { get { throw null; } } - public System.Xml.Schema.XmlSchema this[string ns] { get { throw null; } } + public System.Xml.Schema.XmlSchema? this[string? ns] { get { throw null; } } public System.Xml.XmlNameTable NameTable { get { throw null; } } int System.Collections.ICollection.Count { get { throw null; } } bool System.Collections.ICollection.IsSynchronized { get { throw null; } } object System.Collections.ICollection.SyncRoot { get { throw null; } } public event System.Xml.Schema.ValidationEventHandler ValidationEventHandler { add { } remove { } } - public System.Xml.Schema.XmlSchema Add(string ns, string uri) { throw null; } - public System.Xml.Schema.XmlSchema Add(string ns, System.Xml.XmlReader reader) { throw null; } - public System.Xml.Schema.XmlSchema Add(string ns, System.Xml.XmlReader reader, System.Xml.XmlResolver resolver) { throw null; } - public System.Xml.Schema.XmlSchema Add(System.Xml.Schema.XmlSchema schema) { throw null; } - public System.Xml.Schema.XmlSchema Add(System.Xml.Schema.XmlSchema schema, System.Xml.XmlResolver resolver) { throw null; } + public System.Xml.Schema.XmlSchema? Add(string? ns, string uri) { throw null; } + public System.Xml.Schema.XmlSchema? Add(string? ns, System.Xml.XmlReader reader) { throw null; } + public System.Xml.Schema.XmlSchema? Add(string? ns, System.Xml.XmlReader reader, System.Xml.XmlResolver? resolver) { throw null; } + public System.Xml.Schema.XmlSchema? Add(System.Xml.Schema.XmlSchema schema) { throw null; } + public System.Xml.Schema.XmlSchema? Add(System.Xml.Schema.XmlSchema schema, System.Xml.XmlResolver? resolver) { throw null; } public void Add(System.Xml.Schema.XmlSchemaCollection schema) { } - public bool Contains(string ns) { throw null; } + public bool Contains(string? ns) { throw null; } public bool Contains(System.Xml.Schema.XmlSchema schema) { throw null; } public void CopyTo(System.Xml.Schema.XmlSchema[] array, int index) { } public System.Xml.Schema.XmlSchemaCollectionEnumerator GetEnumerator() { throw null; } @@ -1609,8 +1629,8 @@ namespace System.Xml.Schema public sealed partial class XmlSchemaCollectionEnumerator : System.Collections.IEnumerator { internal XmlSchemaCollectionEnumerator() { } - public System.Xml.Schema.XmlSchema Current { get { throw null; } } - object System.Collections.IEnumerator.Current { get { throw null; } } + public System.Xml.Schema.XmlSchema? Current { get { throw null; } } + object? System.Collections.IEnumerator.Current { get { throw null; } } public bool MoveNext() { throw null; } bool System.Collections.IEnumerator.MoveNext() { throw null; } void System.Collections.IEnumerator.Reset() { } @@ -1625,7 +1645,7 @@ namespace System.Xml.Schema public XmlSchemaComplexContent() { } [System.Xml.Serialization.XmlElementAttribute("extension", typeof(System.Xml.Schema.XmlSchemaComplexContentExtension))] [System.Xml.Serialization.XmlElementAttribute("restriction", typeof(System.Xml.Schema.XmlSchemaComplexContentRestriction))] - public override System.Xml.Schema.XmlSchemaContent Content { get { throw null; } set { } } + public override System.Xml.Schema.XmlSchemaContent? Content { get { throw null; } set { } } [System.Xml.Serialization.XmlAttributeAttribute("mixed")] public bool IsMixed { get { throw null; } set { } } } @@ -1633,7 +1653,7 @@ namespace System.Xml.Schema { public XmlSchemaComplexContentExtension() { } [System.Xml.Serialization.XmlElementAttribute("anyAttribute")] - public System.Xml.Schema.XmlSchemaAnyAttribute AnyAttribute { get { throw null; } set { } } + public System.Xml.Schema.XmlSchemaAnyAttribute? AnyAttribute { get { throw null; } set { } } [System.Xml.Serialization.XmlElementAttribute("attribute", typeof(System.Xml.Schema.XmlSchemaAttribute))] [System.Xml.Serialization.XmlElementAttribute("attributeGroup", typeof(System.Xml.Schema.XmlSchemaAttributeGroupRef))] public System.Xml.Schema.XmlSchemaObjectCollection Attributes { get { throw null; } } @@ -1643,13 +1663,13 @@ namespace System.Xml.Schema [System.Xml.Serialization.XmlElementAttribute("choice", typeof(System.Xml.Schema.XmlSchemaChoice))] [System.Xml.Serialization.XmlElementAttribute("group", typeof(System.Xml.Schema.XmlSchemaGroupRef))] [System.Xml.Serialization.XmlElementAttribute("sequence", typeof(System.Xml.Schema.XmlSchemaSequence))] - public System.Xml.Schema.XmlSchemaParticle Particle { get { throw null; } set { } } + public System.Xml.Schema.XmlSchemaParticle? Particle { get { throw null; } set { } } } public partial class XmlSchemaComplexContentRestriction : System.Xml.Schema.XmlSchemaContent { public XmlSchemaComplexContentRestriction() { } [System.Xml.Serialization.XmlElementAttribute("anyAttribute")] - public System.Xml.Schema.XmlSchemaAnyAttribute AnyAttribute { get { throw null; } set { } } + public System.Xml.Schema.XmlSchemaAnyAttribute? AnyAttribute { get { throw null; } set { } } [System.Xml.Serialization.XmlElementAttribute("attribute", typeof(System.Xml.Schema.XmlSchemaAttribute))] [System.Xml.Serialization.XmlElementAttribute("attributeGroup", typeof(System.Xml.Schema.XmlSchemaAttributeGroupRef))] public System.Xml.Schema.XmlSchemaObjectCollection Attributes { get { throw null; } } @@ -1659,20 +1679,20 @@ namespace System.Xml.Schema [System.Xml.Serialization.XmlElementAttribute("choice", typeof(System.Xml.Schema.XmlSchemaChoice))] [System.Xml.Serialization.XmlElementAttribute("group", typeof(System.Xml.Schema.XmlSchemaGroupRef))] [System.Xml.Serialization.XmlElementAttribute("sequence", typeof(System.Xml.Schema.XmlSchemaSequence))] - public System.Xml.Schema.XmlSchemaParticle Particle { get { throw null; } set { } } + public System.Xml.Schema.XmlSchemaParticle? Particle { get { throw null; } set { } } } public partial class XmlSchemaComplexType : System.Xml.Schema.XmlSchemaType { public XmlSchemaComplexType() { } [System.Xml.Serialization.XmlElementAttribute("anyAttribute")] - public System.Xml.Schema.XmlSchemaAnyAttribute AnyAttribute { get { throw null; } set { } } + public System.Xml.Schema.XmlSchemaAnyAttribute? AnyAttribute { get { throw null; } set { } } [System.Xml.Serialization.XmlElementAttribute("attribute", typeof(System.Xml.Schema.XmlSchemaAttribute))] [System.Xml.Serialization.XmlElementAttribute("attributeGroup", typeof(System.Xml.Schema.XmlSchemaAttributeGroupRef))] public System.Xml.Schema.XmlSchemaObjectCollection Attributes { get { throw null; } } [System.Xml.Serialization.XmlIgnoreAttribute] public System.Xml.Schema.XmlSchemaObjectTable AttributeUses { get { throw null; } } [System.Xml.Serialization.XmlIgnoreAttribute] - public System.Xml.Schema.XmlSchemaAnyAttribute AttributeWildcard { get { throw null; } } + public System.Xml.Schema.XmlSchemaAnyAttribute? AttributeWildcard { get { throw null; } } [System.ComponentModel.DefaultValueAttribute(System.Xml.Schema.XmlSchemaDerivationMethod.None)] [System.Xml.Serialization.XmlAttributeAttribute("block")] public System.Xml.Schema.XmlSchemaDerivationMethod Block { get { throw null; } set { } } @@ -1680,7 +1700,7 @@ namespace System.Xml.Schema public System.Xml.Schema.XmlSchemaDerivationMethod BlockResolved { get { throw null; } } [System.Xml.Serialization.XmlElementAttribute("complexContent", typeof(System.Xml.Schema.XmlSchemaComplexContent))] [System.Xml.Serialization.XmlElementAttribute("simpleContent", typeof(System.Xml.Schema.XmlSchemaSimpleContent))] - public System.Xml.Schema.XmlSchemaContentModel ContentModel { get { throw null; } set { } } + public System.Xml.Schema.XmlSchemaContentModel? ContentModel { get { throw null; } set { } } [System.Xml.Serialization.XmlIgnoreAttribute] public System.Xml.Schema.XmlSchemaContentType ContentType { get { throw null; } } [System.Xml.Serialization.XmlIgnoreAttribute] @@ -1695,7 +1715,7 @@ namespace System.Xml.Schema [System.Xml.Serialization.XmlElementAttribute("choice", typeof(System.Xml.Schema.XmlSchemaChoice))] [System.Xml.Serialization.XmlElementAttribute("group", typeof(System.Xml.Schema.XmlSchemaGroupRef))] [System.Xml.Serialization.XmlElementAttribute("sequence", typeof(System.Xml.Schema.XmlSchemaSequence))] - public System.Xml.Schema.XmlSchemaParticle Particle { get { throw null; } set { } } + public System.Xml.Schema.XmlSchemaParticle? Particle { get { throw null; } set { } } } public abstract partial class XmlSchemaContent : System.Xml.Schema.XmlSchemaAnnotated { @@ -1705,7 +1725,7 @@ namespace System.Xml.Schema { protected XmlSchemaContentModel() { } [System.Xml.Serialization.XmlIgnoreAttribute] - public abstract System.Xml.Schema.XmlSchemaContent Content { get; set; } + public abstract System.Xml.Schema.XmlSchemaContent? Content { get; set; } } public enum XmlSchemaContentProcessing { @@ -1735,7 +1755,7 @@ namespace System.Xml.Schema public virtual object ChangeType(object value, System.Type targetType) { throw null; } public virtual object ChangeType(object value, System.Type targetType, System.Xml.IXmlNamespaceResolver namespaceResolver) { throw null; } public virtual bool IsDerivedFrom(System.Xml.Schema.XmlSchemaDatatype datatype) { throw null; } - public abstract object ParseValue(string s, System.Xml.XmlNameTable nameTable, System.Xml.IXmlNamespaceResolver nsmgr); + public abstract object ParseValue(string s, System.Xml.XmlNameTable? nameTable, System.Xml.IXmlNamespaceResolver? nsmgr); } public enum XmlSchemaDatatypeVariety { @@ -1767,12 +1787,13 @@ namespace System.Xml.Schema { public XmlSchemaDocumentation() { } [System.Xml.Serialization.XmlAttributeAttribute("xml:lang")] - public string Language { get { throw null; } set { } } + [System.Diagnostics.CodeAnalysis.DisallowNullAttribute] + public string? Language { get { throw null; } set { } } [System.Xml.Serialization.XmlAnyElementAttribute] [System.Xml.Serialization.XmlTextAttribute] - public System.Xml.XmlNode[] Markup { get { throw null; } set { } } + public System.Xml.XmlNode[]? Markup { get { throw null; } set { } } [System.Xml.Serialization.XmlAttributeAttribute("source", DataType="anyURI")] - public string Source { get { throw null; } set { } } + public string? Source { get { throw null; } set { } } } public partial class XmlSchemaElement : System.Xml.Schema.XmlSchemaParticle { @@ -1788,12 +1809,12 @@ namespace System.Xml.Schema public System.Xml.Schema.XmlSchemaObjectCollection Constraints { get { throw null; } } [System.ComponentModel.DefaultValueAttribute(null)] [System.Xml.Serialization.XmlAttributeAttribute("default")] - public string DefaultValue { get { throw null; } set { } } + public string? DefaultValue { get { throw null; } set { } } [System.Xml.Serialization.XmlIgnoreAttribute] - public System.Xml.Schema.XmlSchemaType ElementSchemaType { get { throw null; } } + public System.Xml.Schema.XmlSchemaType? ElementSchemaType { get { throw null; } } [System.ObsoleteAttribute("This property has been deprecated. Please use ElementSchemaType property that returns a strongly typed element type. https://go.microsoft.com/fwlink/?linkid=14202")] [System.Xml.Serialization.XmlIgnoreAttribute] - public object ElementType { get { throw null; } } + public object? ElementType { get { throw null; } } [System.ComponentModel.DefaultValueAttribute(System.Xml.Schema.XmlSchemaDerivationMethod.None)] [System.Xml.Serialization.XmlAttributeAttribute("final")] public System.Xml.Schema.XmlSchemaDerivationMethod Final { get { throw null; } set { } } @@ -1801,7 +1822,7 @@ namespace System.Xml.Schema public System.Xml.Schema.XmlSchemaDerivationMethod FinalResolved { get { throw null; } } [System.ComponentModel.DefaultValueAttribute(null)] [System.Xml.Serialization.XmlAttributeAttribute("fixed")] - public string FixedValue { get { throw null; } set { } } + public string? FixedValue { get { throw null; } set { } } [System.ComponentModel.DefaultValueAttribute(System.Xml.Schema.XmlSchemaForm.None)] [System.Xml.Serialization.XmlAttributeAttribute("form")] public System.Xml.Schema.XmlSchemaForm Form { get { throw null; } set { } } @@ -1813,17 +1834,20 @@ namespace System.Xml.Schema public bool IsNillable { get { throw null; } set { } } [System.ComponentModel.DefaultValueAttribute("")] [System.Xml.Serialization.XmlAttributeAttribute("name")] - public string Name { get { throw null; } set { } } + public string? Name { get { throw null; } set { } } [System.Xml.Serialization.XmlIgnoreAttribute] public System.Xml.XmlQualifiedName QualifiedName { get { throw null; } } [System.Xml.Serialization.XmlAttributeAttribute("ref")] + [System.Diagnostics.CodeAnalysis.AllowNullAttribute] public System.Xml.XmlQualifiedName RefName { get { throw null; } set { } } [System.Xml.Serialization.XmlElementAttribute("complexType", typeof(System.Xml.Schema.XmlSchemaComplexType))] [System.Xml.Serialization.XmlElementAttribute("simpleType", typeof(System.Xml.Schema.XmlSchemaSimpleType))] - public System.Xml.Schema.XmlSchemaType SchemaType { get { throw null; } set { } } + public System.Xml.Schema.XmlSchemaType? SchemaType { get { throw null; } set { } } [System.Xml.Serialization.XmlAttributeAttribute("type")] + [System.Diagnostics.CodeAnalysis.AllowNullAttribute] public System.Xml.XmlQualifiedName SchemaTypeName { get { throw null; } set { } } [System.Xml.Serialization.XmlAttributeAttribute("substitutionGroup")] + [System.Diagnostics.CodeAnalysis.AllowNullAttribute] public System.Xml.XmlQualifiedName SubstitutionGroup { get { throw null; } set { } } } public partial class XmlSchemaEnumerationFacet : System.Xml.Schema.XmlSchemaFacet @@ -1834,27 +1858,27 @@ namespace System.Xml.Schema { public XmlSchemaException() { } protected XmlSchemaException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } - public XmlSchemaException(string message) { } - public XmlSchemaException(string message, System.Exception innerException) { } - public XmlSchemaException(string message, System.Exception innerException, int lineNumber, int linePosition) { } + public XmlSchemaException(string? message) { } + public XmlSchemaException(string? message, System.Exception? innerException) { } + public XmlSchemaException(string? message, System.Exception? innerException, int lineNumber, int linePosition) { } public int LineNumber { get { throw null; } } public int LinePosition { get { throw null; } } public override string Message { get { throw null; } } - public System.Xml.Schema.XmlSchemaObject SourceSchemaObject { get { throw null; } } - public string SourceUri { get { throw null; } } + public System.Xml.Schema.XmlSchemaObject? SourceSchemaObject { get { throw null; } } + public string? SourceUri { get { throw null; } } public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } } public abstract partial class XmlSchemaExternal : System.Xml.Schema.XmlSchemaObject { protected XmlSchemaExternal() { } [System.Xml.Serialization.XmlAttributeAttribute("id", DataType="ID")] - public string Id { get { throw null; } set { } } + public string? Id { get { throw null; } set { } } [System.Xml.Serialization.XmlIgnoreAttribute] - public System.Xml.Schema.XmlSchema Schema { get { throw null; } set { } } + public System.Xml.Schema.XmlSchema? Schema { get { throw null; } set { } } [System.Xml.Serialization.XmlAttributeAttribute("schemaLocation", DataType="anyURI")] - public string SchemaLocation { get { throw null; } set { } } + public string? SchemaLocation { get { throw null; } set { } } [System.Xml.Serialization.XmlAnyAttributeAttribute] - public System.Xml.XmlAttribute[] UnhandledAttributes { get { throw null; } set { } } + public System.Xml.XmlAttribute[]? UnhandledAttributes { get { throw null; } set { } } } public abstract partial class XmlSchemaFacet : System.Xml.Schema.XmlSchemaAnnotated { @@ -1863,7 +1887,7 @@ namespace System.Xml.Schema [System.Xml.Serialization.XmlAttributeAttribute("fixed")] public virtual bool IsFixed { get { throw null; } set { } } [System.Xml.Serialization.XmlAttributeAttribute("value")] - public string Value { get { throw null; } set { } } + public string? Value { get { throw null; } set { } } } public enum XmlSchemaForm { @@ -1882,11 +1906,11 @@ namespace System.Xml.Schema { public XmlSchemaGroup() { } [System.Xml.Serialization.XmlAttributeAttribute("name")] - public string Name { get { throw null; } set { } } + public string? Name { get { throw null; } set { } } [System.Xml.Serialization.XmlElementAttribute("all", typeof(System.Xml.Schema.XmlSchemaAll))] [System.Xml.Serialization.XmlElementAttribute("choice", typeof(System.Xml.Schema.XmlSchemaChoice))] [System.Xml.Serialization.XmlElementAttribute("sequence", typeof(System.Xml.Schema.XmlSchemaSequence))] - public System.Xml.Schema.XmlSchemaGroupBase Particle { get { throw null; } set { } } + public System.Xml.Schema.XmlSchemaGroupBase? Particle { get { throw null; } set { } } [System.Xml.Serialization.XmlIgnoreAttribute] public System.Xml.XmlQualifiedName QualifiedName { get { throw null; } } } @@ -1900,7 +1924,7 @@ namespace System.Xml.Schema { public XmlSchemaGroupRef() { } [System.Xml.Serialization.XmlIgnoreAttribute] - public System.Xml.Schema.XmlSchemaGroupBase Particle { get { throw null; } } + public System.Xml.Schema.XmlSchemaGroupBase? Particle { get { throw null; } } [System.Xml.Serialization.XmlAttributeAttribute("ref")] public System.Xml.XmlQualifiedName RefName { get { throw null; } set { } } } @@ -1910,25 +1934,25 @@ namespace System.Xml.Schema [System.Xml.Serialization.XmlElementAttribute("field", typeof(System.Xml.Schema.XmlSchemaXPath))] public System.Xml.Schema.XmlSchemaObjectCollection Fields { get { throw null; } } [System.Xml.Serialization.XmlAttributeAttribute("name")] - public string Name { get { throw null; } set { } } + public string? Name { get { throw null; } set { } } [System.Xml.Serialization.XmlIgnoreAttribute] public System.Xml.XmlQualifiedName QualifiedName { get { throw null; } } [System.Xml.Serialization.XmlElementAttribute("selector", typeof(System.Xml.Schema.XmlSchemaXPath))] - public System.Xml.Schema.XmlSchemaXPath Selector { get { throw null; } set { } } + public System.Xml.Schema.XmlSchemaXPath? Selector { get { throw null; } set { } } } public partial class XmlSchemaImport : System.Xml.Schema.XmlSchemaExternal { public XmlSchemaImport() { } [System.Xml.Serialization.XmlElementAttribute("annotation", typeof(System.Xml.Schema.XmlSchemaAnnotation))] - public System.Xml.Schema.XmlSchemaAnnotation Annotation { get { throw null; } set { } } + public System.Xml.Schema.XmlSchemaAnnotation? Annotation { get { throw null; } set { } } [System.Xml.Serialization.XmlAttributeAttribute("namespace", DataType="anyURI")] - public string Namespace { get { throw null; } set { } } + public string? Namespace { get { throw null; } set { } } } public partial class XmlSchemaInclude : System.Xml.Schema.XmlSchemaExternal { public XmlSchemaInclude() { } [System.Xml.Serialization.XmlElementAttribute("annotation", typeof(System.Xml.Schema.XmlSchemaAnnotation))] - public System.Xml.Schema.XmlSchemaAnnotation Annotation { get { throw null; } set { } } + public System.Xml.Schema.XmlSchemaAnnotation? Annotation { get { throw null; } set { } } } public sealed partial class XmlSchemaInference { @@ -1948,8 +1972,8 @@ namespace System.Xml.Schema public XmlSchemaInferenceException() { } protected XmlSchemaInferenceException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } public XmlSchemaInferenceException(string message) { } - public XmlSchemaInferenceException(string message, System.Exception innerException) { } - public XmlSchemaInferenceException(string message, System.Exception innerException, int lineNumber, int linePosition) { } + public XmlSchemaInferenceException(string message, System.Exception? innerException) { } + public XmlSchemaInferenceException(string message, System.Exception? innerException, int lineNumber, int linePosition) { } public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } } public partial class XmlSchemaInfo : System.Xml.Schema.IXmlSchemaInfo @@ -1958,10 +1982,10 @@ namespace System.Xml.Schema public System.Xml.Schema.XmlSchemaContentType ContentType { get { throw null; } set { } } public bool IsDefault { get { throw null; } set { } } public bool IsNil { get { throw null; } set { } } - public System.Xml.Schema.XmlSchemaSimpleType MemberType { get { throw null; } set { } } - public System.Xml.Schema.XmlSchemaAttribute SchemaAttribute { get { throw null; } set { } } - public System.Xml.Schema.XmlSchemaElement SchemaElement { get { throw null; } set { } } - public System.Xml.Schema.XmlSchemaType SchemaType { get { throw null; } set { } } + public System.Xml.Schema.XmlSchemaSimpleType? MemberType { get { throw null; } set { } } + public System.Xml.Schema.XmlSchemaAttribute? SchemaAttribute { get { throw null; } set { } } + public System.Xml.Schema.XmlSchemaElement? SchemaElement { get { throw null; } set { } } + public System.Xml.Schema.XmlSchemaType? SchemaType { get { throw null; } set { } } public System.Xml.Schema.XmlSchemaValidity Validity { get { throw null; } set { } } } public partial class XmlSchemaKey : System.Xml.Schema.XmlSchemaIdentityConstraint @@ -2006,11 +2030,11 @@ namespace System.Xml.Schema { public XmlSchemaNotation() { } [System.Xml.Serialization.XmlAttributeAttribute("name")] - public string Name { get { throw null; } set { } } + public string? Name { get { throw null; } set { } } [System.Xml.Serialization.XmlAttributeAttribute("public")] - public string Public { get { throw null; } set { } } + public string? Public { get { throw null; } set { } } [System.Xml.Serialization.XmlAttributeAttribute("system")] - public string System { get { throw null; } set { } } + public string? System { get { throw null; } set { } } } public abstract partial class XmlSchemaNumericFacet : System.Xml.Schema.XmlSchemaFacet { @@ -2026,14 +2050,14 @@ namespace System.Xml.Schema [System.Xml.Serialization.XmlNamespaceDeclarationsAttribute] public System.Xml.Serialization.XmlSerializerNamespaces Namespaces { get { throw null; } set { } } [System.Xml.Serialization.XmlIgnoreAttribute] - public System.Xml.Schema.XmlSchemaObject Parent { get { throw null; } set { } } + public System.Xml.Schema.XmlSchemaObject? Parent { get { throw null; } set { } } [System.Xml.Serialization.XmlIgnoreAttribute] - public string SourceUri { get { throw null; } set { } } + public string? SourceUri { get { throw null; } set { } } } public partial class XmlSchemaObjectCollection : System.Collections.CollectionBase { public XmlSchemaObjectCollection() { } - public XmlSchemaObjectCollection(System.Xml.Schema.XmlSchemaObject parent) { } + public XmlSchemaObjectCollection(System.Xml.Schema.XmlSchemaObject? parent) { } public virtual System.Xml.Schema.XmlSchemaObject this[int index] { get { throw null; } set { } } public int Add(System.Xml.Schema.XmlSchemaObject item) { throw null; } public bool Contains(System.Xml.Schema.XmlSchemaObject item) { throw null; } @@ -2042,9 +2066,9 @@ namespace System.Xml.Schema public int IndexOf(System.Xml.Schema.XmlSchemaObject item) { throw null; } public void Insert(int index, System.Xml.Schema.XmlSchemaObject item) { } protected override void OnClear() { } - protected override void OnInsert(int index, object item) { } - protected override void OnRemove(int index, object item) { } - protected override void OnSet(int index, object oldValue, object newValue) { } + protected override void OnInsert(int index, object? item) { } + protected override void OnRemove(int index, object? item) { } + protected override void OnSet(int index, object? oldValue, object? newValue) { } public void Remove(System.Xml.Schema.XmlSchemaObject item) { } } public partial class XmlSchemaObjectEnumerator : System.Collections.IEnumerator @@ -2061,7 +2085,7 @@ namespace System.Xml.Schema { internal XmlSchemaObjectTable() { } public int Count { get { throw null; } } - public System.Xml.Schema.XmlSchemaObject this[System.Xml.XmlQualifiedName name] { get { throw null; } } + public System.Xml.Schema.XmlSchemaObject? this[System.Xml.XmlQualifiedName name] { get { throw null; } } public System.Collections.ICollection Names { get { throw null; } } public System.Collections.ICollection Values { get { throw null; } } public bool Contains(System.Xml.XmlQualifiedName name) { throw null; } @@ -2073,11 +2097,11 @@ namespace System.Xml.Schema [System.Xml.Serialization.XmlIgnoreAttribute] public decimal MaxOccurs { get { throw null; } set { } } [System.Xml.Serialization.XmlAttributeAttribute("maxOccurs")] - public string MaxOccursString { get { throw null; } set { } } + public string? MaxOccursString { get { throw null; } set { } } [System.Xml.Serialization.XmlIgnoreAttribute] public decimal MinOccurs { get { throw null; } set { } } [System.Xml.Serialization.XmlAttributeAttribute("minOccurs")] - public string MinOccursString { get { throw null; } set { } } + public string? MinOccursString { get { throw null; } set { } } } public partial class XmlSchemaPatternFacet : System.Xml.Schema.XmlSchemaFacet { @@ -2120,34 +2144,34 @@ namespace System.Xml.Schema public System.Xml.Schema.XmlSchemaObjectTable GlobalTypes { get { throw null; } } public bool IsCompiled { get { throw null; } } public System.Xml.XmlNameTable NameTable { get { throw null; } } - public System.Xml.XmlResolver XmlResolver { set { } } + public System.Xml.XmlResolver? XmlResolver { set { } } public event System.Xml.Schema.ValidationEventHandler ValidationEventHandler { add { } remove { } } - public System.Xml.Schema.XmlSchema Add(string targetNamespace, string schemaUri) { throw null; } - public System.Xml.Schema.XmlSchema Add(string targetNamespace, System.Xml.XmlReader schemaDocument) { throw null; } - public System.Xml.Schema.XmlSchema Add(System.Xml.Schema.XmlSchema schema) { throw null; } + public System.Xml.Schema.XmlSchema? Add(string? targetNamespace, string schemaUri) { throw null; } + public System.Xml.Schema.XmlSchema? Add(string? targetNamespace, System.Xml.XmlReader schemaDocument) { throw null; } + public System.Xml.Schema.XmlSchema? Add(System.Xml.Schema.XmlSchema schema) { throw null; } public void Add(System.Xml.Schema.XmlSchemaSet schemas) { } public void Compile() { } - public bool Contains(string targetNamespace) { throw null; } + public bool Contains(string? targetNamespace) { throw null; } public bool Contains(System.Xml.Schema.XmlSchema schema) { throw null; } public void CopyTo(System.Xml.Schema.XmlSchema[] schemas, int index) { } - public System.Xml.Schema.XmlSchema Remove(System.Xml.Schema.XmlSchema schema) { throw null; } + public System.Xml.Schema.XmlSchema? Remove(System.Xml.Schema.XmlSchema schema) { throw null; } public bool RemoveRecursive(System.Xml.Schema.XmlSchema schemaToRemove) { throw null; } public System.Xml.Schema.XmlSchema Reprocess(System.Xml.Schema.XmlSchema schema) { throw null; } public System.Collections.ICollection Schemas() { throw null; } - public System.Collections.ICollection Schemas(string targetNamespace) { throw null; } + public System.Collections.ICollection Schemas(string? targetNamespace) { throw null; } } public partial class XmlSchemaSimpleContent : System.Xml.Schema.XmlSchemaContentModel { public XmlSchemaSimpleContent() { } [System.Xml.Serialization.XmlElementAttribute("extension", typeof(System.Xml.Schema.XmlSchemaSimpleContentExtension))] [System.Xml.Serialization.XmlElementAttribute("restriction", typeof(System.Xml.Schema.XmlSchemaSimpleContentRestriction))] - public override System.Xml.Schema.XmlSchemaContent Content { get { throw null; } set { } } + public override System.Xml.Schema.XmlSchemaContent? Content { get { throw null; } set { } } } public partial class XmlSchemaSimpleContentExtension : System.Xml.Schema.XmlSchemaContent { public XmlSchemaSimpleContentExtension() { } [System.Xml.Serialization.XmlElementAttribute("anyAttribute")] - public System.Xml.Schema.XmlSchemaAnyAttribute AnyAttribute { get { throw null; } set { } } + public System.Xml.Schema.XmlSchemaAnyAttribute? AnyAttribute { get { throw null; } set { } } [System.Xml.Serialization.XmlElementAttribute("attribute", typeof(System.Xml.Schema.XmlSchemaAttribute))] [System.Xml.Serialization.XmlElementAttribute("attributeGroup", typeof(System.Xml.Schema.XmlSchemaAttributeGroupRef))] public System.Xml.Schema.XmlSchemaObjectCollection Attributes { get { throw null; } } @@ -2158,12 +2182,12 @@ namespace System.Xml.Schema { public XmlSchemaSimpleContentRestriction() { } [System.Xml.Serialization.XmlElementAttribute("anyAttribute")] - public System.Xml.Schema.XmlSchemaAnyAttribute AnyAttribute { get { throw null; } set { } } + public System.Xml.Schema.XmlSchemaAnyAttribute? AnyAttribute { get { throw null; } set { } } [System.Xml.Serialization.XmlElementAttribute("attribute", typeof(System.Xml.Schema.XmlSchemaAttribute))] [System.Xml.Serialization.XmlElementAttribute("attributeGroup", typeof(System.Xml.Schema.XmlSchemaAttributeGroupRef))] public System.Xml.Schema.XmlSchemaObjectCollection Attributes { get { throw null; } } [System.Xml.Serialization.XmlElementAttribute("simpleType", typeof(System.Xml.Schema.XmlSchemaSimpleType))] - public System.Xml.Schema.XmlSchemaSimpleType BaseType { get { throw null; } set { } } + public System.Xml.Schema.XmlSchemaSimpleType? BaseType { get { throw null; } set { } } [System.Xml.Serialization.XmlAttributeAttribute("base")] public System.Xml.XmlQualifiedName BaseTypeName { get { throw null; } set { } } [System.Xml.Serialization.XmlElementAttribute("enumeration", typeof(System.Xml.Schema.XmlSchemaEnumerationFacet))] @@ -2186,7 +2210,7 @@ namespace System.Xml.Schema [System.Xml.Serialization.XmlElementAttribute("list", typeof(System.Xml.Schema.XmlSchemaSimpleTypeList))] [System.Xml.Serialization.XmlElementAttribute("restriction", typeof(System.Xml.Schema.XmlSchemaSimpleTypeRestriction))] [System.Xml.Serialization.XmlElementAttribute("union", typeof(System.Xml.Schema.XmlSchemaSimpleTypeUnion))] - public System.Xml.Schema.XmlSchemaSimpleTypeContent Content { get { throw null; } set { } } + public System.Xml.Schema.XmlSchemaSimpleTypeContent? Content { get { throw null; } set { } } } public abstract partial class XmlSchemaSimpleTypeContent : System.Xml.Schema.XmlSchemaAnnotated { @@ -2196,9 +2220,9 @@ namespace System.Xml.Schema { public XmlSchemaSimpleTypeList() { } [System.Xml.Serialization.XmlIgnoreAttribute] - public System.Xml.Schema.XmlSchemaSimpleType BaseItemType { get { throw null; } set { } } + public System.Xml.Schema.XmlSchemaSimpleType? BaseItemType { get { throw null; } set { } } [System.Xml.Serialization.XmlElementAttribute("simpleType", typeof(System.Xml.Schema.XmlSchemaSimpleType))] - public System.Xml.Schema.XmlSchemaSimpleType ItemType { get { throw null; } set { } } + public System.Xml.Schema.XmlSchemaSimpleType? ItemType { get { throw null; } set { } } [System.Xml.Serialization.XmlAttributeAttribute("itemType")] public System.Xml.XmlQualifiedName ItemTypeName { get { throw null; } set { } } } @@ -2206,7 +2230,7 @@ namespace System.Xml.Schema { public XmlSchemaSimpleTypeRestriction() { } [System.Xml.Serialization.XmlElementAttribute("simpleType", typeof(System.Xml.Schema.XmlSchemaSimpleType))] - public System.Xml.Schema.XmlSchemaSimpleType BaseType { get { throw null; } set { } } + public System.Xml.Schema.XmlSchemaSimpleType? BaseType { get { throw null; } set { } } [System.Xml.Serialization.XmlAttributeAttribute("base")] public System.Xml.XmlQualifiedName BaseTypeName { get { throw null; } set { } } [System.Xml.Serialization.XmlElementAttribute("enumeration", typeof(System.Xml.Schema.XmlSchemaEnumerationFacet))] @@ -2227,11 +2251,11 @@ namespace System.Xml.Schema { public XmlSchemaSimpleTypeUnion() { } [System.Xml.Serialization.XmlIgnoreAttribute] - public System.Xml.Schema.XmlSchemaSimpleType[] BaseMemberTypes { get { throw null; } } + public System.Xml.Schema.XmlSchemaSimpleType[]? BaseMemberTypes { get { throw null; } } [System.Xml.Serialization.XmlElementAttribute("simpleType", typeof(System.Xml.Schema.XmlSchemaSimpleType))] public System.Xml.Schema.XmlSchemaObjectCollection BaseTypes { get { throw null; } } [System.Xml.Serialization.XmlAttributeAttribute("memberTypes")] - public System.Xml.XmlQualifiedName[] MemberTypes { get { throw null; } set { } } + public System.Xml.XmlQualifiedName[]? MemberTypes { get { throw null; } set { } } } public partial class XmlSchemaTotalDigitsFacet : System.Xml.Schema.XmlSchemaNumericFacet { @@ -2242,11 +2266,11 @@ namespace System.Xml.Schema public XmlSchemaType() { } [System.ObsoleteAttribute("This property has been deprecated. Please use BaseXmlSchemaType property that returns a strongly typed base schema type. https://go.microsoft.com/fwlink/?linkid=14202")] [System.Xml.Serialization.XmlIgnoreAttribute] - public object BaseSchemaType { get { throw null; } } + public object? BaseSchemaType { get { throw null; } } [System.Xml.Serialization.XmlIgnoreAttribute] - public System.Xml.Schema.XmlSchemaType BaseXmlSchemaType { get { throw null; } } + public System.Xml.Schema.XmlSchemaType? BaseXmlSchemaType { get { throw null; } } [System.Xml.Serialization.XmlIgnoreAttribute] - public System.Xml.Schema.XmlSchemaDatatype Datatype { get { throw null; } } + public System.Xml.Schema.XmlSchemaDatatype? Datatype { get { throw null; } } [System.Xml.Serialization.XmlIgnoreAttribute] public System.Xml.Schema.XmlSchemaDerivationMethod DerivedBy { get { throw null; } } [System.ComponentModel.DefaultValueAttribute(System.Xml.Schema.XmlSchemaDerivationMethod.None)] @@ -2257,16 +2281,16 @@ namespace System.Xml.Schema [System.Xml.Serialization.XmlIgnoreAttribute] public virtual bool IsMixed { get { throw null; } set { } } [System.Xml.Serialization.XmlAttributeAttribute("name")] - public string Name { get { throw null; } set { } } + public string? Name { get { throw null; } set { } } [System.Xml.Serialization.XmlIgnoreAttribute] public System.Xml.XmlQualifiedName QualifiedName { get { throw null; } } [System.Xml.Serialization.XmlIgnoreAttribute] public System.Xml.Schema.XmlTypeCode TypeCode { get { throw null; } } - public static System.Xml.Schema.XmlSchemaComplexType GetBuiltInComplexType(System.Xml.Schema.XmlTypeCode typeCode) { throw null; } - public static System.Xml.Schema.XmlSchemaComplexType GetBuiltInComplexType(System.Xml.XmlQualifiedName qualifiedName) { throw null; } + public static System.Xml.Schema.XmlSchemaComplexType? GetBuiltInComplexType(System.Xml.Schema.XmlTypeCode typeCode) { throw null; } + public static System.Xml.Schema.XmlSchemaComplexType? GetBuiltInComplexType(System.Xml.XmlQualifiedName qualifiedName) { throw null; } public static System.Xml.Schema.XmlSchemaSimpleType GetBuiltInSimpleType(System.Xml.Schema.XmlTypeCode typeCode) { throw null; } - public static System.Xml.Schema.XmlSchemaSimpleType GetBuiltInSimpleType(System.Xml.XmlQualifiedName qualifiedName) { throw null; } - public static bool IsDerivedFrom(System.Xml.Schema.XmlSchemaType derivedType, System.Xml.Schema.XmlSchemaType baseType, System.Xml.Schema.XmlSchemaDerivationMethod except) { throw null; } + public static System.Xml.Schema.XmlSchemaSimpleType? GetBuiltInSimpleType(System.Xml.XmlQualifiedName qualifiedName) { throw null; } + public static bool IsDerivedFrom(System.Xml.Schema.XmlSchemaType? derivedType, System.Xml.Schema.XmlSchemaType? baseType, System.Xml.Schema.XmlSchemaDerivationMethod except) { throw null; } } public partial class XmlSchemaUnique : System.Xml.Schema.XmlSchemaIdentityConstraint { @@ -2287,12 +2311,12 @@ namespace System.Xml.Schema { public XmlSchemaValidationException() { } protected XmlSchemaValidationException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } - public XmlSchemaValidationException(string message) { } - public XmlSchemaValidationException(string message, System.Exception innerException) { } - public XmlSchemaValidationException(string message, System.Exception innerException, int lineNumber, int linePosition) { } - public object SourceObject { get { throw null; } } + public XmlSchemaValidationException(string? message) { } + public XmlSchemaValidationException(string? message, System.Exception? innerException) { } + public XmlSchemaValidationException(string? message, System.Exception? innerException, int lineNumber, int linePosition) { } + public object? SourceObject { get { throw null; } } public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } - protected internal void SetSourceObject(object sourceObject) { } + protected internal void SetSourceObject(object? sourceObject) { } } [System.FlagsAttribute] public enum XmlSchemaValidationFlags @@ -2307,11 +2331,13 @@ namespace System.Xml.Schema public sealed partial class XmlSchemaValidator { public XmlSchemaValidator(System.Xml.XmlNameTable nameTable, System.Xml.Schema.XmlSchemaSet schemas, System.Xml.IXmlNamespaceResolver namespaceResolver, System.Xml.Schema.XmlSchemaValidationFlags validationFlags) { } + [System.Diagnostics.CodeAnalysis.AllowNullAttribute] public System.Xml.IXmlLineInfo LineInfoProvider { get { throw null; } set { } } - public System.Uri SourceUri { get { throw null; } set { } } + [System.Diagnostics.CodeAnalysis.DisallowNullAttribute] + public System.Uri? SourceUri { get { throw null; } set { } } public object ValidationEventSender { get { throw null; } set { } } - public System.Xml.XmlResolver XmlResolver { set { } } - public event System.Xml.Schema.ValidationEventHandler ValidationEventHandler { add { } remove { } } + public System.Xml.XmlResolver? XmlResolver { set { } } + public event System.Xml.Schema.ValidationEventHandler? ValidationEventHandler { add { } remove { } } public void AddSchema(System.Xml.Schema.XmlSchema schema) { } public void EndValidation() { } public System.Xml.Schema.XmlSchemaAttribute[] GetExpectedAttributes() { throw null; } @@ -2319,14 +2345,14 @@ namespace System.Xml.Schema public void GetUnspecifiedDefaultAttributes(System.Collections.ArrayList defaultAttributes) { } public void Initialize() { } public void Initialize(System.Xml.Schema.XmlSchemaObject partialValidationType) { } - public void SkipToEndElement(System.Xml.Schema.XmlSchemaInfo schemaInfo) { } - public object ValidateAttribute(string localName, string namespaceUri, string attributeValue, System.Xml.Schema.XmlSchemaInfo schemaInfo) { throw null; } - public object ValidateAttribute(string localName, string namespaceUri, System.Xml.Schema.XmlValueGetter attributeValue, System.Xml.Schema.XmlSchemaInfo schemaInfo) { throw null; } - public void ValidateElement(string localName, string namespaceUri, System.Xml.Schema.XmlSchemaInfo schemaInfo) { } - public void ValidateElement(string localName, string namespaceUri, System.Xml.Schema.XmlSchemaInfo schemaInfo, string xsiType, string xsiNil, string xsiSchemaLocation, string xsiNoNamespaceSchemaLocation) { } - public object ValidateEndElement(System.Xml.Schema.XmlSchemaInfo schemaInfo) { throw null; } - public object ValidateEndElement(System.Xml.Schema.XmlSchemaInfo schemaInfo, object typedValue) { throw null; } - public void ValidateEndOfAttributes(System.Xml.Schema.XmlSchemaInfo schemaInfo) { } + public void SkipToEndElement(System.Xml.Schema.XmlSchemaInfo? schemaInfo) { } + public object? ValidateAttribute(string localName, string namespaceUri, string attributeValue, System.Xml.Schema.XmlSchemaInfo? schemaInfo) { throw null; } + public object? ValidateAttribute(string localName, string namespaceUri, System.Xml.Schema.XmlValueGetter attributeValue, System.Xml.Schema.XmlSchemaInfo? schemaInfo) { throw null; } + public void ValidateElement(string localName, string namespaceUri, System.Xml.Schema.XmlSchemaInfo? schemaInfo) { } + public void ValidateElement(string localName, string namespaceUri, System.Xml.Schema.XmlSchemaInfo? schemaInfo, string? xsiType, string? xsiNil, string? xsiSchemaLocation, string? xsiNoNamespaceSchemaLocation) { } + public object? ValidateEndElement(System.Xml.Schema.XmlSchemaInfo? schemaInfo) { throw null; } + public object? ValidateEndElement(System.Xml.Schema.XmlSchemaInfo? schemaInfo, object typedValue) { throw null; } + public void ValidateEndOfAttributes(System.Xml.Schema.XmlSchemaInfo? schemaInfo) { } public void ValidateText(string elementValue) { } public void ValidateText(System.Xml.Schema.XmlValueGetter elementValue) { } public void ValidateWhitespace(string elementValue) { } @@ -2347,7 +2373,7 @@ namespace System.Xml.Schema public XmlSchemaXPath() { } [System.ComponentModel.DefaultValueAttribute("")] [System.Xml.Serialization.XmlAttributeAttribute("xpath")] - public string XPath { get { throw null; } set { } } + public string? XPath { get { throw null; } set { } } } public enum XmlSeverityType { @@ -2412,73 +2438,78 @@ namespace System.Xml.Schema YearMonthDuration = 53, DayTimeDuration = 54, } - public delegate object XmlValueGetter(); + public delegate object? XmlValueGetter(); } namespace System.Xml.Serialization { public partial interface IXmlSerializable { [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - System.Xml.Schema.XmlSchema GetSchema(); + System.Xml.Schema.XmlSchema? GetSchema(); void ReadXml(System.Xml.XmlReader reader); void WriteXml(System.Xml.XmlWriter writer); } - [System.AttributeUsageAttribute(System.AttributeTargets.Field | System.AttributeTargets.Parameter | System.AttributeTargets.Property | System.AttributeTargets.ReturnValue, AllowMultiple=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Field | System.AttributeTargets.Parameter | System.AttributeTargets.Property | System.AttributeTargets.ReturnValue, AllowMultiple = false)] public partial class XmlAnyAttributeAttribute : System.Attribute { public XmlAnyAttributeAttribute() { } } - [System.AttributeUsageAttribute(System.AttributeTargets.Field | System.AttributeTargets.Parameter | System.AttributeTargets.Property | System.AttributeTargets.ReturnValue, AllowMultiple=true)] + [System.AttributeUsageAttribute(System.AttributeTargets.Field | System.AttributeTargets.Parameter | System.AttributeTargets.Property | System.AttributeTargets.ReturnValue, AllowMultiple = true)] public partial class XmlAnyElementAttribute : System.Attribute { public XmlAnyElementAttribute() { } - public XmlAnyElementAttribute(string name) { } - public XmlAnyElementAttribute(string name, string ns) { } + public XmlAnyElementAttribute(string? name) { } + public XmlAnyElementAttribute(string? name, string? ns) { } + [System.Diagnostics.CodeAnalysis.AllowNullAttribute] public string Name { get { throw null; } set { } } - public string Namespace { get { throw null; } set { } } + public string? Namespace { get { throw null; } set { } } public int Order { get { throw null; } set { } } } [System.AttributeUsageAttribute(System.AttributeTargets.Field | System.AttributeTargets.Parameter | System.AttributeTargets.Property | System.AttributeTargets.ReturnValue)] public partial class XmlAttributeAttribute : System.Attribute { public XmlAttributeAttribute() { } - public XmlAttributeAttribute(string attributeName) { } - public XmlAttributeAttribute(string attributeName, System.Type type) { } - public XmlAttributeAttribute(System.Type type) { } + public XmlAttributeAttribute(string? attributeName) { } + public XmlAttributeAttribute(string? attributeName, System.Type? type) { } + public XmlAttributeAttribute(System.Type? type) { } + [System.Diagnostics.CodeAnalysis.AllowNullAttribute] public string AttributeName { get { throw null; } set { } } + [System.Diagnostics.CodeAnalysis.AllowNullAttribute] public string DataType { get { throw null; } set { } } public System.Xml.Schema.XmlSchemaForm Form { get { throw null; } set { } } - public string Namespace { get { throw null; } set { } } - public System.Type Type { get { throw null; } set { } } + public string? Namespace { get { throw null; } set { } } + public System.Type? Type { get { throw null; } set { } } } - [System.AttributeUsageAttribute(System.AttributeTargets.Field | System.AttributeTargets.Parameter | System.AttributeTargets.Property | System.AttributeTargets.ReturnValue, AllowMultiple=true)] + [System.AttributeUsageAttribute(System.AttributeTargets.Field | System.AttributeTargets.Parameter | System.AttributeTargets.Property | System.AttributeTargets.ReturnValue, AllowMultiple = true)] public partial class XmlElementAttribute : System.Attribute { public XmlElementAttribute() { } - public XmlElementAttribute(string elementName) { } - public XmlElementAttribute(string elementName, System.Type type) { } - public XmlElementAttribute(System.Type type) { } + public XmlElementAttribute(string? elementName) { } + public XmlElementAttribute(string? elementName, System.Type? type) { } + public XmlElementAttribute(System.Type? type) { } + [System.Diagnostics.CodeAnalysis.AllowNullAttribute] public string DataType { get { throw null; } set { } } + [System.Diagnostics.CodeAnalysis.AllowNullAttribute] public string ElementName { get { throw null; } set { } } public System.Xml.Schema.XmlSchemaForm Form { get { throw null; } set { } } public bool IsNullable { get { throw null; } set { } } - public string Namespace { get { throw null; } set { } } + public string? Namespace { get { throw null; } set { } } public int Order { get { throw null; } set { } } - public System.Type Type { get { throw null; } set { } } + public System.Type? Type { get { throw null; } set { } } } [System.AttributeUsageAttribute(System.AttributeTargets.Field)] public partial class XmlEnumAttribute : System.Attribute { public XmlEnumAttribute() { } - public XmlEnumAttribute(string name) { } - public string Name { get { throw null; } set { } } + public XmlEnumAttribute(string? name) { } + public string? Name { get { throw null; } set { } } } [System.AttributeUsageAttribute(System.AttributeTargets.Field | System.AttributeTargets.Parameter | System.AttributeTargets.Property | System.AttributeTargets.ReturnValue)] public partial class XmlIgnoreAttribute : System.Attribute { public XmlIgnoreAttribute() { } } - [System.AttributeUsageAttribute(System.AttributeTargets.Field | System.AttributeTargets.Parameter | System.AttributeTargets.Property | System.AttributeTargets.ReturnValue, AllowMultiple=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Field | System.AttributeTargets.Parameter | System.AttributeTargets.Property | System.AttributeTargets.ReturnValue, AllowMultiple = false)] public partial class XmlNamespaceDeclarationsAttribute : System.Attribute { public XmlNamespaceDeclarationsAttribute() { } @@ -2488,17 +2519,18 @@ namespace System.Xml.Serialization { public XmlRootAttribute() { } public XmlRootAttribute(string elementName) { } + [System.Diagnostics.CodeAnalysis.AllowNullAttribute] public string DataType { get { throw null; } set { } } public string ElementName { get { throw null; } set { } } public bool IsNullable { get { throw null; } set { } } - public string Namespace { get { throw null; } set { } } + public string? Namespace { get { throw null; } set { } } } [System.AttributeUsageAttribute(System.AttributeTargets.Class | System.AttributeTargets.Interface | System.AttributeTargets.Struct)] public sealed partial class XmlSchemaProviderAttribute : System.Attribute { - public XmlSchemaProviderAttribute(string methodName) { } + public XmlSchemaProviderAttribute(string? methodName) { } public bool IsAny { get { throw null; } set { } } - public string MethodName { get { throw null; } } + public string? MethodName { get { throw null; } } } public partial class XmlSerializerNamespaces { @@ -2506,23 +2538,24 @@ namespace System.Xml.Serialization public XmlSerializerNamespaces(System.Xml.Serialization.XmlSerializerNamespaces namespaces) { } public XmlSerializerNamespaces(System.Xml.XmlQualifiedName[] namespaces) { } public int Count { get { throw null; } } - public void Add(string prefix, string ns) { } + public void Add(string prefix, string? ns) { } public System.Xml.XmlQualifiedName[] ToArray() { throw null; } } [System.AttributeUsageAttribute(System.AttributeTargets.Field | System.AttributeTargets.Parameter | System.AttributeTargets.Property | System.AttributeTargets.ReturnValue)] public partial class XmlTextAttribute : System.Attribute { public XmlTextAttribute() { } - public XmlTextAttribute(System.Type type) { } + public XmlTextAttribute(System.Type? type) { } + [System.Diagnostics.CodeAnalysis.AllowNullAttribute] public string DataType { get { throw null; } set { } } - public System.Type Type { get { throw null; } set { } } + public System.Type? Type { get { throw null; } set { } } } } namespace System.Xml.XPath { public partial interface IXPathNavigable { - System.Xml.XPath.XPathNavigator CreateNavigator(); + System.Xml.XPath.XPathNavigator? CreateNavigator(); } public enum XmlCaseOrder { @@ -2549,8 +2582,8 @@ namespace System.Xml.XPath public abstract void AddSort(object expr, System.Xml.XPath.XmlSortOrder order, System.Xml.XPath.XmlCaseOrder caseOrder, string lang, System.Xml.XPath.XmlDataType dataType); public abstract System.Xml.XPath.XPathExpression Clone(); public static System.Xml.XPath.XPathExpression Compile(string xpath) { throw null; } - public static System.Xml.XPath.XPathExpression Compile(string xpath, System.Xml.IXmlNamespaceResolver nsResolver) { throw null; } - public abstract void SetContext(System.Xml.IXmlNamespaceResolver nsResolver); + public static System.Xml.XPath.XPathExpression Compile(string xpath, System.Xml.IXmlNamespaceResolver? nsResolver) { throw null; } + public abstract void SetContext(System.Xml.IXmlNamespaceResolver? nsResolver); public abstract void SetContext(System.Xml.XmlNamespaceManager nsManager); } public abstract partial class XPathItem @@ -2565,9 +2598,9 @@ namespace System.Xml.XPath public abstract int ValueAsInt { get; } public abstract long ValueAsLong { get; } public abstract System.Type ValueType { get; } - public abstract System.Xml.Schema.XmlSchemaType XmlType { get; } + public abstract System.Xml.Schema.XmlSchemaType? XmlType { get; } public virtual object ValueAs(System.Type returnType) { throw null; } - public abstract object ValueAs(System.Type returnType, System.Xml.IXmlNamespaceResolver nsResolver); + public abstract object ValueAs(System.Type returnType, System.Xml.IXmlNamespaceResolver? nsResolver); } public enum XPathNamespaceScope { @@ -2593,9 +2626,9 @@ namespace System.Xml.XPath public abstract System.Xml.XPath.XPathNodeType NodeType { get; } public virtual string OuterXml { get { throw null; } set { } } public abstract string Prefix { get; } - public virtual System.Xml.Schema.IXmlSchemaInfo SchemaInfo { get { throw null; } } + public virtual System.Xml.Schema.IXmlSchemaInfo? SchemaInfo { get { throw null; } } public override object TypedValue { get { throw null; } } - public virtual object UnderlyingObject { get { throw null; } } + public virtual object? UnderlyingObject { get { throw null; } } public override bool ValueAsBoolean { get { throw null; } } public override System.DateTime ValueAsDateTime { get { throw null; } } public override double ValueAsDouble { get { throw null; } } @@ -2603,7 +2636,7 @@ namespace System.Xml.XPath public override long ValueAsLong { get { throw null; } } public override System.Type ValueType { get { throw null; } } public virtual string XmlLang { get { throw null; } } - public override System.Xml.Schema.XmlSchemaType XmlType { get { throw null; } } + public override System.Xml.Schema.XmlSchemaType? XmlType { get { throw null; } } public virtual System.Xml.XmlWriter AppendChild() { throw null; } public virtual void AppendChild(string newChild) { } public virtual void AppendChild(System.Xml.XmlReader newChild) { } @@ -2611,7 +2644,7 @@ namespace System.Xml.XPath public virtual void AppendChildElement(string prefix, string localName, string namespaceURI, string value) { } public virtual bool CheckValidity(System.Xml.Schema.XmlSchemaSet schemas, System.Xml.Schema.ValidationEventHandler validationEventHandler) { throw null; } public abstract System.Xml.XPath.XPathNavigator Clone(); - public virtual System.Xml.XmlNodeOrder ComparePosition(System.Xml.XPath.XPathNavigator nav) { throw null; } + public virtual System.Xml.XmlNodeOrder ComparePosition(System.Xml.XPath.XPathNavigator? nav) { throw null; } public virtual System.Xml.XPath.XPathExpression Compile(string xpath) { throw null; } public virtual void CreateAttribute(string prefix, string localName, string namespaceURI, string value) { } public virtual System.Xml.XmlWriter CreateAttributes() { throw null; } @@ -2619,9 +2652,9 @@ namespace System.Xml.XPath public virtual void DeleteRange(System.Xml.XPath.XPathNavigator lastSiblingToDelete) { } public virtual void DeleteSelf() { } public virtual object Evaluate(string xpath) { throw null; } - public virtual object Evaluate(string xpath, System.Xml.IXmlNamespaceResolver resolver) { throw null; } + public virtual object Evaluate(string xpath, System.Xml.IXmlNamespaceResolver? resolver) { throw null; } public virtual object Evaluate(System.Xml.XPath.XPathExpression expr) { throw null; } - public virtual object Evaluate(System.Xml.XPath.XPathExpression expr, System.Xml.XPath.XPathNodeIterator context) { throw null; } + public virtual object Evaluate(System.Xml.XPath.XPathExpression expr, System.Xml.XPath.XPathNodeIterator? context) { throw null; } public virtual string GetAttribute(string localName, string namespaceURI) { throw null; } public virtual string GetNamespace(string name) { throw null; } public virtual System.Collections.Generic.IDictionary GetNamespacesInScope(System.Xml.XmlNamespaceScope scope) { throw null; } @@ -2635,10 +2668,10 @@ namespace System.Xml.XPath public virtual void InsertBefore(System.Xml.XPath.XPathNavigator newSibling) { } public virtual void InsertElementAfter(string prefix, string localName, string namespaceURI, string value) { } public virtual void InsertElementBefore(string prefix, string localName, string namespaceURI, string value) { } - public virtual bool IsDescendant(System.Xml.XPath.XPathNavigator nav) { throw null; } + public virtual bool IsDescendant([System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] System.Xml.XPath.XPathNavigator? nav) { throw null; } public abstract bool IsSamePosition(System.Xml.XPath.XPathNavigator other); - public virtual string LookupNamespace(string prefix) { throw null; } - public virtual string LookupPrefix(string namespaceURI) { throw null; } + public virtual string? LookupNamespace(string prefix) { throw null; } + public virtual string? LookupPrefix(string namespaceURI) { throw null; } public virtual bool Matches(string xpath) { throw null; } public virtual bool Matches(System.Xml.XPath.XPathExpression expr) { throw null; } public abstract bool MoveTo(System.Xml.XPath.XPathNavigator other); @@ -2651,9 +2684,9 @@ namespace System.Xml.XPath public bool MoveToFirstNamespace() { throw null; } public abstract bool MoveToFirstNamespace(System.Xml.XPath.XPathNamespaceScope namespaceScope); public virtual bool MoveToFollowing(string localName, string namespaceURI) { throw null; } - public virtual bool MoveToFollowing(string localName, string namespaceURI, System.Xml.XPath.XPathNavigator end) { throw null; } + public virtual bool MoveToFollowing(string localName, string namespaceURI, System.Xml.XPath.XPathNavigator? end) { throw null; } public virtual bool MoveToFollowing(System.Xml.XPath.XPathNodeType type) { throw null; } - public virtual bool MoveToFollowing(System.Xml.XPath.XPathNodeType type, System.Xml.XPath.XPathNavigator end) { throw null; } + public virtual bool MoveToFollowing(System.Xml.XPath.XPathNodeType type, System.Xml.XPath.XPathNavigator? end) { throw null; } public abstract bool MoveToId(string id); public virtual bool MoveToNamespace(string name) { throw null; } public abstract bool MoveToNext(); @@ -2676,7 +2709,7 @@ namespace System.Xml.XPath public virtual void ReplaceSelf(System.Xml.XmlReader newNode) { } public virtual void ReplaceSelf(System.Xml.XPath.XPathNavigator newNode) { } public virtual System.Xml.XPath.XPathNodeIterator Select(string xpath) { throw null; } - public virtual System.Xml.XPath.XPathNodeIterator Select(string xpath, System.Xml.IXmlNamespaceResolver resolver) { throw null; } + public virtual System.Xml.XPath.XPathNodeIterator Select(string xpath, System.Xml.IXmlNamespaceResolver? resolver) { throw null; } public virtual System.Xml.XPath.XPathNodeIterator Select(System.Xml.XPath.XPathExpression expr) { throw null; } public virtual System.Xml.XPath.XPathNodeIterator SelectAncestors(string name, string namespaceURI, bool matchSelf) { throw null; } public virtual System.Xml.XPath.XPathNodeIterator SelectAncestors(System.Xml.XPath.XPathNodeType type, bool matchSelf) { throw null; } @@ -2684,14 +2717,14 @@ namespace System.Xml.XPath public virtual System.Xml.XPath.XPathNodeIterator SelectChildren(System.Xml.XPath.XPathNodeType type) { throw null; } public virtual System.Xml.XPath.XPathNodeIterator SelectDescendants(string name, string namespaceURI, bool matchSelf) { throw null; } public virtual System.Xml.XPath.XPathNodeIterator SelectDescendants(System.Xml.XPath.XPathNodeType type, bool matchSelf) { throw null; } - public virtual System.Xml.XPath.XPathNavigator SelectSingleNode(string xpath) { throw null; } - public virtual System.Xml.XPath.XPathNavigator SelectSingleNode(string xpath, System.Xml.IXmlNamespaceResolver resolver) { throw null; } - public virtual System.Xml.XPath.XPathNavigator SelectSingleNode(System.Xml.XPath.XPathExpression expression) { throw null; } + public virtual System.Xml.XPath.XPathNavigator? SelectSingleNode(string xpath) { throw null; } + public virtual System.Xml.XPath.XPathNavigator? SelectSingleNode(string xpath, System.Xml.IXmlNamespaceResolver? resolver) { throw null; } + public virtual System.Xml.XPath.XPathNavigator? SelectSingleNode(System.Xml.XPath.XPathExpression expression) { throw null; } public virtual void SetTypedValue(object typedValue) { } public virtual void SetValue(string value) { } object System.ICloneable.Clone() { throw null; } public override string ToString() { throw null; } - public override object ValueAs(System.Type returnType, System.Xml.IXmlNamespaceResolver nsResolver) { throw null; } + public override object ValueAs(System.Type returnType, System.Xml.IXmlNamespaceResolver? nsResolver) { throw null; } public virtual void WriteSubtree(System.Xml.XmlWriter writer) { } } [System.Diagnostics.DebuggerDisplayAttribute("Position={CurrentPosition}, Current={debuggerDisplayProxy}")] @@ -2699,7 +2732,7 @@ namespace System.Xml.XPath { protected XPathNodeIterator() { } public virtual int Count { get { throw null; } } - public abstract System.Xml.XPath.XPathNavigator Current { get; } + public abstract System.Xml.XPath.XPathNavigator? Current { get; } public abstract int CurrentPosition { get; } public abstract System.Xml.XPath.XPathNodeIterator Clone(); public virtual System.Collections.IEnumerator GetEnumerator() { throw null; } @@ -2751,30 +2784,30 @@ namespace System.Xml.Xsl { public XslCompiledTransform() { } public XslCompiledTransform(bool enableDebug) { } - public System.Xml.XmlWriterSettings OutputSettings { get { throw null; } } - public void Load(System.Reflection.MethodInfo executeMethod, byte[] queryData, System.Type[] earlyBoundTypes) { } + public System.Xml.XmlWriterSettings? OutputSettings { get { throw null; } } + public void Load(System.Reflection.MethodInfo executeMethod, byte[] queryData, System.Type[]? earlyBoundTypes) { } public void Load(string stylesheetUri) { } - public void Load(string stylesheetUri, System.Xml.Xsl.XsltSettings settings, System.Xml.XmlResolver stylesheetResolver) { } + public void Load(string stylesheetUri, System.Xml.Xsl.XsltSettings? settings, System.Xml.XmlResolver? stylesheetResolver) { } public void Load(System.Type compiledStylesheet) { } public void Load(System.Xml.XmlReader stylesheet) { } - public void Load(System.Xml.XmlReader stylesheet, System.Xml.Xsl.XsltSettings settings, System.Xml.XmlResolver stylesheetResolver) { } + public void Load(System.Xml.XmlReader stylesheet, System.Xml.Xsl.XsltSettings? settings, System.Xml.XmlResolver? stylesheetResolver) { } public void Load(System.Xml.XPath.IXPathNavigable stylesheet) { } - public void Load(System.Xml.XPath.IXPathNavigable stylesheet, System.Xml.Xsl.XsltSettings settings, System.Xml.XmlResolver stylesheetResolver) { } + public void Load(System.Xml.XPath.IXPathNavigable stylesheet, System.Xml.Xsl.XsltSettings? settings, System.Xml.XmlResolver? stylesheetResolver) { } public void Transform(string inputUri, string resultsFile) { } public void Transform(string inputUri, System.Xml.XmlWriter results) { } - public void Transform(string inputUri, System.Xml.Xsl.XsltArgumentList arguments, System.IO.Stream results) { } - public void Transform(string inputUri, System.Xml.Xsl.XsltArgumentList arguments, System.IO.TextWriter results) { } - public void Transform(string inputUri, System.Xml.Xsl.XsltArgumentList arguments, System.Xml.XmlWriter results) { } + public void Transform(string inputUri, System.Xml.Xsl.XsltArgumentList? arguments, System.IO.Stream results) { } + public void Transform(string inputUri, System.Xml.Xsl.XsltArgumentList? arguments, System.IO.TextWriter results) { } + public void Transform(string inputUri, System.Xml.Xsl.XsltArgumentList? arguments, System.Xml.XmlWriter results) { } public void Transform(System.Xml.XmlReader input, System.Xml.XmlWriter results) { } - public void Transform(System.Xml.XmlReader input, System.Xml.Xsl.XsltArgumentList arguments, System.IO.Stream results) { } - public void Transform(System.Xml.XmlReader input, System.Xml.Xsl.XsltArgumentList arguments, System.IO.TextWriter results) { } - public void Transform(System.Xml.XmlReader input, System.Xml.Xsl.XsltArgumentList arguments, System.Xml.XmlWriter results) { } - public void Transform(System.Xml.XmlReader input, System.Xml.Xsl.XsltArgumentList arguments, System.Xml.XmlWriter results, System.Xml.XmlResolver documentResolver) { } + public void Transform(System.Xml.XmlReader input, System.Xml.Xsl.XsltArgumentList? arguments, System.IO.Stream results) { } + public void Transform(System.Xml.XmlReader input, System.Xml.Xsl.XsltArgumentList? arguments, System.IO.TextWriter results) { } + public void Transform(System.Xml.XmlReader input, System.Xml.Xsl.XsltArgumentList? arguments, System.Xml.XmlWriter results) { } + public void Transform(System.Xml.XmlReader input, System.Xml.Xsl.XsltArgumentList? arguments, System.Xml.XmlWriter results, System.Xml.XmlResolver? documentResolver) { } public void Transform(System.Xml.XPath.IXPathNavigable input, System.Xml.XmlWriter results) { } - public void Transform(System.Xml.XPath.IXPathNavigable input, System.Xml.Xsl.XsltArgumentList arguments, System.IO.Stream results) { } - public void Transform(System.Xml.XPath.IXPathNavigable input, System.Xml.Xsl.XsltArgumentList arguments, System.IO.TextWriter results) { } - public void Transform(System.Xml.XPath.IXPathNavigable input, System.Xml.Xsl.XsltArgumentList arguments, System.Xml.XmlWriter results) { } - public void Transform(System.Xml.XPath.IXPathNavigable input, System.Xml.Xsl.XsltArgumentList arguments, System.Xml.XmlWriter results, System.Xml.XmlResolver documentResolver) { } + public void Transform(System.Xml.XPath.IXPathNavigable input, System.Xml.Xsl.XsltArgumentList? arguments, System.IO.Stream results) { } + public void Transform(System.Xml.XPath.IXPathNavigable input, System.Xml.Xsl.XsltArgumentList? arguments, System.IO.TextWriter results) { } + public void Transform(System.Xml.XPath.IXPathNavigable input, System.Xml.Xsl.XsltArgumentList? arguments, System.Xml.XmlWriter results) { } + public void Transform(System.Xml.XPath.IXPathNavigable input, System.Xml.Xsl.XsltArgumentList? arguments, System.Xml.XmlWriter results, System.Xml.XmlResolver? documentResolver) { } } public partial class XsltArgumentList { @@ -2783,10 +2816,10 @@ namespace System.Xml.Xsl public void AddExtensionObject(string namespaceUri, object extension) { } public void AddParam(string name, string namespaceUri, object parameter) { } public void Clear() { } - public object GetExtensionObject(string namespaceUri) { throw null; } - public object GetParam(string name, string namespaceUri) { throw null; } - public object RemoveExtensionObject(string namespaceUri) { throw null; } - public object RemoveParam(string name, string namespaceUri) { throw null; } + public object? GetExtensionObject(string namespaceUri) { throw null; } + public object? GetParam(string name, string namespaceUri) { throw null; } + public object? RemoveExtensionObject(string namespaceUri) { throw null; } + public object? RemoveParam(string name, string namespaceUri) { throw null; } } public partial class XsltCompileException : System.Xml.Xsl.XsltException { @@ -2812,11 +2845,11 @@ namespace System.Xml.Xsl public XsltException() { } protected XsltException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } public XsltException(string message) { } - public XsltException(string message, System.Exception innerException) { } + public XsltException(string message, System.Exception? innerException) { } public virtual int LineNumber { get { throw null; } } public virtual int LinePosition { get { throw null; } } public override string Message { get { throw null; } } - public virtual string SourceUri { get { throw null; } } + public virtual string? SourceUri { get { throw null; } } public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } } public abstract partial class XsltMessageEncounteredEventArgs : System.EventArgs @@ -2828,33 +2861,33 @@ namespace System.Xml.Xsl public sealed partial class XslTransform { public XslTransform() { } - public System.Xml.XmlResolver XmlResolver { set { } } + public System.Xml.XmlResolver? XmlResolver { set { } } public void Load(string url) { } - public void Load(string url, System.Xml.XmlResolver resolver) { } + public void Load(string url, System.Xml.XmlResolver? resolver) { } public void Load(System.Xml.XmlReader stylesheet) { } - public void Load(System.Xml.XmlReader stylesheet, System.Xml.XmlResolver resolver) { } + public void Load(System.Xml.XmlReader stylesheet, System.Xml.XmlResolver? resolver) { } public void Load(System.Xml.XPath.IXPathNavigable stylesheet) { } - public void Load(System.Xml.XPath.IXPathNavigable stylesheet, System.Xml.XmlResolver resolver) { } + public void Load(System.Xml.XPath.IXPathNavigable stylesheet, System.Xml.XmlResolver? resolver) { } public void Load(System.Xml.XPath.XPathNavigator stylesheet) { } - public void Load(System.Xml.XPath.XPathNavigator stylesheet, System.Xml.XmlResolver resolver) { } + public void Load(System.Xml.XPath.XPathNavigator stylesheet, System.Xml.XmlResolver? resolver) { } public void Transform(string inputfile, string outputfile) { } - public void Transform(string inputfile, string outputfile, System.Xml.XmlResolver resolver) { } - public System.Xml.XmlReader Transform(System.Xml.XPath.IXPathNavigable input, System.Xml.Xsl.XsltArgumentList args) { throw null; } - public void Transform(System.Xml.XPath.IXPathNavigable input, System.Xml.Xsl.XsltArgumentList args, System.IO.Stream output) { } - public void Transform(System.Xml.XPath.IXPathNavigable input, System.Xml.Xsl.XsltArgumentList args, System.IO.Stream output, System.Xml.XmlResolver resolver) { } - public void Transform(System.Xml.XPath.IXPathNavigable input, System.Xml.Xsl.XsltArgumentList args, System.IO.TextWriter output) { } - public void Transform(System.Xml.XPath.IXPathNavigable input, System.Xml.Xsl.XsltArgumentList args, System.IO.TextWriter output, System.Xml.XmlResolver resolver) { } - public System.Xml.XmlReader Transform(System.Xml.XPath.IXPathNavigable input, System.Xml.Xsl.XsltArgumentList args, System.Xml.XmlResolver resolver) { throw null; } - public void Transform(System.Xml.XPath.IXPathNavigable input, System.Xml.Xsl.XsltArgumentList args, System.Xml.XmlWriter output) { } - public void Transform(System.Xml.XPath.IXPathNavigable input, System.Xml.Xsl.XsltArgumentList args, System.Xml.XmlWriter output, System.Xml.XmlResolver resolver) { } - public System.Xml.XmlReader Transform(System.Xml.XPath.XPathNavigator input, System.Xml.Xsl.XsltArgumentList args) { throw null; } - public void Transform(System.Xml.XPath.XPathNavigator input, System.Xml.Xsl.XsltArgumentList args, System.IO.Stream output) { } - public void Transform(System.Xml.XPath.XPathNavigator input, System.Xml.Xsl.XsltArgumentList args, System.IO.Stream output, System.Xml.XmlResolver resolver) { } - public void Transform(System.Xml.XPath.XPathNavigator input, System.Xml.Xsl.XsltArgumentList args, System.IO.TextWriter output) { } - public void Transform(System.Xml.XPath.XPathNavigator input, System.Xml.Xsl.XsltArgumentList args, System.IO.TextWriter output, System.Xml.XmlResolver resolver) { } - public System.Xml.XmlReader Transform(System.Xml.XPath.XPathNavigator input, System.Xml.Xsl.XsltArgumentList args, System.Xml.XmlResolver resolver) { throw null; } - public void Transform(System.Xml.XPath.XPathNavigator input, System.Xml.Xsl.XsltArgumentList args, System.Xml.XmlWriter output) { } - public void Transform(System.Xml.XPath.XPathNavigator input, System.Xml.Xsl.XsltArgumentList args, System.Xml.XmlWriter output, System.Xml.XmlResolver resolver) { } + public void Transform(string inputfile, string outputfile, System.Xml.XmlResolver? resolver) { } + public System.Xml.XmlReader Transform(System.Xml.XPath.IXPathNavigable input, System.Xml.Xsl.XsltArgumentList? args) { throw null; } + public void Transform(System.Xml.XPath.IXPathNavigable input, System.Xml.Xsl.XsltArgumentList? args, System.IO.Stream output) { } + public void Transform(System.Xml.XPath.IXPathNavigable input, System.Xml.Xsl.XsltArgumentList? args, System.IO.Stream output, System.Xml.XmlResolver? resolver) { } + public void Transform(System.Xml.XPath.IXPathNavigable input, System.Xml.Xsl.XsltArgumentList? args, System.IO.TextWriter output) { } + public void Transform(System.Xml.XPath.IXPathNavigable input, System.Xml.Xsl.XsltArgumentList? args, System.IO.TextWriter output, System.Xml.XmlResolver? resolver) { } + public System.Xml.XmlReader Transform(System.Xml.XPath.IXPathNavigable input, System.Xml.Xsl.XsltArgumentList? args, System.Xml.XmlResolver? resolver) { throw null; } + public void Transform(System.Xml.XPath.IXPathNavigable input, System.Xml.Xsl.XsltArgumentList? args, System.Xml.XmlWriter output) { } + public void Transform(System.Xml.XPath.IXPathNavigable input, System.Xml.Xsl.XsltArgumentList? args, System.Xml.XmlWriter output, System.Xml.XmlResolver? resolver) { } + public System.Xml.XmlReader Transform(System.Xml.XPath.XPathNavigator input, System.Xml.Xsl.XsltArgumentList? args) { throw null; } + public void Transform(System.Xml.XPath.XPathNavigator input, System.Xml.Xsl.XsltArgumentList? args, System.IO.Stream output) { } + public void Transform(System.Xml.XPath.XPathNavigator input, System.Xml.Xsl.XsltArgumentList? args, System.IO.Stream output, System.Xml.XmlResolver? resolver) { } + public void Transform(System.Xml.XPath.XPathNavigator input, System.Xml.Xsl.XsltArgumentList? args, System.IO.TextWriter output) { } + public void Transform(System.Xml.XPath.XPathNavigator input, System.Xml.Xsl.XsltArgumentList? args, System.IO.TextWriter output, System.Xml.XmlResolver? resolver) { } + public System.Xml.XmlReader Transform(System.Xml.XPath.XPathNavigator input, System.Xml.Xsl.XsltArgumentList? args, System.Xml.XmlResolver? resolver) { throw null; } + public void Transform(System.Xml.XPath.XPathNavigator input, System.Xml.Xsl.XsltArgumentList? args, System.Xml.XmlWriter output) { } + public void Transform(System.Xml.XPath.XPathNavigator input, System.Xml.Xsl.XsltArgumentList? args, System.Xml.XmlWriter output, System.Xml.XmlResolver? resolver) { } } public sealed partial class XsltSettings { diff --git a/src/libraries/System.Xml.ReaderWriter/ref/System.Xml.ReaderWriter.csproj b/src/libraries/System.Xml.ReaderWriter/ref/System.Xml.ReaderWriter.csproj index d035b23..7ce26ea 100644 --- a/src/libraries/System.Xml.ReaderWriter/ref/System.Xml.ReaderWriter.csproj +++ b/src/libraries/System.Xml.ReaderWriter/ref/System.Xml.ReaderWriter.csproj @@ -1,6 +1,7 @@ $(NetCoreAppCurrent) + enable diff --git a/src/libraries/System.Xml.ReaderWriter/src/System.Xml.ReaderWriter.csproj b/src/libraries/System.Xml.ReaderWriter/src/System.Xml.ReaderWriter.csproj index eccf2f8..87b0213 100644 --- a/src/libraries/System.Xml.ReaderWriter/src/System.Xml.ReaderWriter.csproj +++ b/src/libraries/System.Xml.ReaderWriter/src/System.Xml.ReaderWriter.csproj @@ -3,6 +3,7 @@ System.Xml true $(NetCoreAppCurrent) + enable -- 2.7.4