Exemple #1
0
 public void SetTarget(T target)
 {
     if (target == null)
     {
         throw new InvalidOperationException("Target may not be null");
     }
     weakReference = new Java.Lang.Ref.WeakReference <T>(target);
 }
Exemple #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="target">The target object</param>
 /// <param name="trackResurrection">not used by Dot42</param>
 public WeakReference(T target, bool trackResurrection)
 {
     weakReference          = new Java.Lang.Ref.WeakReference <T>(target);
     this.trackResurrection = trackResurrection;
 }