Hi there,
I've started reading Head first c#, It's given me an example to what a statement is.
Messagebox.show("Contact list 1.0", "About");
I'm just wondering is the entire line above a statement ? And if so is any line of code considered a statement ?
Also messagebox is a class right, and .show would be a method with this as it's parameters " ("Contact list 1.0", "About");" ?
Thanks.
What is a statement ?
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Mahesh ChandRank #1 · 393.4K reputationPosted Apr 26, 2012, 1:49 AM EDT
Jose Patricio3 reputationPosted Apr 26, 2012, 1:52 AM EDT
VulpesRank #55 · 29.2K reputationPosted Apr 26, 2012, 5:11 AM EDT
For example, this line is regarded as a directive rather than a statement:
using System.Windows.Forms;