示例#1
0
        private void button4_Click(object sender, EventArgs e)
        {
            //             string s = textBox1.Text;
            //             string st = string.Empty;
            //             byte[] array = System.Text.Encoding.Default.GetBytes(s);
            //             for (int i = 0; i < array.Length; i++)
            //             {
            //                 if (array[i] >= 128 && array[i] <= 247)
            //                 {
            //                     st = st + System.Text.Encoding.Default.GetString(array, i, 2);
            //                     st = st + string.Format(" 高字节:{0},低字节:{1}" + Environment.NewLine, array[i], array[i + 1]);
            //                     i++;
            //                 }
            //                 else
            //                 {
            //                     st = st + System.Text.Encoding.Default.GetString(array, i, 1);
            //                     st = st + string.Format(" ASCII:{0}" + Environment.NewLine, array[i]);
            //                 }
            //             }
            //             textBox2.Text = st;
            ss a = new ss();

            //  a.Name = Convert.ToDateTime(new DateTime(2017, 1, 1).ToString("yyyy-MM-dd HH:mm:ss"));
            a.a = 123;
            string json = JsonConvert.SerializeObject(a);
        }
示例#2
0
文件: ss.cs 项目: grajpawel/Grayhunt
 // Use this for initialization
 void Awake()
 {
     if (instance != null && instance != this)
     {
         Destroy(this.gameObject);
         return;
     }
     else
     {
         instance = this;
     }
     DontDestroyOnLoad(this.gameObject);
 }
示例#3
0
 public static extern ss mono_return_ss(ss a);
示例#4
0
 public static extern int mono_return_int_ss(ss a);
示例#5
0
文件: TEST.cs 项目: lulianqi/AutoTest
 void myTest2(ss mySs)
 {
     mySs.i = 987;
 }
示例#6
0
文件: TEST.cs 项目: lulianqi/AutoTest
 void myTest1(ref ss mySs)
 {
     mySs.str = "myTest1";
 }
示例#7
0
	public static extern ss mono_return_ss (ss a);
示例#8
0
	public static extern int mono_return_int_ss (ss a);