Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Generics as Properties & Parameters
Message
From
15/05/2007 09:48:33
Jeff Corder
Ambit Technologies, LLC
Missouri, United States
 
 
To
12/05/2007 18:08:43
Jeff Corder
Ambit Technologies, LLC
Missouri, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01225008
Message ID:
01225518
Views:
32
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform