[mapguide-users] Add layer dinamically from search results

Jackie Ng jumpinjackie at gmail.com
Tue Feb 19 18:29:48 PST 2013


If you copy/paste source code from a library, don't just pluck the file from
that library, drop it into your code and assume it will just work.

In this case, ReadFeature() is an extension method defined by the library
that you obviously haven't copied in as well.

http://code.google.com/p/mapguide-contrib/source/browse/trunk/Libraries/DotNet/OSGeo.MapGuide.Extensions/OSGeo.MapGuide.Extensions/MgExtensionMethods.cs

Programmming is more than blind copy/pasting code. If you're going to
copy/paste code, do it smart. Understand the *context* of the code you're
copying from and how it fits into the code your pasting into.

- Jackie



--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Add-layer-dinamically-from-search-results-tp5033775p5035374.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list