vb.net中的集合 [英] Collection in vb.net

查看:63
本文介绍了vb.net中的集合的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是收藏集?

What are collections?
When do you use collections?

推荐答案

集合就像一个大袋子,可以放入对象.您可以将它们保留在其中,直到您要看它们为止,可以数数它们,然后可以逐个浏览它们.您可以有很多袋子,每个袋子都有它自己的一组对象,并将它们分开存放.

这就是类推的原因:一个集合可以容纳多个对象,但是一个对象并不局限于一个集合.您可以在多个集合中使用同一对象.

请参阅 http://msdn.microsoft.com/en-us/library/system.collections(v = vs.71).aspx [
A collection is like a big bag you can put objects into. You can keep them there until you want to look at them, you can count them, and you can go through them one by one. You can have many bags, each with it''s own set of objects and keep them all separate.

That''s where the analogy breaks down: A collection can hold multiple objects, but an object is not restricted to one collection. You can have the same object in many collections.

See http://msdn.microsoft.com/en-us/library/system.collections(v=vs.71).aspx[^] for more details - there are a lot of different types, and far to many to go into here!


集合 [

我认为是对一般
I think a reference to a general VB Tutorial[^] is in place here.

Collections are also covered.

Cheers


这篇关于vb.net中的集合的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆