ContainsKey

PCProfessor Chen2/25/2023
someone know why, ContainsKey have error CS1061 Severity Code Description Project File Line Suppression State
Error CS1061 'JObject' does not contain a definition for 'ContainsKey' and no accessible extension method 'ContainsKey' accepting a first argument of type 'JObject' could be found (are you missing a using directive or an assembly reference?) Nuclear C:\Users\hewet\OneDrive\Desktop\NuclearSource\Nuclear\Program.cs 1179 Active
Image
AAngius2/25/2023
Why are you using JObject tomfoolery instead of using proper classes?
AAngius2/25/2023
And WebClient to boot
PCProfessor Chen2/25/2023
im more good
PCProfessor Chen2/25/2023
with
AAngius2/25/2023
With what, discarding the type system and writing three times the amount of code you actually need?
PCProfessor Chen2/25/2023
should i use TryGetValue
AAngius2/25/2023
No, you should deserialize the JSON to a proper class
AAngius2/25/2023
Or use httpClient.PostAsJsonAsync<Result>(url, data)
PCProfessor Chen2/25/2023
ok thx
BBuddy2/25/2023
What are you making?