Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Generic list question
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 5.0
OS:
Windows 7
Network:
SAMBA Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01611163
Message ID:
01611282
Vues:
24
>Hi Viv, that's exactly the scenario - I'll try what you suggest ( casting ) because it would be a lot easier to maintain, I'm trying ( in vain so far ) to get the companies that supply us with these shite spreadsheets to make more of an effort to send them in a consistent format which would make life a lot easier. Thanks very much for your help.

I don't see how that would work. To cast to the derived class you have to know which class is in List.
If you don't know you can't cast.
If you do know then you may as well type the list to the derived class in the first place...
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform