|
-
Declaration referenced in a method implementation can not be a final method.
I've been testing my business objects with a little driver program called
PSSDriver. It's a Windows Form project and I've been putting my code in the
Form Load.
The code is as follows:
Option Compare Text
Option Strict On
Imports PersonShowStationMaint ' The business objects DLL
Public Class Form1
Inherits System.Windows.Forms.Form
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Const MarkConn As String = "Integrated Security=SSPI;Persist Security
Info=False;Initial Catalog=Mark;Data Source=RAINSLEY"
Dim Show As New Show(MarkConn)
With Show
.GetById(90709)
.GetShowPeople()
End With
End Sub
End Class
The .GetById invocation works just fine and the Show object contains the
expected data. However, when I attempt to invoke the .GetShowPeople method, I
get the following error:
An unhandled exception of type 'System.TypeLoadException' occurred in
PSSDriver.exe
Additional information: Declaration referenced in a method implementation can
not be a final method. Type: PersonShowStationMaint.ShowPeople. Assembly:
Clear.
The declaration of the .GetById method is:
Public Function GetById(ByVal Id As Int32) As Boolean
and the declaration of the .GetShowPeople method is:
Public Sub GetShowPeople()
What am I doing wrong?
Thanks,
Bob
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks