Ejemplo n.º 1
0
        /// <summary>
        /// Returns a <see cref="string"/> representing the fully qualified name of the <paramref name="member"/> that can be used in the XML documentation.
        /// </summary>
        /// <param name="member"><see cref="IMemberData"/> to get the fully qualified name of.</param>
        /// <exception cref="ArgumentNullException"><paramref name="member"/> is <see langword="null"/>.</exception>
        public static string GetXmlFullyQualifiedName(this IMemberData member)
        {
            if (member is null)
            {
                throw new ArgumentNullException(nameof(member));
            }

            return(AnalysisUtilities.ConvertFullyQualifiedNameToXml(member.Symbol.ToString()));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Returns a <see cref="string"/> that contains all the parent types of the specified <paramref name="member"/> and the <paramref name="member"/>'s separated by the dot ('.') character. Can be used in XML documentation.
        /// </summary>
        /// <param name="member"><see cref="IMemberData"/> to get the <see cref="string"/> of.</param>
        /// <param name="includeParameters">If the value of the <see cref="IMemberData.Symbol"/> property of the <paramref name="member"/> parameter is a <see cref="IMethodSymbol"/>, determines whether to include the method's parameters in the returned <see cref="string"/>.</param>
        /// <exception cref="ArgumentNullException"><paramref name="member"/> is <see langword="null"/>.</exception>
        public static string GetXmlParentTypesString(this IMemberData member, bool includeParameters = false)
        {
            string parentString = GetParentTypesString(member, includeParameters);

            return(AnalysisUtilities.ConvertFullyQualifiedNameToXml(parentString));
        }