Beispiel #1
0
        private XElement GetMethodDocComments(MethodInfo mInfo)
        {
            XmlDocReader reader = this.GetDocReader(mInfo.DeclaringType.Assembly);

            if (reader != null)
            {
                return(reader.GetDocComments(mInfo));
            }
            return(null);
        }
Beispiel #2
0
        public void EnrichConstructor(IProcessingContext context, ConstructorInfo ctor)
        {
            XmlDocReader reader = this.GetDocReader(ctor.DeclaringType.Assembly);

            if (reader != null)
            {
                XElement element = reader.GetDocComments(ctor);
                if (element != null)
                {
                    this.RewriteXml(context, ctor.ReflectedType.Assembly, element, "param", "typeparam");
                }
            }
        }
Beispiel #3
0
        public void EnrichType(IProcessingContext context, Type type)
        {
            XmlDocReader reader = this.GetDocReader(type.Assembly);

            if (reader != null)
            {
                XElement element = reader.GetDocComments(type);
                if (element != null)
                {
                    this.RewriteXml(context, type.Assembly, element, "typeparam");
                }
            }
        }
Beispiel #4
0
        public void EnrichEvent(IProcessingContext context, EventInfo eventInfo)
        {
            XmlDocReader reader = this.GetDocReader(eventInfo.ReflectedType.Assembly);

            if (reader != null)
            {
                XElement element = reader.GetDocComments(eventInfo);
                if (element != null)
                {
                    this.RewriteXml(context, eventInfo.ReflectedType.Assembly, element);
                }
            }
        }
Beispiel #5
0
        public void EnrichProperty(IProcessingContext context, PropertyInfo propertyInfo)
        {
            XmlDocReader reader = this.GetDocReader(propertyInfo.ReflectedType.Assembly);

            if (reader != null)
            {
                XElement element = reader.GetDocComments(propertyInfo);
                if (element != null)
                {
                    this.RewriteXml(context, propertyInfo.ReflectedType.Assembly, element);
                }
            }
        }
Beispiel #6
0
        public void EnrichParameter(IProcessingContext context, ParameterInfo parameter)
        {
            XmlDocReader reader = this.GetDocReader(parameter.Member.ReflectedType.Assembly);

            if (reader != null)
            {
                XNamespace ns      = "urn:doc";
                XElement   element = reader.GetDocComments(parameter);
                if (element != null)
                {
                    this.RewriteXmlContent(context, parameter.Member.ReflectedType.Assembly, "summary", element);
                }
            }
        }