Public static (Shared in Visual Basic) members of this type are
safe for multithreaded operations. Instance members are not guaranteed to be
The implementations in this class are appropriate when the base implementation does not allow elements. The methods Add, Remove, and Element are based on the Offer, Poll, and Peek methods respectively but throw exceptions instead of indicating failure via or returns.
An IQueue implementation that extends this class must minimally define a method Offer which does not permit the insertion of elements, along with methods Poll, and Peek. Typically, additional methods will be overridden as well. If these requirements cannot be met, consider instead subclassing CollectionBase}.