I don't understand this line:
Information.IsNumeric(textBox1 || textBox2.Text)
Probably you are getting an error something like:
Cannot apply operator ' || ' to operands of type TextBox and string
In C# you can use decimal.TryParse
, it returns false if value is invalid:
decimal value1, value2;
if(decimal.TryParse(textBox1.Text, out value1)
&& decimal.TryParse(textBox2.Text, out value2))
{
textBoxAns.Text = (value1 + value2).ToString();
}