Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Method overload requires Public declaration
Message
De
06/05/2011 16:05:05
 
 
À
06/05/2011 16:03:43
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01509881
Message ID:
01509882
Vues:
52
If they are being called from outside the class, they must be public.

>In the same class, I created a private method. Then, I overloaded the method so it could also accept a different type for the parameter. So, the first declaration accepts an integer. The overaload declaration accepts a string. When running the application, I got an error telling me that the method was not found. I had to make them Public so to have it work. Why is that?
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform