Skip to content
ConsoleMonster
Class

InspectMember

ConsoleMonster.Data

Namespace
ConsoleMonster.Data
Assembly
ConsoleMonster
Modifiers
sealed

A named value whose getter is invoked only when the inspector reads it.

Inheritance

  • object
  • InspectMember

Usage

Explore 3 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 2

Accepted by parameters 1

Constructors

InspectMember 2 overloads
public InspectMember(string name, Func<object?> read) #

Creates a member with a lazy value reader.

Parameters

name string required
read System.Func<object?> required
public InspectMember(string name, object? value) #

Creates a member with a fixed value.

Parameters

name string required
value object? required

Methods

public object? ReadValue() #

Reads the member value; the read may throw.

Returns

object?

Properties

public string Name { get; } #

The member name.

public object? Value { get; } #

Reads the member value; the read may throw.