My function returns some long value that contains two values ββin the lower and higher 32 bits.
I thought the best ways to handle the return value is to deduce my own type from the long one and provide such as GetLowerValue (), GetHigherValue ().
The problem is that .NET does not allow output from long
If you compile
public class SubmitOrderResult : long
{
}
You are getting:
cannot derive from sealed type 'long'
Why is it designed this way and how to overcome it?
thanks
source
share