private void button4_Click(object sender, RoutedEventArgs e) { typeTest testTemp = new typeTest(); testTemp.byteTest = new byte[64]; testTemp.uintTest = new uint[4]; testTemp.strTest = "asd"; testTemp.intTest = 3; testTemp.byteTest[0] = (byte)'a'; testTemp.uintTest[0] = 12; OnTest4(ref testTemp); System.Console.WriteLine(testTemp.byteTest); System.Console.WriteLine(testTemp.intTest); System.Console.WriteLine(testTemp.strTest); System.Console.WriteLine(testTemp.uintTest); }
extern public static void OnTest4(ref typeTest testTemp);