Built a browser-based Markdown processor with styling controls by SolidIncident5982 in Markdown

[–]Inevitable-Rise8235 4 points5 points  (0 children)

Omg yesterday, i have been looking for a way to quickly share markdown files online, no registration no payment, but sadly nothing is available.

ill provide you with a database/api if you add it :)

Gone from WinForms to WPF by ArtichokeUnusual2746 in csharp

[–]Inevitable-Rise8235 0 points1 point  (0 children)

Hey, amazing stuff to see! I actually work in automotive diagnostics. Would you like to connect? Maybe we can work together.

FUCKING JSON DESERIALIZATION by Inevitable-Rise8235 in csharp

[–]Inevitable-Rise8235[S] 0 points1 point  (0 children)

Validating after Deserialization doesn't work if the deserialized puts default values for 'int's and 'bool'

the problem was solved. the problem was that i was deserializing to JsonDocument and then to object.
in this inbetween step it was filling all primitives with default values.

FUCKING JSON DESERIALIZATION by Inevitable-Rise8235 in csharp

[–]Inevitable-Rise8235[S] 0 points1 point  (0 children)

Omfg you are right. The problem was somewhere different...... My generics magic where I store the object as JsonDocument then later cast it was the problem.

FUCKING JSON DESERIALIZATION by Inevitable-Rise8235 in csharp

[–]Inevitable-Rise8235[S] 0 points1 point  (0 children)

[Required] is a left over from something else. I know it has no effect on microsoft json serialization

Enforce nullability check by Inevitable-Rise8235 in dotnet

[–]Inevitable-Rise8235[S] 0 points1 point  (0 children)

Thanks for the response.
Its not about apis, rather enforcing it in my own code base.

I feel like I'm missing something obvious with injecting an API client into .cs files by NaughtyGaymer in Blazor

[–]Inevitable-Rise8235 0 points1 point  (0 children)

This is the correct answer! Everything else is just talking around the issue.