protected Remove ( EntitySolverUpdateable solverUpdateable ) : void | ||
solverUpdateable | EntitySolverUpdateable | Solver updateable to remove. |
리턴 | void |
protected void Remove(EntitySolverUpdateable solverUpdateable)
{
if (solverUpdateable.SolverGroup == this)
{
solverUpdateables.Remove(solverUpdateable);
solverUpdateable.SolverGroup = null;
solverUpdateable.Solver = null;
OnInvolvedEntitiesChanged();
}
else
{
throw new InvalidOperationException("Cannot remove SolverUpdateable from SolverGroup; it doesn't belong to this SolverGroup.");
}
}