vb.net recipe issue?

Topics: Web Client Software Factory, User Forum
Jul 22, 2007 at 4:51 PM
In my IDefaultView interface I specified a property as below

Public Interface IDefaultView
WriteOnly Property Contacts() As List(Of Contact)
End Interface

When I try to implement the Contacts property in my Default.aspx.vb class using the code below I got an error message

Code:
Public WriteOnly Property Contacts() As List(Of Contact) _
Implements IDefaultView.Contacts

Set(ByVal value As List(Of Contact))
_contacts = value
End Set
End Property

Error msg
'Contacts' cannot implement 'Contacts' because there is no matching property on interface 'IDefaultView'

This only happens if the property has usage of generic class like System.Collections.Generic.List here. Would somebody show me how to correct it?
Jul 23, 2007 at 7:18 PM
Hi!

I tried to reproduce the error you described with no luck. Here’s what I did:

  • Created a WCSF solution
  • Created a new business module (one with WAP sub-project and other normal)
  • Created a new class “Contact”
  • Added a property to the IDefaultView interface that has a generlic list of Contact
  • Implemented the property in the DefaultView.aspx code behind

Maybe there is something I’m missing there, am I?

Luciano G. Panaro
http://staff.southworks.net/lpanaro