Tell me more ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Using Visual C# 2008 Express edition. Following along in the book 'Getting to know arcobjects' (vba). I just need confirmation that what I wrote is correct.

VB Code:

Dim pMap As IMap
Set pMap = New Map
pMap.Name = "Ryan's Map"

Here's my C# code:

IMap pMap = new MapClass();
pMap.Name = "Test Map";
share|improve this question
Yes that should work. However, I think this might fall afoul of the guidelines for asking questions on this site -- unless it doesn't work, and you provide enough information for someone to reasonably help troubleshoot the problem, "code review" type questions are probably off topic. See the FAQ. In particular, "You should only ask practical, answerable questions based on actual problems that you face." – blah238 Feb 21 at 15:52

closed as too localized by blah238, Devdatta Tengshe, whuber Feb 21 at 15:58

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

Browse other questions tagged or ask your own question.