Skip to content

Commit 258b7af

Browse files
committed
update samples
1 parent e696448 commit 258b7af

File tree

5 files changed

+10
-10
lines changed
  • samples/client/petstore/csharp/generichost
    • net8
      • FormModels/src/Org.OpenAPITools/Model
      • NullReferenceTypes/src/Org.OpenAPITools/Model
      • Petstore/src/Org.OpenAPITools/Model
      • SourceGeneration/src/Org.OpenAPITools/Model
    • standard2.0/Petstore/src/Org.OpenAPITools/Model

5 files changed

+10
-10
lines changed

samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixLog.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@ public override void Write(Utf8JsonWriter writer, MixLog mixLog, JsonSerializerO
853853
{
854854
writer.WriteStartObject();
855855

856-
WriteProperties(ref writer, mixLog, jsonSerializerOptions);
856+
WriteProperties(writer, mixLog, jsonSerializerOptions);
857857
writer.WriteEndObject();
858858
}
859859

@@ -864,7 +864,7 @@ public override void Write(Utf8JsonWriter writer, MixLog mixLog, JsonSerializerO
864864
/// <param name="mixLog"></param>
865865
/// <param name="jsonSerializerOptions"></param>
866866
/// <exception cref="NotImplementedException"></exception>
867-
public void WriteProperties(ref Utf8JsonWriter writer, MixLog mixLog, JsonSerializerOptions jsonSerializerOptions)
867+
public void WriteProperties(Utf8JsonWriter writer, MixLog mixLog, JsonSerializerOptions jsonSerializerOptions)
868868
{
869869
if (mixLog.Description == null)
870870
throw new ArgumentNullException(nameof(mixLog.Description), "Property is required for class MixLog.");

samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixLog.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,7 @@ public override void Write(Utf8JsonWriter writer, MixLog mixLog, JsonSerializerO
855855
{
856856
writer.WriteStartObject();
857857

858-
WriteProperties(ref writer, mixLog, jsonSerializerOptions);
858+
WriteProperties(writer, mixLog, jsonSerializerOptions);
859859
writer.WriteEndObject();
860860
}
861861

@@ -866,7 +866,7 @@ public override void Write(Utf8JsonWriter writer, MixLog mixLog, JsonSerializerO
866866
/// <param name="mixLog"></param>
867867
/// <param name="jsonSerializerOptions"></param>
868868
/// <exception cref="NotImplementedException"></exception>
869-
public void WriteProperties(ref Utf8JsonWriter writer, MixLog mixLog, JsonSerializerOptions jsonSerializerOptions)
869+
public void WriteProperties(Utf8JsonWriter writer, MixLog mixLog, JsonSerializerOptions jsonSerializerOptions)
870870
{
871871
if (mixLog.Description == null)
872872
throw new ArgumentNullException(nameof(mixLog.Description), "Property is required for class MixLog.");

samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixLog.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@ public override void Write(Utf8JsonWriter writer, MixLog mixLog, JsonSerializerO
853853
{
854854
writer.WriteStartObject();
855855

856-
WriteProperties(ref writer, mixLog, jsonSerializerOptions);
856+
WriteProperties(writer, mixLog, jsonSerializerOptions);
857857
writer.WriteEndObject();
858858
}
859859

@@ -864,7 +864,7 @@ public override void Write(Utf8JsonWriter writer, MixLog mixLog, JsonSerializerO
864864
/// <param name="mixLog"></param>
865865
/// <param name="jsonSerializerOptions"></param>
866866
/// <exception cref="NotImplementedException"></exception>
867-
public void WriteProperties(ref Utf8JsonWriter writer, MixLog mixLog, JsonSerializerOptions jsonSerializerOptions)
867+
public void WriteProperties(Utf8JsonWriter writer, MixLog mixLog, JsonSerializerOptions jsonSerializerOptions)
868868
{
869869
if (mixLog.Description == null)
870870
throw new ArgumentNullException(nameof(mixLog.Description), "Property is required for class MixLog.");

samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixLog.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -856,7 +856,7 @@ public override void Write(Utf8JsonWriter writer, MixLog mixLog, JsonSerializerO
856856
{
857857
writer.WriteStartObject();
858858

859-
WriteProperties(ref writer, mixLog, jsonSerializerOptions);
859+
WriteProperties(writer, mixLog, jsonSerializerOptions);
860860
writer.WriteEndObject();
861861
}
862862

@@ -867,7 +867,7 @@ public override void Write(Utf8JsonWriter writer, MixLog mixLog, JsonSerializerO
867867
/// <param name="mixLog"></param>
868868
/// <param name="jsonSerializerOptions"></param>
869869
/// <exception cref="NotImplementedException"></exception>
870-
public void WriteProperties(ref Utf8JsonWriter writer, MixLog mixLog, JsonSerializerOptions jsonSerializerOptions)
870+
public void WriteProperties(Utf8JsonWriter writer, MixLog mixLog, JsonSerializerOptions jsonSerializerOptions)
871871
{
872872
if (mixLog.Description == null)
873873
throw new ArgumentNullException(nameof(mixLog.Description), "Property is required for class MixLog.");

samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixLog.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@ public override void Write(Utf8JsonWriter writer, MixLog mixLog, JsonSerializerO
853853
{
854854
writer.WriteStartObject();
855855

856-
WriteProperties(ref writer, mixLog, jsonSerializerOptions);
856+
WriteProperties(writer, mixLog, jsonSerializerOptions);
857857
writer.WriteEndObject();
858858
}
859859

@@ -864,7 +864,7 @@ public override void Write(Utf8JsonWriter writer, MixLog mixLog, JsonSerializerO
864864
/// <param name="mixLog"></param>
865865
/// <param name="jsonSerializerOptions"></param>
866866
/// <exception cref="NotImplementedException"></exception>
867-
public void WriteProperties(ref Utf8JsonWriter writer, MixLog mixLog, JsonSerializerOptions jsonSerializerOptions)
867+
public void WriteProperties(Utf8JsonWriter writer, MixLog mixLog, JsonSerializerOptions jsonSerializerOptions)
868868
{
869869
if (mixLog.Description == null)
870870
throw new ArgumentNullException(nameof(mixLog.Description), "Property is required for class MixLog.");

0 commit comments

Comments
 (0)