internal static async Task PageHeader(StreamWriter writer, Type type, XDocument xmlComments)
        {
            await writer.WriteAsync("Namespace: [");

            await writer.WriteAsync(type.Namespace ?? "<empty>");

            await writer.WriteAsync("](");

            await writer.WriteAsync(FileNameHelper.NamespaceFileName(string.Empty, type.Namespace));

            await writer.WriteLineAsync(")  ");

            await writer.WriteLineAsync($"Assembly: {Path.GetFileName(type.Assembly.Location)}");

            await writer.WriteLineAsync();
        }
Esempio n. 2
0
 internal static string TypeFileName(string outputPath, Type type)
 {
     return(Path.Combine(outputPath, $"{FileNameHelper.NormaliseType(type)}.md"));
 }
Esempio n. 3
0
 internal static string PropertyFileName(string outputPath, PropertyInfo property)
 {
     return(Path.Combine(
                outputPath,
                $"{FileNameHelper.NormaliseType(property.DeclaringType)}.{property.Name.Replace('.', '-').ToLowerInvariant()}.md"));
 }
Esempio n. 4
0
 internal static string MethodFileName(string outputPath, MethodBase method)
 {
     return(Path.Combine(
                outputPath,
                $"{FileNameHelper.NormaliseType(method.DeclaringType)}.{method.Name.ToLowerInvariant()}.md"));
 }