how to detect if a property exists on a dynamic object in C# ?
Posted
by Softion
on Stack Overflow
See other posts from Stack Overflow
or by Softion
Published on 2010-05-15T09:23:55Z
Indexed on
2010/05/15
9:34 UTC
Read the original article
Hit count: 177
In javascript you can detect if a property is defined by using the undefined keyword: if( data.myProperty == undefined ) ...
How would you do this in C# using the dynamic keyword with an ExpandeObject and without throwing an exception ?
© Stack Overflow or respective owner