/// <summary> /// This object will take ownership of the specified object. /// </summary> /// <param name="obj">The object to own.</param> internal void TakeOwnership(SKObject obj) { lock (ownedObjects) { ownedObjects.Add(obj); } obj.RevokeOwnership(); }
/// <summary> /// This object will take ownership of the specified object. /// </summary> /// <param name="obj">The object to own.</param> private void TakeOwnership(SKObject obj) { SetDisposeChild(obj); obj.RevokeOwnership(); }