[mapguide-trac] #232: MgResourceIdentifier does not implement Equals in .Net API

MapGuide Open Source trac_mapguide at osgeo.org
Thu Jul 26 04:26:19 EDT 2007


#232: MgResourceIdentifier does not implement Equals in .Net API
-------------------------+--------------------------------------------------
 Reporter:  jiab         |         Owner:  jiab    
     Type:  enhancement  |        Status:  assigned
 Priority:  medium       |     Milestone:          
Component:  Web API      |       Version:  1.2.0   
 Severity:  minor        |    Resolution:          
 Keywords:               |   External_id:  926866  
-------------------------+--------------------------------------------------
Changes (by jiab):

  * status:  new => assigned

Comment:

 Exercise the following code:

             MgResourceIdentifier x = new MgResourceIdentifier
 ("Library://");
             MgResourceIdentifier y = new MgResourceIdentifier
 ("Library://");
             if (x == y)
                 Console.WriteLine ("== works");
             else
                 Console.WriteLine ("== doesn't work");
             if (x.Equals (y))
                 Console.WriteLine ("Equals() works");
             else
                 Console.WriteLine ("Equals() doesn't work");

 Neither of == or Equals works, making it difficult to cycle through
 collections looking for a particular resource.

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/232#comment:1>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list