In one of my project (Assembly ProjectA) i have created a class clsP1 where
in i have defined an overridable function OF1 which
returns a string. I'm inheriting this class to clsNC1 which is in a
different project (ASSEMBLY ProjectB) and using this newly
inherited class (clsNC1) i'm creating the final class clsFC in a new project
(Assembly ProjectC) in which i have written the code for
the overridable function.
the sample code is as follows
In projectA (output type is Class Library)
Public Class clsP1
Public Overridable Function OF1() As String
in projectB (output type is Class Library)
Public Class clsNC1
in ProjectC (output type is Windows Application)
Public Class clsFC
Public Overrides Function OF1() As String
Project B has reference of Project A
Project C has a reference of Project A,B
When i call the function OF1 of clsFC at times it returns "Hello" and at
times it does not return any value. On debugging it was
learned that it is refering to function OF1 in class clsP1.
I have used reflection to create the instance of the class clsFC. ie The
instance is being created by the CreateInstance method of the
How do i solve this problem.
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