1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

What does boxing mean?

Discussion in 'C#' started by Clydebrown, Jan 2, 2013.

  1. Clydebrown

    Clydebrown New Member

    Joined:
    Aug 23, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    I want to know about boxing, what does boxing mean?
     
  2. NewsBot

    NewsBot New Member

    Joined:
    Dec 2, 2008
    Messages:
    1,267
    Likes Received:
    1
    Trophy Points:
    0
  3. Charlesdawson

    Charlesdawson New Member

    Joined:
    Apr 11, 2011
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    It is the process of switching a value type to the type object or to any interface type executed by this value type.

    For example,

    int i = 789;
    // following line boxes i.
    object obj = i;
     

Share This Page