Results 1 to 7 of 7

Thread: Boxing in C#

  1. #1
    Registered User
    Join Date
    Aug 2011
    Location
    Delhi,India
    Posts
    167

    Boxing in C#

    Hi,
    What is boxing in C#?

  2. #2
    Registered User
    Join Date
    Feb 2013
    Posts
    1
    Quote Originally Posted by jeetendraets View Post
    Hi,
    What is boxing in C#?
    C# Type System contains three Types , they are Value Types , Reference Types and Pointer Types. C# allows us to convert a Value Type to a Reference Type, and back again to Value Types . The operation of Converting a Value Type to a Reference Type is called Boxing and the reverse operation is called Unboxing.

    http://csharp.net-informations.com/l...g-unboxing.htm

    the above link give you more details with source code sample.

    throt.

  3. #3
    Senior Member
    Join Date
    Nov 2012
    Posts
    157
    You can refer this link, you will have complete idea about Boxing in C#
    http://msdn.microsoft.com/en-us/library/yz2be5wk.aspx

    Hope this link will provide you whole information.

    Thanks.

  4. #4
    Senior Member
    Join Date
    May 2012
    Posts
    333
    nice thread , i didn't aware of this before but got some hint from google after searching answer for your question ,
    http://bestwebsitedevelopersindia.wo...ro-uno-choice/ - Best web designers India. Get a clear cost estimate and business potential of your web idea. Discuss your online plans in a free consultation session. Get started with fatbit.com

  5. #5
    Registered User
    Join Date
    Feb 2013
    Location
    sydney
    Posts
    223
    Nice thread and good question, thanks to all of you for sharing your views on this topic.

  6. #6
    Senior Member
    Join Date
    Feb 2012
    Posts
    161
    I know about this before also, but now I have forgotten about it and brush up again after reading the post.

  7. #7
    Registered User
    Join Date
    Jan 2013
    Location
    India
    Posts
    54
    Boxing and Unboxing are used to convert value types into reference types and vice versa. Developers often need to make some methods generic and hence create methods that accept objects rather than specific value types.

    for more info please check - http://careerride.com/CSharp-uses-of...-unboxing.aspx

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

  Find Web Hosting      
  Shared Web Hosting UNIX & Linux Web Hosting Windows Web Hosting Adult Web Hosting
  ASP ASP.NET Web Hosting Reseller Web Hosting VPS Web Hosting Managed Web Hosting
  Cloud Web Hosting Dedicated Server E-commerce Web Hosting Cheap Web Hosting


Premium Partners:


Visit forums.thewebhostbiz.com: to discuss the web hosting business, buy and sell websites and domain names, and discuss current web hosting tools and software.