From 6f3a47bb3855a9eeac0e8571a7e2780ae8add58b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Habinshuti?= Date: Fri, 21 Jul 2023 08:45:43 +0300 Subject: [PATCH] Fix compiler error in SerializationComparisonsTests benchmarks (#2708) --- .../Lib/NoopJsonWriter.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/PerformanceTests/SerializationComparisonsTests/Lib/NoopJsonWriter.cs b/test/PerformanceTests/SerializationComparisonsTests/Lib/NoopJsonWriter.cs index 3a65ed300e..390c3ac5e2 100644 --- a/test/PerformanceTests/SerializationComparisonsTests/Lib/NoopJsonWriter.cs +++ b/test/PerformanceTests/SerializationComparisonsTests/Lib/NoopJsonWriter.cs @@ -5,6 +5,7 @@ //--------------------------------------------------------------------- using System; +using System.Text.Json; using System.Threading.Tasks; using Microsoft.OData.Edm; using Microsoft.OData.Json; @@ -173,6 +174,10 @@ public void WriteValue(TimeOfDay value) { } + public void WriteValue(JsonElement value) + { + } + public Task WriteValueAsync(bool value) { return Task.CompletedTask; @@ -252,5 +257,10 @@ public Task WriteValueAsync(TimeOfDay value) { return Task.CompletedTask; } + + public Task WriteValueAsync(JsonElement value) + { + return Task.CompletedTask; + } } }