Why static long field initialized improperly in XForms.UWP?

Vijay_RamachandranVijay_Ramachandran Member
edited June 2018 in Xamarin.Forms

Initializing a static long field with 0xFFFFFFFF value properly assigned in debug mode, but in release mode value is converted into -1.

static readonly long Test= 0xFFFFFFFFL;

Whereas defining the long field as non-static or as constant works properly in both debug and release mode. What is the reason for this behavior difference in XForms.UWP?

Sign In or Register to comment.