Example #1
0
 /// <summary>
 /// Collects the exported types with missing comments from assembly.
 /// </summary>
 /// <param name="assembly">The assembly.</param>
 /// <param name="excludeTypes">The exclude types.</param>
 public static TypeComments[] CollectExportedTypesWithMissingCommentsFromAssembly(
     Assembly assembly,
     List <Type>?excludeTypes = null)
 {
     return(AssemblyCommentHelper.CollectExportedTypesWithMissingComments(
                assembly,
                null,
                excludeTypes));
 }
Example #2
0
        /// <summary>
        /// Collects the exported types with missing comments from assembly and generate text.
        /// </summary>
        /// <param name="assembly">The assembly.</param>
        /// <param name="excludeTypes">The exclude types.</param>
        /// <param name="useFullName">if set to <c>true</c> [use full name].</param>
        public static string CollectExportedTypesWithMissingCommentsFromAssemblyAndGenerateText(
            Assembly assembly,
            List <Type>?excludeTypes = null,
            bool useFullName         = false)
        {
            var typesWithMissingComments = AssemblyCommentHelper.CollectExportedTypesWithMissingComments(
                assembly,
                null,
                excludeTypes);

            return(AssemblyCommentHelper.GetTypesAsRenderText(typesWithMissingComments, useFullName));
        }
Example #3
0
        /// <summary>
        /// Collects the exported types with missing comments from assembly and generate text lines.
        /// </summary>
        /// <param name="assembly">The assembly.</param>
        /// <param name="excludeTypes">The exclude types.</param>
        /// <param name="useFullName">if set to <c>true</c> [use full name].</param>
        public static string[] CollectExportedTypesWithMissingCommentsFromAssemblyAndGenerateTextLines(
            Assembly assembly,
            List <Type>?excludeTypes = null,
            bool useFullName         = false)
        {
            if (assembly == null)
            {
                throw new ArgumentNullException(nameof(assembly));
            }

            return(AssemblyCommentHelper.CollectExportedTypesWithMissingComments(
                       assembly,
                       null,
                       excludeTypes)
                   .Select(x => x.Type.BeautifyTypeName(useFullName))
                   .ToArray());
        }
Example #4
0
 /// <summary>
 /// Collects the type of the exported type with comments from.
 /// </summary>
 /// <param name="type">The type.</param>
 public static TypeComments?CollectExportedTypeWithCommentsFromType(Type type)
 {
     return(AssemblyCommentHelper.CollectExportedTypeWithComments(type));
 }