C# casting

Joined
May 3, 2006
Messages
1
Reaction score
0
Hey all. I am trying to use a list view to show attributes of 2 seperate classes. These 2 classes are inherited from a main class, so when I want to display inherited variables, I have to cast them. The problem is, when I cast the variables in order to show them in the list, I get an exception error that says specified cast is not valid.

I know I'm probably not being very clear, but any help would be greatly appreciated. I can post some of the code if it helps. Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top