How can I add values that a SqlDataReader returns to a generic List? I have a method where I use SqlDataReader to get CategoryID from a
SqlDataReader
CategoryID
Your current code should work, assuming catID is really declared before the try block, otherwise this won't compile.
catID