예제 #1
0
 /// <summary>
 /// This object will hand ownership over to the specified object.
 /// </summary>
 /// <param name="owner">The object to give ownership to.</param>
 internal void RevokeOwnership(SKObject owner)
 {
     if (owner != null)
     {
         owner.TakeOwnership(this);
     }
     else
     {
         this.RevokeOwnership();
     }
 }
예제 #2
0
 /// <summary>
 /// This object will hand ownership over to the specified object.
 /// </summary>
 /// <param name="owner">The object to give ownership to.</param>
 internal void RevokeOwnership(SKObject owner = null)
 {
     if (owner != null)
     {
         owner.TakeOwnership(this);
     }
     else
     {
         OwnsHandle = false;
     }
 }