예제 #1
0
파일: SummaryUnit.cs 프로젝트: MddMBorg/mdG
 /// <inheritdoc />
 public override IEnumerable <string> ToMarkdown(FormatKind format, MemberName parentName) =>
 new[]
 {
     ElementContent(parentName)
 };
예제 #2
0
파일: SummaryUnit.cs 프로젝트: MddMBorg/mdG
 /// <summary>
 /// Convert the summary XML element to Markdown safely.
 /// If element is <value>null</value>, return empty string.
 /// </summary>
 /// <param name="element">The summary XML element.</param>
 /// <returns>The generated Markdown.</returns>
 internal static IEnumerable <string> ToMarkdown(XElement element, MemberName parentName) =>
 element != null
         ? new SummaryUnit(element, parentName).ToMarkdown(FormatKind.None, parentName)
         : Enumerable.Empty <string>();
예제 #3
0
파일: SummaryUnit.cs 프로젝트: MddMBorg/mdG
 /// <summary>
 /// Initializes a new instance of the <see cref="SummaryUnit"/> class.
 /// </summary>
 /// <param name="element">The summary XML element.</param>
 /// <exception cref="ArgumentException">Throw if XML element name is not <c>summary</c>.</exception>
 internal SummaryUnit(XElement element, MemberName parentName) : base(element, "summary", parentName)
 {
 }