G
Guest
Hello,
I'm trying to create a component that will be used from .net clients and COM
clients. I've got an object model that looks something like this:
ISystem
IRuntime
IConfiguration
ICollectionOfConfigurableThings
IConfigurableThing
I've created a C# project (starting with the ClassLibrary selection) and
have declared the interfaces, and classes that implement the interfaces.
However, when I want to test the component in a client (in this case, C#)
both the interfaces and the classes are visible. This doesn't seem correct -
a bit too confusing for the users of the object model. What's the correct
way to do this - any good samples out there?
I'd like the client application to be able to do the follow:
ISystem s = new ISystem();
IConfiguration c = s.Configuration;
IConfigurableThing t = c.CreateConfigurableThing("name", "type");
t.SomeProperty = "x";
c.ICollectionOfConfigurableThings.Add(t);
Thanks,
Ken
I'm trying to create a component that will be used from .net clients and COM
clients. I've got an object model that looks something like this:
ISystem
IRuntime
IConfiguration
ICollectionOfConfigurableThings
IConfigurableThing
I've created a C# project (starting with the ClassLibrary selection) and
have declared the interfaces, and classes that implement the interfaces.
However, when I want to test the component in a client (in this case, C#)
both the interfaces and the classes are visible. This doesn't seem correct -
a bit too confusing for the users of the object model. What's the correct
way to do this - any good samples out there?
I'd like the client application to be able to do the follow:
ISystem s = new ISystem();
IConfiguration c = s.Configuration;
IConfigurableThing t = c.CreateConfigurableThing("name", "type");
t.SomeProperty = "x";
c.ICollectionOfConfigurableThings.Add(t);
Thanks,
Ken