Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // We are exposing TryGetTarget instead of a simple getter to avoid a common problem where people write incorrect code like:
- //
- // WeakReference ref = ...;
- // if (ref.Target != null)
- // DoSomething(ref.Target)
Advertisement
Add Comment
Please, Sign In to add comment