Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Generics as Properties & Parameters
Message
De
15/05/2007 09:48:33
Jeff Corder
Ambit Technologies, LLC
Missouri, États-Unis
 
 
À
12/05/2007 18:08:43
Jeff Corder
Ambit Technologies, LLC
Missouri, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01225008
Message ID:
01225518
Vues:
30
It seems that the problem is that c# (and VB also) do not support inheritance in generics (C# generics are 'invariant' - see http://blogs.msdn.com/rmbyers/archive/2005/02/16/375079.aspx).

Based on this article and others I have read, it seems that I cannot create routines that can process the new business objects in a general manner. Specifically, writing a routine to handle ABusinessObject and then provide a specific business object (Invoices) as a parameter.

If my conclusion is incorrect, I would very much like to have the error of my ways pointed out to me. As it is, it looks like I will be rolling back to MM 2.3.

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

Click here to load this message in the networking platform