我的代码中有byte [] srno
byte[] srno = new byte[6];
srno[0] = 0xff;
srno[1] = 0x0f;
srno[2] = 0x24;
srno[3] = 0x12;
srno[4] = 0x16;
srno[5] = 0x0a;
Run Code Online (Sandbox Code Playgroud)
现在我希望这个值在uint中
uint a = 0xff0f2412160a;
Run Code Online (Sandbox Code Playgroud)
如何转换呢?
c# - 如何在c#中的ipaddress数组中按升序排列所有ipaddress 我有ipaddress类数组
ipaddress[] device = new ipaddress[10];
Run Code Online (Sandbox Code Playgroud)
它有不同的 ip 值,我想按升序排列它们
以这种方式排序数组,排序数组的成员以升序开始,但o值最后在c#中出现
ulong[] arr = new ulong[30];
arr[0]=13325647855656;
arr[1]=65897426666332;
arr[2]=00685956265661;
arr[4]=0;
Run Code Online (Sandbox Code Playgroud)
然后输出必须
arr[0]=00685956265661;
arr[1]=13325647855656;
arr[2]=65897426666332;
arr[4]=0;
Run Code Online (Sandbox Code Playgroud)