public static bool Execute(object container, InspectorVisitor <T> visitor, IProperty property, PropertyPath path, string propertyName, InspectorVisitLevel visitLevel) { var action = new GetCustomInspectorCallback(visitor, property, path, propertyName, visitLevel); PropertyBagResolver.Resolve(container.GetType()).Cast(ref action); return(action.Visited); }
private bool TryGetInspector <TValue>( ref TValue value, IProperty property, PropertyPath path, string name, InspectorVisitLevel visitLevel) => GetCustomInspectorCallback.Execute(value, this, property, path, name, visitLevel) || TryGetInspector <TValue>(this, property, path, name, visitLevel);