哪一个是更好的DataTable和List [英] which one is better DataTable and List
本文介绍了哪一个是更好的DataTable和List的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
任何人都可以告诉我哪一个在DataTable或List之间更好?
can any one tell me which one is better between DataTable or List?
推荐答案
它们不是这样的:它们是不同的结构,用于不同的目的。试图找到最好的就像争论自行车是否比送货车更好。
对于某些事情,DataTable是理想的 - 特别是如果你正在处理任何事情这是源于或打算用于表格数据,例如数据库。
对于其他人来说,List是理想的,因为它更简单,更易于使用并且更灵活。
不是最佳的情况 - 只是马匹的课程。
They is no such thing: they are different structures, meant for different purposes. Trying to find "the best" is like arguing if bicycles are better than delivery vans.
For some things, a DataTable is ideal - particularly if you are dealing with anything that is sourced from, or intended for a tabular data souse such as a database.
For others, a List is ideal as it is simpler, easier to work with and somewhat more flexible.
Not a case of "best" - just horses for courses.
datatable-vs-list
datatable-vs-bindinglist
http://stackoverflow.com/a/896248 [ ^ ]
List是否优于使用.net的数据集/ DataTable对象? [ ^ ]
datatable-vs-list
datatable-vs-bindinglist
http://stackoverflow.com/a/896248[^]
Is List is better than Dataset /DataTable object using .net?[^]
这篇关于哪一个是更好的DataTable和List的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文