/// <summary>
/// Removes passed context from the chunk's list of contexts.
/// </summary>
/// <param name="context">Context to be removed.</param>
/// <exception cref="ArgumentNullException"><paramref name="context"/> is null.</exception>
/// <returns><c>true</c>, if the context has been removed, and <c>false</c> otherwise.</returns>
public bool RemoveContext(Context context)
{
if (context == null)
{
throw new ArgumentNullException("context");
}
if (this.ChunkContexts.Remove(context))
{
context.ClearTarget();
return true;
}
return false;
}