private bool IsHeadAnyType() { Debug.Assert(baseType != null); XmlSchemaElement headElem = baseType as XmlSchemaElement; Debug.Assert(headElem != null); return headElem.ElementSchemaType.TypeCode == XmlTypeCode.Item; }