public override void WriteXml(XmlWriter writer)
        {
            if (writer == null)
            {
                return;
            }

            writer.WriteStartElement("SpecializedMemberWithParametersReference");
            writer.WriteAttributeString("prefix", prefix);
            writer.WriteAttributeString("member", member);

            if (type != null)
            {
                type.WriteXml(writer);
            }
            if (parameters != null && parameters.Count != 0)
            {
                writer.WriteStartElement("Parameters");
                for (int i = 0; i < parameters.Count; i++)
                {
                    parameters[i].WriteXml(writer);
                }
                writer.WriteEndElement();
            }

            writer.WriteEndElement();
        }
Example #2
0
        public override void WriteXml(XmlWriter writer)
        {
            if (writer == null)
            {
                return;
            }

            writer.WriteStartElement("SpecializedMemberReference");

            if (member != null)
            {
                member.WriteXml(writer);
            }
            if (type != null)
            {
                type.WriteXml(writer);
            }

            writer.WriteEndElement();
        }