I have set Option Strict On
I also have Enum AssemblyLineSta tus As Integer
My question is how come there is no compilation error when I compile
following code?
If CInt(ddlStatus. SelectedItem.Va lue) = AssemblyLineSta tus.Client Then
' do whatever
End If
Shouldn't this cause a compilation error? I know in C#, you have to
explicitly either convert enumation to int or int to enumuation.
Just curious.
Thanks
I also have Enum AssemblyLineSta tus As Integer
My question is how come there is no compilation error when I compile
following code?
If CInt(ddlStatus. SelectedItem.Va lue) = AssemblyLineSta tus.Client Then
' do whatever
End If
Shouldn't this cause a compilation error? I know in C#, you have to
explicitly either convert enumation to int or int to enumuation.
Just curious.
Thanks
Comment