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); }
// Use this for initialization void Awake() { if (instance != null && instance != this) { Destroy(this.gameObject); return; } else { instance = this; } DontDestroyOnLoad(this.gameObject); }
public static extern ss mono_return_ss(ss a);
public static extern int mono_return_int_ss(ss a);
void myTest2(ss mySs) { mySs.i = 987; }
void myTest1(ref ss mySs) { mySs.str = "myTest1"; }
public static extern ss mono_return_ss (ss a);
public static extern int mono_return_int_ss (ss a);