BlockingCollection contains only methods to add individual items. What if I want to add a collection? Should I just use foreach loop?
Why BlockingCollection doesn’t contain method to add a collection? I think such method can be pretty useful.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
ICollectioninterfaces and many of the BCL list-type classes don’t have anAddRangemethod for some reason and it is annoying.Yes, you’ll need to
foreachover the collection, you could write you own extension method if you’re using it a lot.