Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VB enum and C# evaluation
Message
From
06/05/2004 16:03:54
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00901722
Message ID:
00901741
Views:
14
>Hi,
>
>I created an enum structure in vb.net
>Public Enum PDFJobStatus
> Success = 0
> Pending = 1
> Failed = 1
>End Enum
>
>and in c# i compare (convStatus==PDFJobStatus.Pending)
>
>Well it return false even when convStatus has Pending value.

Is convStatus a PDFJobStatus type? OR, is it an integer?

BOb

(Also what Bonnie said. Also, I usually don't specify the value of the Enum, let the compiler do that.)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform