FindOrCreateObjectHolder() приватный Метод

private FindOrCreateObjectHolder ( long objectID ) : ObjectHolder
objectID long
Результат ObjectHolder
Пример #1
0
        private void UpdateDescendentDependencyChain(int amount, ObjectManager manager)
        {
            ObjectHolder holder = this;

            do
            {
                manager.FindOrCreateObjectHolder(holder.ContainerID).IncrementDescendentFixups(amount);
            }while (holder.RequiresValueTypeFixup);
        }
Пример #2
0
 /*==========================UpdateTotalDependencyChain==========================
 **Action: Updates the total list of dependencies to account for a fixup being added
 **        or completed in a child value class.  This will update all value classes
 **        containing that child and the object which contains all of them.  
 **Returns: void
 **Arguments: amount -- the amount by which to increment (or decrement) the dependency chain.
 **           manager -- The ObjectManager used to lookup other objects up the chain.
 **Exceptions: None.  Asserts only.
 ==============================================================================*/
 private void UpdateDescendentDependencyChain(int amount, ObjectManager manager) {
     ObjectHolder holder = this;
     
     //This loop walks one more object up the chain than there are valuetypes.  This
     //is because we need to increment the TotalFixups in the holders as well.
     do {
         holder = manager.FindOrCreateObjectHolder(holder.ContainerID);
         BCLDebug.Trace("SER", "[ObjectManager.UpdateDescendentDependencyChain]Looking for holder with id: ", holder.ContainerID);
         BCLDebug.Assert(holder!=null, "[ObjectHolder.UpdateTotalDependencyChain]holder!=null");
         holder.IncrementDescendentFixups(amount);
     } while (holder.RequiresValueTypeFixup);
 }
Пример #3
0
 private void UpdateDescendentDependencyChain(int amount, ObjectManager manager)
 {
     ObjectHolder holder = this;
     do
     {
         manager.FindOrCreateObjectHolder(holder.ContainerID).IncrementDescendentFixups(amount);
     }
     while (holder.RequiresValueTypeFixup);
 }