I am trying to initialize an inline array of UInt16. For int, I can do the following:
int[] int_array = new[]{0,0,0,0};
Meanwhile, using UInt16 does not work without a cast:
UInt16[] uint16_array= new[]{(UInt16)0,(UInt16)0};
This is pretty annoying to these castes. I was wondering if there is any kind of suffix in C # to eliminate the ambiguity of assignment (e.g. 0.0f for float).
source
share