private int GetAttributeIndexWithPrefix(string name)
{
name = _coreReaderNameTable.Get(name);
if (name == null)
{
return -1;
}
ValidatingReaderNodeData attribute;
for (int i = 0; i < _attributeCount; i++)
{
attribute = _attributeEvents[i];
if (Ref.Equal(attribute.GetAtomizedNameWPrefix(_coreReaderNameTable), name))
{
return i;
}
}
return -1;
}