Esempio n. 1
0
 public static string GenerateFieldMarkdown(
     this MetadataItem item,
     int level,
     MetadataItem parent
     )
 => parent.Type == MemberType.Enum
         ? $"{item.DisplayName} | {item.Summary?.Replace("\n", "")}"
         : item
 .GenerateBaseMarkdown(level)
 .AppendLine(item.Syntax.GenerateMarkdown(level + 1, addReturn: false))
 .ToString();
Esempio n. 2
0
 public static string GeneratePropertyMarkdown(this MetadataItem item, int level)
 => item
 .GenerateBaseMarkdown(level)
 .AppendLine(item.Syntax.GenerateMarkdown(level + 1, "Property value", false))
 .ToString();