Class ResultExtensions

Namespace
Docfx.ResultSnippets
Assembly
Docfx.ResultSnippets.dll

Result extensions

public static class ResultExtensions
Inheritance
ResultExtensions
Inherited Members

Methods

SaveResults<T>(T, string, string, string, bool, string, string)

Saves the result to an example file that can be included in documentation

ToFencedResult<T>(T, string?)

Fences the result, with an optional language applied

ToJsonResult<T>(T, JsonSerializerOptions?)

Converts the value to a fenced block of JSON

ToTabResult<T>(IEnumerable<KeyValuePair<string, T>>)

Creates tabs out of the results provided

ToTableResult<T>(IEnumerable<T>, JsonSerializerOptions?, string?)

Converts an enumerable to a pipe table result