C
C#7mo ago
TahaA

Can't retrieve data because of JsonIgnore

I'm using JsonIgnore to not include the data in the JSON file (the two properties where I'm using [JsonIgnore] are not allowed to be put inside the JSON file). The problem is that no matter what I've tried until now to retrieve the data in the overriden ToString() method, the datamodel that should contain the TimeTitlePair is always empty/null. I have never had C# up until this semester and this is one of the places where I struggle. I'll show the full code below:
4 Replies
TahaA
TahaAOP7mo ago
Pobiega
Pobiega7mo ago
Please don't upload your files directly, use $paste instead
MODiX
MODiX7mo ago
If your code is too long, you can post to https://paste.mod.gg/ and copy the link into chat for others to see your shared code!
Pobiega
Pobiega7mo ago
However, based on your description it sounds like you are re-using the same model as both input, storage and output
Want results from more Discord servers?
Add your server