GetPropertyDescriptors generates warning

Posts   
 
    
omar avatar
omar
User
Posts: 569
Joined: 15-Oct-2004
# Posted on: 16-Nov-2004 19:50:29   

Hi FRANS,

I don't know if this warning started after I updated my binaries with ones that support design time binding or it was there before. Anyhow, the warning goes as follows:

Project: JCL.DAL

Class: EntityCollection.vb

Function: Public Overrides Function GetPropertyDescriptors(entityToCheck As IEntity2, typeOfEntity As Type) As PropertyDescriptorCollection

Warning message : D:\Projects\LLBL\JCL\JCL.DAL\DatabaseGeneric\HelperClasses\EntityCollection.vb(104): function 'GetPropertyDescriptors' shadows an overloadable member declared in the base class 'EntityCollectionBase2'. If you want to overload the base method, this method must be declared 'Overloads'.

As I said, this is just a warning...

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 16-Nov-2004 20:07:20   

You have to re-generate the code simple_smile that method was moved into the runtime lib. simple_smile So the shared templates have to be updated (will be updated by the archive), then re-generate the code and it should be ok.

Frans Bouma | Lead developer LLBLGen Pro