Skip to content

LGK-Productions/LgkProductions.Inspector

Repository files navigation

outputFileName
index.html

LgkProductions.Inspector

Abstract backend for object inspection.

Getting Started

Tip

Implement INotifyPropertyChanged to prevent polling.

MyObject instance = new();

// Attach inspector using "tickProvider" used for polling
using var inspector = Inspector.Attach(instance, tickProvider);

// Get notified on change
inspector.Elements[i].ValueChanged
  += (instance, member, newValue) => Console.WriteLine(newValue);

// Modify value through inspector
inspector.Elements[i].Value = 42;

License

This project is licensed under the MIT License.