ByChance.Core.Chunk.RemoveContext C# (CSharp) Method

RemoveContext() public method

Removes passed context from the chunk's list of contexts.
is null.
public RemoveContext ( Context context ) : bool
context Context Context to be removed.
return bool
        public bool RemoveContext(Context context)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }

            if (this.ChunkContexts.Remove(context))
            {
                context.ClearTarget();
                return true;
            }

            return false;
        }