From 5019ef94b0ca425fd399c52e2d90368b0e336a44 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Wed, 30 Nov 2022 18:18:20 +0000 Subject: [PATCH] Allow nullable Uri --- VpSharp/src/Internal/ValueConverters/UriConverter.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/VpSharp/src/Internal/ValueConverters/UriConverter.cs b/VpSharp/src/Internal/ValueConverters/UriConverter.cs index 9a2e880..845c7e4 100644 --- a/VpSharp/src/Internal/ValueConverters/UriConverter.cs +++ b/VpSharp/src/Internal/ValueConverters/UriConverter.cs @@ -1,18 +1,18 @@ -namespace VpSharp.Internal.ValueConverters; +namespace VpSharp.Internal.ValueConverters; #pragma warning disable CA1812 -internal sealed class UriConverter : ValueConverter +internal sealed class UriConverter : ValueConverter { /// - public override void Deserialize(TextReader reader, out Uri result) + public override void Deserialize(TextReader reader, out Uri? result) { string url = reader.ReadToEnd(); result = string.IsNullOrWhiteSpace(url) ? null : new Uri(url); } /// - public override void Serialize(TextWriter writer, Uri value) + public override void Serialize(TextWriter writer, Uri? value) { if (value is not null) {