示例#1
0
        static void WriteTypes(TextWriter writer, string title, IEnumerable <DocfxMember> members,
                               DocfxMember.TypeKind kind, bool link)
        {
            var kindMembers = members.Where(m => m.Type == kind);

            if (!kindMembers.Any())
            {
                return;
            }
            writer.WriteLine();
            writer.WriteLine($"## {title}");
            writer.WriteLine();
            foreach (var member in kindMembers)
            {
                WriteBullet(writer, member, link);
            }
        }
示例#2
0
        static void WriteTypes(TextWriter writer, string title, IEnumerable <DocfxMember> members,
                               DocfxMember.TypeKind kind, bool link, string obsoleteSuffix)
        {
            var kindMembers = members.Where(m => m.Type == kind);

            if (!kindMembers.Any())
            {
                return;
            }
            writer.WriteLine();
            writer.WriteLine($"## {title}");
            writer.WriteLine();
            foreach (var member in kindMembers)
            {
                // We generate the "(obsolete)" part even for new members... unlikely, but possible.
                // (We haven't made IsoDayOfWeekExtensions.ToIsoDayOfWeek obsolete in 2.0.x, but
                // it's possible...)
                WriteBullet(writer, member, link, obsoleteSuffix);
            }
        }