示例#1
0
        /// <summary>Returns the contents of an XML documentation for the specified member.</summary>
        /// <param name="parameter">The reflected member.</param>
        /// <param name="document">The document.</param>
        /// <returns>The contents of the "summary" tag for the member.</returns>
        public static string GetXmlDocs(this ParameterDefinition parameter, XDocument document)
        {
            if (DynamicApis.SupportsXPathApis == false)
            {
                return(string.Empty);
            }

            var element = parameter.GetXmlDocsElement(document);

            return(element.ToXmlDocsContent());
        }