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 05:22, 30 November 2010.  This page has been accessed 2,657 times.  Content is available under Attribution-Noncommercial-Share Alike 3.0 UnportedDisclaimers