Widening conversion is the conversion that the destination type can accommodate all possible values from the source type. This opposite with narrowing conversion.
Ex:
' VB
Dim i As Integer = 1
Dim d As Double = 1.0001
d = i
// C#
int i = 1;
double d = 1.0001;
d = i;
Subscribe to:
Post Comments (Atom)

0 comments:
Post a Comment