Last active
August 26, 2020 15:37
-
-
Save idg10/3361b72243a329a83c98583c26d305df to your computer and use it in GitHub Desktop.
Expressing the expectation of success with a cast
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 = (JObject)JToken.Parse(text); | |
bool hasItem = o.ContainsKey("item"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment