Open Mr0N opened 5 months ago
Any API that uses reflection is probably not a good one. It’s slow and not trimming/AOT safe.
Any API that uses reflection is probably not a good one. It’s slow and not trimming/AOT safe.
Well, I'm not suggesting using reflection for this, it's just an example. I suggest using IL generation and similar approaches. I'm not sure what System.Text.Json uses, but it's quite fast
In that case, your API proposal is wrongly written. You don't need to provide working code, just the API "shape"; You only need to explain what it does. As is, your proposal reads like reflection would be required.
Background and motivation
I propose to add the "Multipart/form-data" serializer; this is just an example to make it clear what I am suggesting.
API Proposal
API Usage
-
Alternative Designs
No response
Risks
No response