Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Generics as Properties & Parameters
Message
 
À
15/05/2007 09:48:33
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:
01225807
Vues:
16
Jeff,

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

Did your change your ABusinessObject definition to the following as mentioned in the What's New Guide?
public class ABusinessObject<EntityType> : mmBusinessObjectGeneric<EntityType>
		where EntityType : mmBusinessEntity, new()
{
Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform