[openmapi.org devel] Bug in /trunk/nmapi/NMapi/Data/Table/SRow.cs
Fabio Fasulo
fabio at pageworx.org
Tue Feb 10 00:26:59 CET 2009
Hi everybody,
just wanted to mention that we found a little bug in SRow.cs.
Currently the method FindPropertyIndex(int propertyName) looks like this:
public int FindPropertyIndex (int propertyName)
{
if (lpProps == null)
return -1;
int i = 0;
foreach (SPropValue prop in lpProps) {
if (prop.PropTag == Property.EntryId)
return i;
i++;
}
return -1;
}
Correctly, the method should look like this to work as designed:
public int FindPropertyIndex (int propertyName)
{
if (lpProps == null)
return -1;
int i = 0;
foreach (SPropValue prop in lpProps) {
if (prop.PropTag == propertyName)
return i;
i++;
}
return -1;
}
At the moment the method will always return a constant value, independently
of what you give in as parameter.
Please fix this,
with kind regards,
Fabio Fasulo
TU Darmstadt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openmapi.org/pipermail/devel/attachments/20090210/cce03f00/attachment.htm
More information about the Devel
mailing list