Boxing and unboxing in .Net
  • Value type added into object types this is called Boxing technique

    ArrayList arr = new ArrayList();
    arr.Add("A");
    arr.Add("2");

    arr.Add("C");
    arr.Add("D");
    arr.Add("E");


    Retreive value from object type to value type this is called unboxing

    String val1 = arr[0].ToString();
    int val2 = Convert.ToInt32(arr[1]);


Howdy, Stranger!

It looks like you're new here. If you want to get involved, or you want to Ask a new Question, Please Login or Create a new Account by Clicking below

Login with Facebook

Popular Posts of the Week

Top Posters Weekly

Optimum Creative