ViIvanov

Untitled

Jan 21st, 2013
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.28 KB | None | 0 0
  1.        //
  2.         // We are exposing TryGetTarget instead of a simple getter to avoid a common problem where people write incorrect code like:
  3.         //
  4.         //      WeakReference ref = ...;
  5.         //      if (ref.Target != null)
  6.         //          DoSomething(ref.Target)
Advertisement
Add Comment
Please, Sign In to add comment