rayalasagar

Friday, March 29, 2013

Boxing and Unboxing in c#.net

Boxing is the process of converting a variable from value type to reference type.
example:
int i=6;
double d=85.87658;
d=Convert.ToDouble(i);
console.write(d);//it prints d value as 6.

Unboxing is the process of converting a variable from reference type to value type.

example:
int i=6;
double d=85.87658;
i=Convert.ToInt32(d);
console.write(i);//it prints i value as 86.
Posted by rayala sagar at 4:34 AM

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2015 (1)
    • ►  February (1)
  • ►  2014 (12)
    • ►  August (8)
    • ►  June (4)
  • ▼  2013 (26)
    • ►  May (1)
    • ►  April (1)
    • ▼  March (21)
      • Boxing and Unboxing in c#.net
      • Global assembly cache (GAC)
      • Bright career in UK privacy policy
      • Windows 8 Activation key
      • .Net Interview Questions
      • Structure in c#.net
      • Http handlers and Http modules
      • How to Share Internet from Tablet to PC or Laptop
      • Solve All Your Printer Problems with One Click
      • Telugu Spell Check in Microsoft Word 2013
      • Your Phone will never Lost - Extraordinary Anti-Th...
      • Hot Cinema News
      • Gangnam Style Video Song
      • Adobe Photoshop CS 6 Serial Number
      • Visual Studio Ultimate 2012 RC Key
      • Jr NTR's Badshah Movie Teaser
      • Jr NTR's Badshah Movie WallPapers
      • Country Information About Page
      • Threading in C#.Net
      • Out Keyword in C#.Net
      • Privacy Policy of CountryInformation app
    • ►  February (3)
  • ►  2008 (1)
    • ►  August (1)

About Me

rayala sagar
View my complete profile
Simple theme. Powered by Blogger.