public override string GetAttribute (int index)
{
if (index == 0 && current_node == XmlNodeType.Element)
return elements.Peek ().Type;
else if (index == 1 && current_runtime_type != null)
return current_runtime_type;
throw new ArgumentOutOfRangeException ("index", "Index is must be either 0 or 1 when there is an explicit __type in the object, and only valid on an element on this XmlDictionaryReader");
}