Decabytes
Decabytes
CC#
Created by Decabytes on 11/19/2023 in #help
CatAPI Json deserialization issue.
Ahh Thank you! GetFromJsonAsync works so much better! The other way I was doing it was
var response = await kitty.GetRandomCatAsync();
using var jData = JsonDocument.Parse(response);
var jDoc = jData.RootElement;
var catData = jDoc[0];
var url = catData.GetProperty("url").GetString();
var response = await kitty.GetRandomCatAsync();
using var jData = JsonDocument.Parse(response);
var jDoc = jData.RootElement;
var catData = jDoc[0];
var url = catData.GetProperty("url").GetString();
which was pain.
10 replies
CC#
Created by Decabytes on 9/2/2023 in #help
❔ Polyglot notebooks not working on Manjaro Linux
5 replies
CC#
Created by Decabytes on 2/17/2023 in #help
❔ Class method construction using lambda?
what you have there is an expression bodied method
That's what I was looking for. I understand now. Thank you!
8 replies
CC#
Created by Decabytes on 2/2/2023 in #help
❔ Trouble Creating PowerShell Commandlet
You're right. I was using Powershell 5.1. To fix this I had to
winget install -e --id Microsoft.PowerShell -v 7.2.9.0
winget install -e --id Microsoft.PowerShell -v 7.2.9.0
Then I had to go click the gear in the powershell window of visual studio and add the path to the 7.2.9 version of powershell. Then it worked!
6 replies