Esempio n. 1
0
        internal static   XmlNameRef[] GetKnownNameRefs(XmlMember item, XmlNameTable nameTable)
        {
            if (item.KnownTypes.Count == 0)
            {
                return(null);
            }

            var nameRefs = new XmlNameRef[item.KnownTypes.Count];

            for (var i = 0; i < nameRefs.Length; i++)
            {
                nameRefs[i].Reset(item.KnownTypes[i].Name, nameTable);
            }

            return(nameRefs);
        }
Esempio n. 2
0
 public XmlItemInfo(XmlItem item, XmlNameTable nameTable)
 {
     Item          = item;
     NameRef       = new XmlNameRef(item.Name, nameTable);
     KnownNameRefs = GetKnownNameRefs(item, nameTable);
 }