Method SaveResults
- Namespace
- Docfx.ResultSnippets
- Assembly
- Docfx.ResultSnippets.dll
SaveResults<T>(T, string, string, string, bool, string, string)
Saves the result to an example file that can be included in documentation
public static void SaveResults<T>(this T result, string folder = "__examples__", string extension = "md", string partName = "", bool replaceExisting = true, string sourceFilePath = "", string memberName = "")
Parameters
resultTsome result to save
folderstringfolder to save it under, default is
__examples__extensionstringextension to use for the example file, default is
mdpartNamestringoptional part name
replaceExistingboolflag to indicate that existing example files are to be replaced, default is
truesourceFilePathstringsource file path of the calling code
memberNamestringmember name of the calling code
Type Parameters
Tsome T to
ToStringand save
Remarks
The generated file name format is `{sourceFilePath}.{memberName}.({partName}.).{extension}`
This is saved under the `folder`, __examples__ by default relative to the executing code in `sourceFilePath`