Skip to content
ConsoleMonster
Class

ObjectInspector

ConsoleMonster.Data

Namespace
ConsoleMonster.Data
Assembly
ConsoleMonster
Modifiers
static

Builds a bounded, neutral tree from arbitrary objects for a presentation layer.

Inheritance

  • object
  • ObjectInspector

Methods

public static InspectNode Inspect(object? value, InspectorOptions? options = null, string? name = null) #

Inspects a value without allowing member getter failures to escape.

Parameters

value object? required
The root value.
options ConsoleMonster.Data.InspectorOptions? = null optional
Inspection limits and filters.
name string? = null optional
Optional root label.

Returns

InspectNode A root inspection node.
public static bool IsScalarValue(object? value) #

Whether a value is shown as one value rather than as members: null, primitives, enums, strings, decimals, dates, durations, GUIDs, URIs, versions and types.

Parameters

value object? required
The value.

Returns

bool True for a scalar.