当前位置: 代码迷 >> J# >> 吐槽一下小弟我们的CJ#代码
  详细解决方案

吐槽一下小弟我们的CJ#代码

热度:1031   发布时间:2016-05-05 01:04:12.0
吐槽一下我们的CJ#代码

直接开代码!

using System;using Android.App;using Android.Content;using Android.Runtime;using Android.Views;using Android.Widget;using Android.OS;namespace androidTest{	[Activity (Label = "androidTest", MainLauncher = true)]	public class MainActivity : Activity	{			protected override void OnCreate (Bundle bundle)		{			base.OnCreate (bundle);			// Set our view from the "main" layout resource			SetContentView (Resource.Layout.Main);			// Get our button from the layout resource,			// and attach an event to it			Button button = FindViewById<Button> (Resource.Id.myButton);						button.Click += delegate {				System.Console.WriteLine("hello"); //  多么标准的一句C#代码				Java.Lang.JavaSystem.Out.Println("word"); // 多么“标准”的一句JAVA代码!			};		}	}}
来张结果图片

从此以后不再相信爱情了!!!!个人觉得 这完全可以独立成为一门新语言!我先将他称为CJ#吧!!

  相关解决方案