G
Gregory Pakosz
Hello
I coded a dotnet class library in c# : let's name it ClassLib
in this library, i have some enum types and methods using them
public enum SomeEnum : uint
{
item1,
item2,
item3,
item4
}
in VB.NET when i try to use my class library i cannot invoke
someMethod.doStuff(ClassLib.SomeEnum.item1)
=> error "Value of type 'Integer' cannot be converted to ClassLib.SomeEnum"
i tried to change the enum definition in the c# code removing the "uint"
underlying type definition then all worked fine one the vb.net side.
however, i want to keep this ': uint' underlying type statement for c# use.
how then can i make the code work under vb.net ???
thx for any help
gregory
I coded a dotnet class library in c# : let's name it ClassLib
in this library, i have some enum types and methods using them
public enum SomeEnum : uint
{
item1,
item2,
item3,
item4
}
in VB.NET when i try to use my class library i cannot invoke
someMethod.doStuff(ClassLib.SomeEnum.item1)
=> error "Value of type 'Integer' cannot be converted to ClassLib.SomeEnum"
i tried to change the enum definition in the c# code removing the "uint"
underlying type definition then all worked fine one the vb.net side.
however, i want to keep this ': uint' underlying type statement for c# use.
how then can i make the code work under vb.net ???
thx for any help
gregory