/// <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(); } }
/// <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; } }