Skip to content

Commit 35c2306

Browse files
committed
Update XDocExtensions
1 parent e261e2b commit 35c2306

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/Render/BitzArt.XDoc.PlainText/XDocExtensions.cs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,19 @@ public static class XDocExtensions
99
/// Renders the documentation of a <see cref="Type"/> as plain text.
1010
/// </summary>
1111
/// <param name="documentation"></param>
12+
/// <param name="useShortTypeNames"></param>
1213
/// <param name="forceSingleLine"></param>
1314
/// <returns></returns>
14-
public static string ToPlainText(this MemberDocumentation? documentation, bool forceSingleLine = false)
15+
public static string ToPlainText(
16+
this MemberDocumentation? documentation,
17+
bool forceSingleLine = false,
18+
bool useShortTypeNames = true)
1519
{
1620
if (documentation == null)
1721
{
1822
return string.Empty;
1923
}
20-
21-
return PlainTextRenderer.Render(documentation, forceSingleLine);
24+
25+
return PlainTextRenderer.Render(documentation, forceSingleLine, useShortTypeNames);
2226
}
2327
}

0 commit comments

Comments
 (0)