G
Guest
We have developed a few .NET components. The application access these
components through well defined interface IOurInterface.
The application list display name of each component in the dialog, so
user can choose which one he wants to use. To display list of available
components we have to associate human redable display name with each
component.
To get that display name of component we added the method GetDisplayName to
IOurInterface.
The implication is that we have to instantiate class that implements
IOurInterface
in all components, so we can call GetDisplayName method of each instance.
We don't know other ways to get display name of component. The static method
would be great but we can't add static method to interface IOurInterface.
Can anyone suggest the better way to list human redable display name of
components without instantiating all components. Thanks.
components through well defined interface IOurInterface.
The application list display name of each component in the dialog, so
user can choose which one he wants to use. To display list of available
components we have to associate human redable display name with each
component.
To get that display name of component we added the method GetDisplayName to
IOurInterface.
The implication is that we have to instantiate class that implements
IOurInterface
in all components, so we can call GetDisplayName method of each instance.
We don't know other ways to get display name of component. The static method
would be great but we can't add static method to interface IOurInterface.
Can anyone suggest the better way to list human redable display name of
components without instantiating all components. Thanks.