C#以表格形式存储数据,基于任何列的查找项 [英] C# storage for data in a table form, lookup items based on any column

查看:74
本文介绍了C#以表格形式存储数据,基于任何列的查找项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个排序列表,但是它将至少有6列和至少50行.我希望能够基于任何列中的数据查找行,并从该标识的行中的任何列中提取信息.我正在学习C#,并尝试应用一些我学到的东西.但是,我不确定这个愿望.我可以做吗?在我尝试开发此技能时,我们将不胜感激.

I would like to create a list of sorts, but it will have at least 6 columns and at least 50 rows. I want to be able to look up a row based on data in any column and extract information from any column in that identified row. I am learning C# and trying to apply some stuff I have picked up. However, I''m not sure about this wish. Can I do it? Any help will be appreciated as I try to develop this skill.

推荐答案

在我看来,您想创建一个存储数据的结构,创建一个列表,该结构,并编写代码以搜索结构中的所有值以找到匹配项.
It sounds to me like you want to create a struct to store your data, create a list of that struct, and write code that searches all the values in your struct to find a match.


这篇关于C#以表格形式存储数据,基于任何列的查找项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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