Why is the Collection in the Microsoft.VisualBasic library? Why is it not in a more general location. Is there a reason Microsoft “hid” it from C#?
Why is the Collection in the Microsoft.VisualBasic library? Why is it not in a
Share
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.
The
Collectionin the Microsoft.VisualBasic library is a throw-back to the older VB6 Collection.There is a
System.Collectionnamespace that you should probably look into for the basic .NET collection functionality you probably want.Also, it’s kind of worth mentioning that you CAN add a reference and make use of the System.VisualBasic namespace in your C# code. It’s just that, most of the time, there isn’t any need to do it (example: http://msdn.microsoft.com/en-us/library/ms173136.aspx).
EDIT – Updated namespace – sorry!