Opened 17 years ago
Closed 17 years ago
#374 closed defect (fixed)
MgPropertyDefinitionCollection:: Remove(MgPropertyDefinition) returns a wrong value when the collection is empty
Reported by: | jiab | Owned by: | Trevor Wekel |
---|---|---|---|
Priority: | medium | Milestone: | 2.0 |
Component: | General | Version: | |
Severity: | minor | Keywords: | MgPropertyDefinitionCollection, Remove |
Cc: | Tom Fukushima | External ID: | 1014123 |
Description
Step to recur:
- Construct an instance of MgPropertyDefinitionCollection using the following code MgPropertyDefinitionCollection propDefColl = new MgPropertyDefinitionCollection();
- Construct an instance of MgPropertyDefinition using the following code
MgPropertyDefinition propDef = new MgPropertyDefinition("propName", MgPropertyType.Boolean);
- Use the method Remove(MgPropertyDefinition value)to return a bool type value.
Sample code:
Assert.IsFalse(propDefColl.Remove(propDef));
Expect result: False Actual result: True
Note:
See TracTickets
for help on using tickets.
Patch submitted by Jessica Cao
http://trac.osgeo.org/mapguide/changeset/2696