ContainsKey

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
7 Replies
Angius
Angius2y ago
Why are you using JObject tomfoolery instead of using proper classes? And WebClient to boot
Professor Chen
im more good with
Angius
Angius2y ago
With what, discarding the type system and writing three times the amount of code you actually need?
Professor Chen
should i use TryGetValue
Angius
Angius2y ago
No, you should deserialize the JSON to a proper class Or use httpClient.PostAsJsonAsync<Result>(url, data)
Professor Chen
ok thx
Buddy
Buddy2y ago
What are you making?
Want results from more Discord servers?
Add your server