Term cloud

Widening conversion

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;

0 comments:

Post a Comment

 

Dot net terms Copyright © 2010 | Designed by Ipietoon for Free Blogger Template