哪个用于保留字符串数组或列表? [英] which is used to keep string array or list?

查看:76
本文介绍了哪个用于保留字符串数组或列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

哪个用于将字符串保留在数组或列表中?

which is used to keep string ?in Array or List?

推荐答案

您是说应该使用哪个来存储字符串?

您需要先了解数组的大小,然后才能创建它.因此,如果您不知道大小,请使用列表进行动态分配.
Do you mean which should be used to store a string?

You need to know the size of the array before it is created. So if you don''t know the size, use a list for dynamic allocation.


您应该首先了解.NET框架中可用的各种数据结构,它将有助于您了解.NET框架.哪种情况需要使用哪种数据结构.

您可以参考以下文章以了解此

http://create.msdn.com/zh-CN/education/catalog/article/data_structures [^ ]
You should first understand the various data structures available in .NET framework, it will help you to understand in which scenario which data structure needs to be used.

You can refer following article to understand this

http://create.msdn.com/en-US/education/catalog/article/data_structures[^]


这篇关于哪个用于保留字符串数组或列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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