[NUI] Fix WeakEvent bugs
authorJiyun Yang <ji.yang@samsung.com>
Wed, 21 Feb 2024 11:22:42 +0000 (20:22 +0900)
committerSeoyeon2Kim <34738918+Seoyeon2Kim@users.noreply.github.com>
Tue, 27 Feb 2024 08:13:01 +0000 (17:13 +0900)
commitba982915223a440dcb734ea6b37b11bce90435e7
treea68411b44b027d61bbf002077919c10fa3776587
parentdacb8b5865eedb23dd03a7f4f6d264401fa88022
[NUI] Fix WeakEvent bugs

* Checks that target object is explicitly disposed but not collected yet before invoke
* Consider list item removal/addition while traversing for invoke
* WeakHandler Equal method works well in static case
* Cleanup dead handlers not everytime

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
src/Tizen.NUI/src/internal/Common/Disposable.cs
src/Tizen.NUI/src/internal/Common/WeakEvent.cs