Unboxing

Unboxing is conversion reference type back to value type.

E.g.:    int i = 20;

string s =i.ToString();     //Box the int

int j = Convert.ToInt32(s);     //UnBox it back to an int.

0 comments :

Post a Comment

> Related Posts with Thumbnails
 

Copyright © 2012. GS dot net - All Rights Reserved - Design by BTDesigner - Proudly powered by Blogger