Re:Using implicit operator overloads to keep your C# API dis...
by npinguy on Friday May 09, 2014 @12:39PM
(#7721785)
Yeah, not sure how this is rising, this approach is much simpler.
I could understand if he created an implicit cast from int TO BookingTypeId. This way, at least, consumers could not care about BookingTypeId if they didn't want to and pass in an int directly. But that has it's own whack of problems...
I could understand if he created an implicit cast from int TO BookingTypeId. This way, at least, consumers could not care about BookingTypeId if they didn't want to and pass in an int directly. But that has it's own whack of problems...