如何将 ulong 转换为 long 并获得与 c++ 中相同的结果。
C++
unsigned long ul = 3633091313;
long l = (long)ul;
l is -661875983
C#
ulong ul = 3633091313;
long l = (long)ul;
l is 3633091313
如何将 ulong 转换为 long 并获得与 c++ 中相同的结果。
C++
unsigned long ul = 3633091313;
long l = (long)ul;
l is -661875983
C#
ulong ul = 3633091313;
long l = (long)ul;
l is 3633091313