Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rescope Implicit + Explicit Operators for Models #5681

Open
jorgerangel-msft opened this issue Jan 21, 2025 · 0 comments
Open

Rescope Implicit + Explicit Operators for Models #5681

jorgerangel-msft opened this issue Jan 21, 2025 · 0 comments
Labels
emitter:client:csharp Issue for the C# client emitter: @typespec/http-client-csharp

Comments

@jorgerangel-msft
Copy link
Contributor

We currently generate both the implicit operation public static implicit operator BinaryContent(Friend friend) and the explicit operator public static explicit operator Friend(ClientResult result) for all models, minus unknown discriminator models. We should consider rescoping the generation of this to only generate the implicit operator for request models and the explicit operator for response models since there isn't a need to have these operators always generated.

@jorgerangel-msft jorgerangel-msft added the emitter:client:csharp Issue for the C# client emitter: @typespec/http-client-csharp label Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
emitter:client:csharp Issue for the C# client emitter: @typespec/http-client-csharp
Projects
None yet
Development

No branches or pull requests

1 participant