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, "<", ">"); await w.WriteAsync("."); await MethodHelper.MethodName(w, methods.First(), t => t.Name, "<", ">"); }, "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, "<", ">"); await MethodHelper.MethodParameterTypes(writer, method, t => t.Name, "<", ">"); await writer.WriteLineAsync(); await MethodDocument.MethodDetails(writer, assembly, type, method, xmlComments); } }
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() */ }
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, "<", ">"); await w.WriteAsync("."); await MethodHelper.MethodName(w, method, t => t.Name, "<", ">"); await MethodHelper.MethodParameterTypes(w, method, t => t.Name, "<", ">"); }, "Method"); await DocumentHelpers.PageHeader(writer, type, xmlComments); await MethodDocument.MethodDetails(writer, assembly, type, method, xmlComments); }