Dapeng Zhang

Results 47 issues of Dapeng Zhang

Fixes https://github.com/Azure/autorest.csharp/issues/4579

feature
emitter:client:csharp

Since we now make the serialization extendable by plugins, and the `EnumExpression` has two expressions of serializing/deserializing the enum which involves the serialization/deserialization. Previously in autorest.csharp, we never consider this...

emitter:client:csharp

Since the `GetSerializationTypeProviders` is a public API and we never except the consumer of this method to modify the returned values, we should return it in a `IReadOnlyList`

emitter:client:csharp

Fixes https://github.com/microsoft/typespec/issues/3312 Majority of our typed value expressions will have the ctor taking a `ValueExpression` parameter, like this: ```csharp public record XExpression(ValueExpression Untyped) : TypedValueExpression(typeof(X), Untyped) ``` and we cannot...

feature
emitter:client:csharp

See this log: https://dev.azure.com/azure-sdk/public/_build/results?buildId=3797335&view=logs&j=ad8522ef-ffaf-59d1-5ee5-3e85b44db816&t=237d07e5-d6e4-537a-487e-2d10838f2a6b ![image](https://github.com/microsoft/typespec/assets/10554446/b8cb8ca4-8a12-4982-ba77-cf2539ab8b31)

emitter:client:csharp

This task is a follow up to https://github.com/Azure/autorest.csharp/issues/4476 and covers implementing the method bodies for json serialization methods.

emitter:client:csharp

The enum value could be strings, numbers or booleans, but it is modeled as `object` therefore it has boxing: https://github.com/microsoft/typespec/blob/c026a0a87fe1dc2f894834d8d3db9cc80afbec6f/packages/http-client-csharp/generator/Microsoft.Generator.CSharp.Input/src/InputTypes/InputEnumTypeValue.cs We have the same issue in literal values: https://github.com/microsoft/typespec/blob/c026a0a87fe1dc2f894834d8d3db9cc80afbec6f/packages/http-client-csharp/generator/Microsoft.Generator.CSharp.Input/src/InputTypes/InputLiteralType.cs We...

emitter:client:csharp

Some initial suggestions and feedbacks: https://github.com/microsoft/typespec/pull/3313#discussion_r1598772682

emitter:client:csharp

Coming from this comment: https://github.com/microsoft/typespec/pull/3313#discussion_r1598763558

emitter:client:csharp