vb.net - Type '' is not defined on a list -


i error type 'address' not defined on <lists> , on get/set. have looked around cant find why happening. , happens on 1 page other pages used get\set there no errors. suggestion. don't mind c# help.

my code sample:

inherits resource private const path string = "listings"  public sub new()     buildings = new list(of building)()   'error @ building      features = new list(of feature)()     'error @ feature     images = new list(of listingimage)()  'error @ listingimage end sub  public property address() address     'error @ address             return m_address     end     set (value address)                'error @ address         m_address = value     end set end property private m_address address             'error @ ddress 

and

public property buildings() list(of building) 'error @ building                     return m_buildings         end         set (value list(of building) 'error @ building             m_buildings = value         end set     end property     private m_buildings list(of building)          

you cannot define property type of itself:

public property address() address     'error @ address 

the trailing parens here define indexed property, not intended.

it should be:

public property address string 

if there is address type somewhere, escape it, or use different name:

public property [address] address   

you cant use same variable on , on mean differnt things. building have:

 buildings = new list(of building)()   ' ,  public property buildings() list(of building) 

buildings can either list or property, not both. , 1 not list array. meant:

private m_buildings list(of building)    ' list (not array) of type building public property buildings list(of building)              return m_buildings     end     set (value list(of building)         m_buildings = value     end set end property 

there must class somewhere called building might compiler complaining about


Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -