-
-
Notifications
You must be signed in to change notification settings - Fork 390
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
Support new System.Text.Json source generator #777
Comments
Not familiar with this, I'll read up on it when I have some time. In a nutshell, what are you looking to accomplish? |
Well, basically this new SG eliminates runtime reflection (amongst other improvements). |
+1 to this one. Implementing overloads of methods like |
I second this. Basically you create overloads that accept |
@tmenier |
There is actually another solution, which consists in implementing an Here is my code:
|
@tranb3r That looks great, hopefully others can benefit. I'll look at incorporating this into the core at some point. (Sorry, haven't had a lot of free time lately.) |
@tranb3r Actually, looking at this more closely, if the goal is to eliminate runtime reflection, isn't |
Actually, obj.GetType() is not using reflection. |
Hi,
Is there any plan to support the new
System.Text.Json
source generator, in a future version ofFlurl
?https://devblogs.microsoft.com/dotnet/try-the-new-system-text-json-source-generator/
I think it would require new extensions, similar to
PostJsonAsync
orReceiveJson
, but with an additionnal parameter (eitherJsonTypeInfo
orJsonSerializerContext
).Or maybe it's already supported and I'm missing something?
Thanks
The text was updated successfully, but these errors were encountered: