how to get value by key in a hashtable and code conversion

  • Thread starter Thread starter wei
  • Start date Start date
W

wei

how to get value by key in a hashtable?

help: how to convert the piece of VB code to c#?
If TypeOf pMap.SpatialReference Is IProjectedCoordinateSystem

thank you!
 
wei said:
how to get value by key in a hashtable?

Use the indexer:

object x = myHashtable[key];
help: how to convert the piece of VB code to c#?
If TypeOf pMap.SpatialReference Is IProjectedCoordinateSystem

if (pMap.SpatialReference is IProjectedCoordinateSystem)
 

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