Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Design issues
Message
From
05/08/2010 15:40:12
 
 
To
05/08/2010 11:58:21
General information
Forum:
ASP.NET
Category:
Class design
Title:
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01475236
Message ID:
01475423
Views:
49
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform