private void Button_Click(object sender, RoutedEventArgs e)
        {
            WindowsRuntimeComponent1.Class1 class1 = new WindowsRuntimeComponent1.Class1();
            string foo = class1.GetFoo();

            textBox1.Text += foo + "!";
        }
        public MainPage()
        {
            this.InitializeComponent();
            WindowsRuntimeComponent1.Class1 c = new WindowsRuntimeComponent1.Class1();
            UInt32 majorVersion;
            UInt32 minorVerison;
            UInt32 result = c.GetVersion(out majorVersion, out minorVerison);

            resultText.Text = "result = " + result + " majorVersion = " + majorVersion + " minorVerison = " + minorVerison;
        }
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            unsafe
            {
                var nativeObject = new WindowsRuntimeComponent1.Class1();

                //int* foo = (int*)23424;
                //int bar = *foo + 42;
                //Console.WriteLine(bar);
            }
        }