You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Precision gap: self-detaching event handler (unsubscribes itself in its own body) flagged as unbounded #224
Found by: the issue #201 oracle sweep, docs/notes/oracle-sweep-2026-07-10.md; catalogued as docs/notes/field-notes-patterns.md entry 18.
The pattern
DropDownContent.Closed+=DropDownContent_Closed;// <- flagged: no visible -= near the +=voidDropDownContent_Closed(objectsender,EventArgse){((Popup)sender).Closed-=DropDownContent_Closed;// removes itself, first firingthis.IsDropDownContentOpen=false;}
The handler removes itself from the event the first time it runs — a common one-shot idiom ("do this once, then stop listening") that needs no external detach call. By the time the event could fire a second time, the subscription is already gone.
Own.NET's -= search is scoped to the subscribe call's enclosing method (or a class-level scan for a field-based handler); it doesn't look inside the handler's own body for a matching self-removal.
When resolving whether a subscribed handler has a matching -=, also check the handler method's own body for a -= against the same event/delegate expression (typically via the sender parameter cast back to the source type) — a handler that detaches itself is bounded by construction.
Scope
No analyzer code changed as part of the sweep — this issue tracks the fix as its own unit of work.
Activity
fix: address Codex P2 review — sound self-owned-local and self-detach…
Merge branch 'main' into claude/precision-quickwins-220-222-223-224
Merge pull request #231 from PhysShell/claude/precision-quickwins-220…
Merge pull request #235 from PhysShell/claude/precision-remeasure-note