.Net and SharePoint Interview Questions and Solutions

Boxing and Unboxing in C#.Net

Boxing: Boxing is the process of converting value types to reference types

int x=10
Object obj=x;  //Boxing

UnBoxing: Unboxing is the process of extract the values from objects

Object obj=x; //Boxing
int y=(int) obj; //Unboxing


Posted by A Santhosh Reddy at 11:30 PM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

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

About Me

My photo
A Santhosh Reddy
View my complete profile

Blog Archive

  • ▼  2012 (16)
    • ▼  August (15)
      • About Class and Object?
      • Object Oriented Programming(OOPs)
      • Constructors?
      • Diff b/w Method and Constructor?
      • Diff b/w Static,Constant and Readonly
      • Diff b/w Ref & Out parameters in C#.Net
      • Access Modifiers in C#.Net
      • Diff b/w Class and Structure?
      • Boxing and Unboxing in C#.Net
      • Diff b/w String and String Builder in C#.Net
      • partial class in C#.Net
      • Basic Questions
      • Diff b/w Abstract Class and Interface
      • Difference between ArrayLst and HashTable
      • Collections In C#.Net
    • ►  September (1)
SanthoshReddy.Alla. Picture Window theme. Powered by Blogger.