partial interfaces

liptonIcedTea

Well-known member
Joined
Jan 18, 2007
Messages
89
Programming Experience
1-3
Hi,

Is it possible to create partial interfaces?

I have an interface that is code generated but I would like to extend upon that.

There are some places on the net that saids explaining how to do it for c#
(http://aspalliance.com/1536_Understanding_and_Using_Partial_Classes_in_C.6)

However, it doesn't look like I can do the same for VB.NET? When i put in

Partial Public Interface IPurchaseOrderStatusDAO

it comes up with the error "Partial is not valid on an Interface declaration"

Does that mean there are no partial interfaces in vb.net but there are in c#?

Thanks a lot.
 
VB.Net does not have partial interfaces.
 
Reading the MSDN documentation for the Partial (VB) and partial (C#) key words, as I'm sure you did, says this:
MSDN:C# said:
Partial type definitions allow the definition of a class, struct or interface to be split into multiple files.
MSDN:VB said:
Indicates that a class or structure declaration is a partial definition of the class or structure.
 
C# and VB are different languages. They haven't forgotten to put anything in either. Each team has made decisions about what features their language will support. Why doesn't C# have the My namespace? Optional method arguments? A Like operator? Each language has a slightly different focus and the need for partial interfaces is so minimal they presumably decided it wasn't worth it.
 
Back
Top