Last active
August 26, 2020 15:25
-
-
Save idg10/9e95284bd140b16a44e850cf6a31e5d9 to your computer and use it in GitHub Desktop.
A common misuse of C#'s as operator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var o = JToken.Parse(text) as JObject; | |
bool hasItem = o.ContainsKey("item"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment