Example #1
0
        internal static async Task BuildMultiple(
            StreamWriter writer,
            Assembly assembly,
            Type type,
            List <MethodInfo> methods,
            XDocument xmlComments)
        {
            await DocumentHelpers.PageTitle(
                writer,
                async w =>
            {
                await TypeHelper.FullName(w, type, t => t.Name, "&lt;", "&gt;");
                await w.WriteAsync(".");
                await MethodHelper.MethodName(w, methods.First(), t => t.Name, "&lt;", "&gt;");
            },
                "Methods");

            await DocumentHelpers.PageHeader(writer, type, xmlComments);

            await MethodDocument.Overloads(writer, methods, xmlComments);

            foreach (var method in methods)
            {
                await writer.WriteAsync("## ");

                await MethodHelper.MethodName(writer, methods.First(), t => t.Name, "&lt;", "&gt;");

                await MethodHelper.MethodParameterTypes(writer, method, t => t.Name, "&lt;", "&gt;");

                await writer.WriteLineAsync();

                await MethodDocument.MethodDetails(writer, assembly, type, method, xmlComments);
            }
        }
Example #2
0
        private static async Task MethodDetails(
            StreamWriter writer,
            Assembly assembly,
            Type type,
            MethodInfo method,
            XDocument xmlComments)
        {
            await writer.WriteLineAsync(XmlCommentHelper.Summary(XmlCommentHelper.MethodElement(xmlComments, method)));

            await writer.WriteLineAsync();

            await MethodDocument.Signature(writer, type, method);

            await MethodDocument.TypeParameters(writer, method, xmlComments);

            await MethodDocument.Parameters(writer, method, xmlComments);

            await MethodDocument.Returns(writer, method, xmlComments);

            /* await MethodDocument.Implements(); */
            await MethodDocument.Exceptions(writer, assembly, method, xmlComments);

            /* await MethodDocument.Examples() */
            /* await MethodDocument.Remarks() */
        }
Example #3
0
        internal static async Task BuildSingle(
            StreamWriter writer,
            Assembly assembly,
            Type type,
            MethodInfo method,
            XDocument xmlComments)
        {
            await DocumentHelpers.PageTitle(
                writer,
                async w =>
            {
                await TypeHelper.FullName(w, type, t => t.Name, "&lt;", "&gt;");
                await w.WriteAsync(".");
                await MethodHelper.MethodName(w, method, t => t.Name, "&lt;", "&gt;");
                await MethodHelper.MethodParameterTypes(w, method, t => t.Name, "&lt;", "&gt;");
            },
                "Method");

            await DocumentHelpers.PageHeader(writer, type, xmlComments);

            await MethodDocument.MethodDetails(writer, assembly, type, method, xmlComments);
        }