I tired doing a simple A+B addition program using xamarin but every time error system.NullReferenceException occurs for Button click.
Button button = FindViewById<Button>(Resource.Id.button1);
button.Click += delegate {
EditText number1 = FindViewById<EditText>(Resource.Id.editText1);
EditText number2 = FindViewById<EditText>(Resource.Id.editText2);
TextView res = FindViewById<TextView>(Resource.Id.textView1);
int result = Convert.ToInt32(number1.Text) + Convert.ToInt32(number2.Text);
res.Text = result.ToString();
};

SetContentView (Resource.Layout.Main)