Docs · API reference · Verso.Contexts
VariablePreviewService Class#
Generates human-readable value previews for the variable explorer.
public sealed class VariablePreviewService
Inheritance System.Object → VariablePreviewService
Methods#
GetPreview(object, int) Method#
Returns a truncated string preview of a value, suitable for display in the variable explorer.
public string GetPreview(object? value, int maxLength=200);
Parameters#
value System.Object
maxLength System.Int32