vb.net strong-typed collection


i wish emanate collection vb.net, nonetheless i wholly wish accept objects certain type. example, i wish emanate category called "foocollection" acts collection each way, nonetheless wholly accepts objects form "foo".



i guess i controlling generics, controlling following syntax:



    open category foocollection(of form foo)
inherits collectionbase

...

finish class


but i an blunder i accumulate i "must exercise default accessor", clearly there's something missing. i don't wish mention form accepts i instantiate - i wish foocollection itself specific wholly accepts foo objects. i've seen finished c# strong-typed list, maybe i'm looking vb.net syntax.



thanks your help!



edit: interjection answer. it, nonetheless i wanted have classtype named certain way, i indeed achieved accurately i looking following code:



public category foocollection
inherits list(of foo)

end class


Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?