glowas
asked on
PropertyDescriptor.PropertyType check if int ???
How can I check if PropertyDescriptor.Propert yType is type int?
PropertyDescriptor objPropDesc;
... set the objPropDesc ...
and...
if (objPropDesc.PropertyType is Int16 || objPropDesc.PropertyType is Int32 || objPropDesc.PropertyType is Int64)
this if never works...
PropertyDescriptor objPropDesc;
... set the objPropDesc ...
and...
if (objPropDesc.PropertyType is Int16 || objPropDesc.PropertyType is Int32 || objPropDesc.PropertyType is Int64)
this if never works...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
if (objPropDesc.PropertyType.
But it works...
Any better solutions?