From 258b7af727e1c7ee1bc136673119e1c07828801d Mon Sep 17 00:00:00 2001 From: William Cheng Date: Sun, 26 May 2024 21:42:10 +0800 Subject: [PATCH] update samples --- .../net8/FormModels/src/Org.OpenAPITools/Model/MixLog.cs | 4 ++-- .../NullReferenceTypes/src/Org.OpenAPITools/Model/MixLog.cs | 4 ++-- .../net8/Petstore/src/Org.OpenAPITools/Model/MixLog.cs | 4 ++-- .../SourceGeneration/src/Org.OpenAPITools/Model/MixLog.cs | 4 ++-- .../standard2.0/Petstore/src/Org.OpenAPITools/Model/MixLog.cs | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixLog.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixLog.cs index 8848d4af6da..44130823a00 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixLog.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixLog.cs @@ -853,7 +853,7 @@ namespace Org.OpenAPITools.Model { writer.WriteStartObject(); - WriteProperties(ref writer, mixLog, jsonSerializerOptions); + WriteProperties(writer, mixLog, jsonSerializerOptions); writer.WriteEndObject(); } @@ -864,7 +864,7 @@ namespace Org.OpenAPITools.Model /// /// /// - public void WriteProperties(ref Utf8JsonWriter writer, MixLog mixLog, JsonSerializerOptions jsonSerializerOptions) + public void WriteProperties(Utf8JsonWriter writer, MixLog mixLog, JsonSerializerOptions jsonSerializerOptions) { if (mixLog.Description == null) throw new ArgumentNullException(nameof(mixLog.Description), "Property is required for class MixLog."); diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixLog.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixLog.cs index 7ba8d31fe10..7beb5db0dd4 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixLog.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixLog.cs @@ -855,7 +855,7 @@ namespace Org.OpenAPITools.Model { writer.WriteStartObject(); - WriteProperties(ref writer, mixLog, jsonSerializerOptions); + WriteProperties(writer, mixLog, jsonSerializerOptions); writer.WriteEndObject(); } @@ -866,7 +866,7 @@ namespace Org.OpenAPITools.Model /// /// /// - public void WriteProperties(ref Utf8JsonWriter writer, MixLog mixLog, JsonSerializerOptions jsonSerializerOptions) + public void WriteProperties(Utf8JsonWriter writer, MixLog mixLog, JsonSerializerOptions jsonSerializerOptions) { if (mixLog.Description == null) throw new ArgumentNullException(nameof(mixLog.Description), "Property is required for class MixLog."); diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixLog.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixLog.cs index 8848d4af6da..44130823a00 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixLog.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixLog.cs @@ -853,7 +853,7 @@ namespace Org.OpenAPITools.Model { writer.WriteStartObject(); - WriteProperties(ref writer, mixLog, jsonSerializerOptions); + WriteProperties(writer, mixLog, jsonSerializerOptions); writer.WriteEndObject(); } @@ -864,7 +864,7 @@ namespace Org.OpenAPITools.Model /// /// /// - public void WriteProperties(ref Utf8JsonWriter writer, MixLog mixLog, JsonSerializerOptions jsonSerializerOptions) + public void WriteProperties(Utf8JsonWriter writer, MixLog mixLog, JsonSerializerOptions jsonSerializerOptions) { if (mixLog.Description == null) throw new ArgumentNullException(nameof(mixLog.Description), "Property is required for class MixLog."); diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixLog.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixLog.cs index 84e1f94b4cc..2b06f1ac25c 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixLog.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixLog.cs @@ -856,7 +856,7 @@ namespace Org.OpenAPITools.Model { writer.WriteStartObject(); - WriteProperties(ref writer, mixLog, jsonSerializerOptions); + WriteProperties(writer, mixLog, jsonSerializerOptions); writer.WriteEndObject(); } @@ -867,7 +867,7 @@ namespace Org.OpenAPITools.Model /// /// /// - public void WriteProperties(ref Utf8JsonWriter writer, MixLog mixLog, JsonSerializerOptions jsonSerializerOptions) + public void WriteProperties(Utf8JsonWriter writer, MixLog mixLog, JsonSerializerOptions jsonSerializerOptions) { if (mixLog.Description == null) throw new ArgumentNullException(nameof(mixLog.Description), "Property is required for class MixLog."); diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixLog.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixLog.cs index dc44e0adb89..75cdeb1ec5b 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixLog.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixLog.cs @@ -853,7 +853,7 @@ namespace Org.OpenAPITools.Model { writer.WriteStartObject(); - WriteProperties(ref writer, mixLog, jsonSerializerOptions); + WriteProperties(writer, mixLog, jsonSerializerOptions); writer.WriteEndObject(); } @@ -864,7 +864,7 @@ namespace Org.OpenAPITools.Model /// /// /// - public void WriteProperties(ref Utf8JsonWriter writer, MixLog mixLog, JsonSerializerOptions jsonSerializerOptions) + public void WriteProperties(Utf8JsonWriter writer, MixLog mixLog, JsonSerializerOptions jsonSerializerOptions) { if (mixLog.Description == null) throw new ArgumentNullException(nameof(mixLog.Description), "Property is required for class MixLog.");