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:
01611174
Vues:
43
Hi Viv, what I need to be able to do is ( I don't know which class I'm going to need until runtime )
XLToList<IMyInterface>  x;

if(SomeCondition)
    x = new XLToList<AClass>();
else
    x = new XLToList<ADifferentClass>();
But I can't seem to figure it out :-( having a dumb day
Regards,
Peter J. Kane



Pete
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform