private int GetAttributeIndexWithoutPrefix(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.LocalName, name) && attribute.Prefix.Length == 0)
{
return i;
}
}
return -1;
}