J
james
Hey Guys,
Would anyone mind explaining why a foreach will implicitly do unsafe
casts, and if there is a way to turn this off?
Here is an example:
ulong[] vals = new ulong[] { ulong.MaxValue };
foreach (uint x in vals)
Console.WriteLine(x);
Thanks,
James
Would anyone mind explaining why a foreach will implicitly do unsafe
casts, and if there is a way to turn this off?
Here is an example:
ulong[] vals = new ulong[] { ulong.MaxValue };
foreach (uint x in vals)
Console.WriteLine(x);
Thanks,
James