In my current project I have been provided with a solution that contains 3 simple classes and 1 component class. There is some code in component class that i need to access in one of my simple class. I am trying to create an instance of component class but there is error that Component class does not exist. Please guide either i am going in wrong direction? If so then how can i solve my problem. How can i access code given in component class. I am working in Visual Studio 2010 and .NET 4.0 with C#.net
Thanks
Khizar
Giving the lack of specifics, I’m gonna make a wild guess:
The signature of Component is:
by default, the class is internal, which means it’s only available in the assembly it resides.
Change it to:
And fix the namespaces (CTRL + “;”)