MaeFire
MaeFire
CC#
Created by MaeFire on 8/26/2023 in #help
❔ JSON serialization nullable warnings (best approach?)
Awesome. Thank you for the insight. I was not aware of the ?? new() hiding the handling away, so I'll just try to keep in mind to either suppress or make it into a nullable type(preferably the latter) ⭐
16 replies
CC#
Created by MaeFire on 8/26/2023 in #help
❔ JSON serialization nullable warnings (best approach?)
So the two good options of these three would be either what I did above or
public List<QuackenJson>? JsonReadWithSystemText()
{
using FileStream json = File.OpenRead(quackenFilePath);
List<QuackenJson>? token = JsonSerializer.Deserialize<List<QuackenJson>>(json, _options);
return token;
}
public List<QuackenJson>? JsonReadWithSystemText()
{
using FileStream json = File.OpenRead(quackenFilePath);
List<QuackenJson>? token = JsonSerializer.Deserialize<List<QuackenJson>>(json, _options);
return token;
}
I think this is what you meant by making the return type nullable, right?
16 replies
CC#
Created by MaeFire on 8/25/2023 in #help
❔ csc command not recognized?
I understand, but I also tried to iterate multiple times that I use it primarily for small programs and non .NET projects.
34 replies
CC#
Created by MaeFire on 8/25/2023 in #help
❔ csc command not recognized?
This actually got me thinking, and I checked my JSON settings, and apparently it reverted my synced changes, so I wasn't utilizing my integrated developer powershell. Problem fixed, and now the command is recognized.
34 replies
CC#
Created by MaeFire on 8/25/2023 in #help
❔ csc command not recognized?
In that regard, why does it work on my home computer, but not the laptop?
34 replies
CC#
Created by MaeFire on 8/25/2023 in #help
❔ csc command not recognized?
This is... An odd response. While I understand "we don't support it", the question remains "why is it not even being recognized as a command when it should be included in the framework downloaded?"
34 replies
CC#
Created by MaeFire on 8/25/2023 in #help
❔ csc command not recognized?
I never mentioned what I needed, so there are a lot of assumptions going on here, but the question literally is "why is csc not being recognized?" and I'm trying to get it to work. Instead of help, I'm being told "instead, just don't do it". I'm fairly certain you can see how that's a really poor response to the question, right?
34 replies
CC#
Created by MaeFire on 8/25/2023 in #help
❔ csc command not recognized?
Or...try to help me fix the problem?
34 replies
CC#
Created by MaeFire on 8/25/2023 in #help
❔ csc command not recognized?
It isn't for just .NET projects. Sometimes I just want to build a small program to test output and a simple csc ProgramName.cs works for what I need.
34 replies