Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

how fill class object with datatable by foreach

$
0
0

Hi

I want set properties of a object by datatable that have some fields. it's not good I use switch-case. for example if case index of ItemArray is 0 , set obj.name= item[0] ...

surely there is better way, please let me know. thx


امیدوارم همیشه بروز باشید I hope always be up2date


Viewing all articles
Browse latest Browse all 31927

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>