Merge pull request #37182 from krwq/nullable-xml-3
authorKrzysztof Wicher <mordotymoja@gmail.com>
Wed, 3 Jun 2020 05:20:35 +0000 (22:20 -0700)
committerGitHub <noreply@github.com>
Wed, 3 Jun 2020 05:20:35 +0000 (22:20 -0700)
Nullable: System.Xml, part 3

1  2 
src/libraries/System.Private.Xml/src/System/Xml/Core/QueryOutputWriter.cs
src/libraries/System.Private.Xml/src/System/Xml/Core/XmlEventCache.cs
src/libraries/System.Private.Xml/src/System/Xml/Core/XmlRawWriter.cs
src/libraries/System.Private.Xml/src/System/Xml/Core/XmlTextWriter.cs

@@@ -429,12 -430,12 +430,12 @@@ namespace System.Xm
          /// All other WriteValue methods are implemented by XmlWriter to delegate to WriteValue(object) or WriteValue(string), so
          /// only these two methods need to be implemented.
          /// </summary>
-         public override void WriteValue(object value)
+         public override void WriteValue(object? value)
          {
 -            WriteString(XmlUntypedConverter.Untyped.ToString(value, this.resolver));
 +            WriteString(XmlUntypedConverter.Untyped.ToString(value, this._resolver));
          }
  
-         public override void WriteValue(string value)
+         public override void WriteValue(string? value)
          {
              WriteString(value);
          }