Exemple #1
0
            static void WriteAttrib(XmlWriter writer, ITypeMember m)
            {
                string s = ApiInfoExtensions.GetAttrib(m);

                if (string.IsNullOrEmpty(s))
                {
                    return;
                }
                writer.WriteAttributeString("attrib", s);
            }
Exemple #2
0
            static void WriteConstructors(XmlWriter writer, IType type)
            {
                bool parentTag = false;

                foreach (var ctor in ApiInfoExtensions.VisibleConstructors(type))
                {
                    if (!parentTag)
                    {
                        writer.WriteStartElement("constructors");
                        parentTag = true;
                    }
                    WriteMethod(writer, ctor, "contsructor");
                }
                if (parentTag)
                {
                    writer.WriteEndElement();
                }
            }