starlss
starlss
CC#
Created by starlss on 1/2/2023 in #help
✅ I'm trying to understand WPF's source code. What is a WeakReference
WeakReference is a class that probably has applications other than in WPF (in particular, I'm trying to understand the Dispatcher class, wich I believe has to do with thread safety, but easiest things first). Can someone explain to me what is a WeakReference? The code of the class itself is not extensive, but it uses another concept I'm not comfortable with yet: IntPtr, and lots of attributes. Here's a link to WeakReference.cs https://referencesource.microsoft.com/mscorlib/system/weakreference.cs.html#https://referencesource.microsoft.com/mscorlib/system/weakreference.cs.html
29 replies