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.
 
Back
Top