Casting

  • Thread starter Thread starter Jim Heavey
  • Start date Start date
J

Jim Heavey

If I have a method which requires and object to be provided and I what to
know if the object can be cast to an int16, or double what command would I
use to find this out?

In VB, I think the format is If typeof MyField is System.String, but that
does not seem to cut it in C#

Thanks in advance for your assistance!!!!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top