Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Design issues
Message
De
05/08/2010 15:40:12
 
 
À
05/08/2010 11:58:21
Information générale
Forum:
ASP.NET
Catégorie:
Conception classe
Titre:
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01475236
Message ID:
01475423
Vues:
50
An interface would be the simplest way to accomplish what you are looking for. All you need is the interface definition:
Public Interface IParser
    Function ParserGetContent(ByVal tnPrimaryKey As Integer) As String
End Interface
Then in your base class, add
Implements IParser
after the class definition, and change the type of oOriginator to IParser. Your existing classes would inherit the interface from the base class, and you can add the interface to any new classes that also need that method.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform