A
alexia.bee
Hi,
I created dll class library which I exposed methods on it.
I want to expose enums, properties and variables. The problem is that
I don't have an idea.
This is what I do:
namespace EIServices
{
[Guid("673fcdbf-2bdb-4d05-9560-886bdc81294b")]
[InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
public interface _Network
{
[DispId(1)]
EI_STAT_SERVICES SetDeviceState(string AdapterID, bool
Enable);
}
public class Network
{
public enum EI_STAT_SERVICES
{
/* Infra */
ieFAIL = 0,
ieSUCCESS
}
public EI_STAT_SERVICES SetDeviceState(string AdapterID, bool
Enable)
{
}
}
}
What should I do if I want to expose the enum to the dll user?
Thanks for the help.
I created dll class library which I exposed methods on it.
I want to expose enums, properties and variables. The problem is that
I don't have an idea.
This is what I do:
namespace EIServices
{
[Guid("673fcdbf-2bdb-4d05-9560-886bdc81294b")]
[InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
public interface _Network
{
[DispId(1)]
EI_STAT_SERVICES SetDeviceState(string AdapterID, bool
Enable);
}
public class Network
{
public enum EI_STAT_SERVICES
{
/* Infra */
ieFAIL = 0,
ieSUCCESS
}
public EI_STAT_SERVICES SetDeviceState(string AdapterID, bool
Enable)
{
}
}
}
What should I do if I want to expose the enum to the dll user?
Thanks for the help.