예제 #1
0
 /// <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();
 }
예제 #2
0
 /// <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();
 }