|
-
Mar 2nd, 2021, 09:35 PM
#34
Re: [RESOLVED] Want to hijack a SqlDataReader class so it can be sourced from multipl
 Originally Posted by szlamany
With MyBase.,Close() compile gets this error - did I screw up earlier and hurt this code
Code:
Error 149 'MyBase' cannot be used with method 'Public MustOverride Sub Close()' because it is declared 'MustOverride'. C:\Users\szlam_000\OneDrive\ACS\AWC\ACSReport\acsReportWriter.vb 3643 9 C:\...\AWC\
Hmmm... something funny going on there. That error message suggests that the DbDataReader.Close method is declared abstract (the C# equivalent of MustInherit) but, as you can see from the code in post #24, that method is actually declared virtual (the C# equivalent of Overridable). I'm not sure whether that declaration has changed at some point. What version of .NET are you targeting?
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
|
Click Here to Expand Forum to Full Width
|