SDU
Personal tools

Variables and Types

From SDU

Jump to: navigation, search
To make corrections or additions to this article, select the edit tab above.
To discuss or ask questions about this article, select the discussion tab above.

Declaring variables

int theInt;
long theLong;
string theString;
object theObject;

Assignment of variables

int theInt, anotherInt;
theInt = 0;
anotherInt = 10;

Casting

string theString;
theString = "5";
int theInt;
theInt = (int)theString;

NULL

object theObject;
theObject = NULL;
This page was last modified 00:58, 27 July 2008.  This page has been accessed 1,149 times.  Content is available under Attribution-Noncommercial-Share Alike 3.0 UnportedDisclaimers