Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
Patch Available
Description
Same as in THRIFT-1318 with C#.
It makes more sense to write
Self.Property = TMyEnumType.SomeValue;
instead of the C-ish casting style like in
Self.Property = TMyEnumType(-42);
And since it seems not to be possible to assign values other than the IDL-defined enum values, there is no reason left to use the cast.