This site is 100% ad supported. Please add an exception to adblock for this site.

.net fundamentals

Terms

undefined, object
copy deck
5 variable types
Integer
Boolean
String
Date
Object
wiring up
associating an event with an event handler
immutable
cannot be changed (as in variable name and type)
concatenation operator
& same as in asp
variablename+=value
same as
variablename = variablename + value
5 shorthand arithmetic operators
+=
-=
*=
/=
&=
strongly types
variables cannot change type on the fly
casting
process of changing variable from one type to another
explicit casting
2 ways to do it
when developer explicitly indicates that type should be changed
Ctype(variable, typetocastto)
or using convert class
Convert.To...
2 vb.net modes
strict - implicit casting only allowed for widening casts (1 to 1.0, integer to float)
nonstrict - non-widening cast (3.14 to 3, float to integer)
8/4=?
2.0!
Dim x as integer
x = 8/4
is an example of?
an implicit narrowing cast
how do you disable implict narrowing cast?
in the page directive by setting STRICT = TRUE

Deck Info

13