I've noticed that when coding in C# I have to add an additional qualifier to certain types. It's easiest to illustrate by example:
VB
The same code must be written in C# as this:
Why do I specifically have to reference DeviceTypeInfo_m? Since the compiler can't find DeviceTypeInfo on its own it makes finding my way through the API rather difficult. Right now I'm having to go back to the VB sample plugin and look up type definitions in order to figure out how to reference them in C#.
VB
Code:
Dim DT As New DeviceTypeInfo DT.Device_Type = DeviceTypeInfo.eDeviceAPI.Plug_In
Code:
DeviceTypeInfo_m.DeviceTypeInfo dt = new DeviceTypeInfo_m.DeviceTypeInfo(); dt.Device_Type = (int) DeviceTypeInfo_m.DeviceTypeInfo.eDeviceAPI.Plug_In;
Comment