From 0defe8fef2a035353094f71bffb85b7588af543c Mon Sep 17 00:00:00 2001 From: Jorge Rangel <102122018+jorgerangel-msft@users.noreply.github.com> Date: Mon, 7 Oct 2024 12:13:46 -0500 Subject: [PATCH] Add missing setter to PropertySerializationName property (#4617) Adds a missing setter to the property which was overlooked as part of https://github.com/microsoft/typespec/pull/4591. --- .../src/CodeGenSerializationAttribute.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/http-client-csharp/generator/Microsoft.Generator.CSharp.Customization/src/CodeGenSerializationAttribute.cs b/packages/http-client-csharp/generator/Microsoft.Generator.CSharp.Customization/src/CodeGenSerializationAttribute.cs index b6e4f4c85a..4aa5245db3 100644 --- a/packages/http-client-csharp/generator/Microsoft.Generator.CSharp.Customization/src/CodeGenSerializationAttribute.cs +++ b/packages/http-client-csharp/generator/Microsoft.Generator.CSharp.Customization/src/CodeGenSerializationAttribute.cs @@ -17,7 +17,7 @@ public class CodeGenSerializationAttribute : Attribute /// /// Gets or sets the serialization name of the property. /// - public string? PropertySerializationName { get; } + public string? PropertySerializationName { get; set; } /// /// Gets or sets the method name to use when serializing the property value (property name excluded) /// The signature of the serialization hook method must be or compatible with when invoking: