Ejemplo n.º 1
0
        private List <XmlElement> UpdateXml(string XmlNodeName, MemberReference mi)
        {
            List <XmlElement> returnValue = new List <XmlElement>();

            List <FrameworkEntry> entries     = new List <FrameworkEntry>();
            FrameworkEntry        singleEntry = new FrameworkEntry(entries, entries);

            singleEntry.Name = "dotnet-plat-ext-2.2";
            FrameworkTypeEntry enttyType = new FrameworkTypeEntry(singleEntry);

            var type             = GetType(typeof(mdoc.Test2.EiiImplementClass));
            var ieeImplementList = MDocUpdater.GetTypeEiiMembers(type);
            var typeInterfaces   = GetClassInterface(type);

            var doc = new XmlDocument();

            doc.LoadXml(XmlConsts.EiiErrorImplement);

            var node = doc.SelectSingleNode($"/Type/Members/Member[@MemberName='{XmlNodeName}']");

            if (node != null)
            {
                MDocUpdater.AddImplementedMembers(enttyType, mi, typeInterfaces, (XmlElement)node, ieeImplementList);
                returnValue = node.SelectNodes("Implements/InterfaceMember").Cast <XmlElement>().ToList();
            }

            return(returnValue);
        }