Created
December 19, 2012 15:09
-
-
Save juristr/4337356 to your computer and use it in GitHub Desktop.
Verify whether an ExpandoObject has a property
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
private bool HasProperty(string propertyName, ExpandoObject expandoObj) | |
{ | |
return ((IDictionary<string, object>)expandoObj).ContainsKey(propertyName); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment