G
Guest
Hi,
I am facing some implementation issues in C#, I have a UI class which is implementing an Interface and i also have factory class in that interface which will instantiate someother classes
basically I want to hide all the implementation details that is the reason i am having a interface... UI is in one assembly interface is in another assembly(factory class is implementing that interface is in the same assembly
When i say ITest.GetApplication() in UI, i know that it will create a compile time error....(An object reference is required for the nonstatic field, method, or property 'ClassLibrary2.ITest.GetApplication(string)
SO I need to instaintiate the like this Itest iTest = new factoryclass(), i dont want to do this bcoz if i do like this i dont require the interface
My idea is Implement the interface in UI and make that factory class has internal so that the interface hides the implementation...
can you please tell me how can i acheive this...
I am facing some implementation issues in C#, I have a UI class which is implementing an Interface and i also have factory class in that interface which will instantiate someother classes
basically I want to hide all the implementation details that is the reason i am having a interface... UI is in one assembly interface is in another assembly(factory class is implementing that interface is in the same assembly
When i say ITest.GetApplication() in UI, i know that it will create a compile time error....(An object reference is required for the nonstatic field, method, or property 'ClassLibrary2.ITest.GetApplication(string)
SO I need to instaintiate the like this Itest iTest = new factoryclass(), i dont want to do this bcoz if i do like this i dont require the interface
My idea is Implement the interface in UI and make that factory class has internal so that the interface hides the implementation...
can you please tell me how can i acheive this...