123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- using NB_IOT_UDP_HP_SCOKET.WWKJUtil;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ConsoleApp1
- {
- class Program
- {
- static void Main(string[] args)
- {
- int asdas = DateTime.Compare(DateTime.Now.AddDays(1), DateTime.Now.AddHours(1));
- int sa = (int)Math.Floor(Convert.ToDecimal("0.1"));
- //int num = 0;
- //byte[] datas = new byte[] {0x00,0x3C };
- ////datas[num] = 0xA5; num++;
- ////datas[num] = 0xA6; num++;
- ////datas[num] = 0xA7; num++;
- ////ProtocolAnalysisTools.Pack();
- //string str = Convert.ToString(datas[0], 16).PadLeft(2, '0') + Convert.ToString(datas[1], 16).PadLeft(2, '0');
- //num = Convert.ToInt32(str, 16);
- //num = HexTwoToIntHight(datas[0], datas[1]);
- StringBuilder sb = new StringBuilder();
- int a = sb.Capacity;
- haha(CmdType.NoCmd, "123", "456", "789");
- }
- public static int HexTwoToIntHight(byte b1, byte b2)// 高位在前
- {
- int num = (b1 << 8) + b2;
- return num;
- }
- public static string haha(CmdType c, params string[] arr)
- {
- Console.WriteLine(c.ToString());
- foreach(var item in arr)
- {
- Console.WriteLine(item);
- }
- return "";
- }
- }
- }
|