从dataTable转换为字节数组列表 [英] conversion from dataTable to byte array list

查看:104
本文介绍了从dataTable转换为字节数组列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从dataTable转换为字节数组列表?

how can I conversion from dataTable to byte array list?

推荐答案

通过编写代码.您将不得不遍历行和列,并创建数组,了解将每个单元格转换为什么以及如何将这种类型转换为所需的类型.做到这一点没有神奇的一步.您可以使用反射来编写通用方法.
By writing code. You''d have to step over the rows and columns, and create your array, knowing what to convert each cell in to, and how to convert that type in to the type you want. There''s no magic one step way to do it. You could write a generic method using reflection.


http://bytes.com/topic/c-sharp/answers/852271-convert- datarow-stringarray [^ ]
http://forums.asp.net/t/1445494.aspx [
http://social.msdn.microsoft.com/forums/en-US/adodotnetdataproviders/thread/9275ffb9-be3d-4832-ae9f-ce0a4dc5e678[^]
http://bytes.com/topic/c-sharp/answers/852271-convert-datarow-stringarray[^]
http://forums.asp.net/t/1445494.aspx[^]


这篇关于从dataTable转换为字节数组列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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