c# - Trying to get name of data stored in reader -


i have datareader reads through 5 names different values attached each name. while debugging can each name using expression computed vs:

(new system.collections.generic<system.io.fileinfo>(((school.packagereader)(reader))._incomingstudents)).items[0].name 

this above code while debugging gives me values need 5 different names when change items 0 1 or 2... when try use above code in .cs file errors. there anyway use in code , values?

the error receiving because did not define type of collection wanted use.

i assume looking list, in case need instantiate way:

    (new system.collections.generic.list<system.io.fileinfo>(((school.packagereader)(reader))._incomingstudents)).items[0].name 

though doesn't seem case list calling single value in items[0].name. that's error coming from.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -