Summary
Parses Xml documentation example code from file(s) using given pattern.
Syntax
[CakeMethodAlias]
public static IEnumerable<XmlDocExampleCode> ParseXmlDocFilesExampleCode(this ICakeContext context, string pattern)
Examples
var filesExampleCodes = ParseXmlDocFilesExampleCode("./Cake.*.xml");
foreach(var exampleCode in filesExampleCodes)
{
Information(
"{0}\r\n{1}",
exampleCode.Name,
exampleCode.Code
);
}
Attributes
Parameters
Name |
Type |
Description |
context |
ICakeContext |
The context. |
pattern |
string |
The globber file pattern. |
Return Value