Megha Singhal

Megha Singhal

  • NA
  • 8
  • 3.3k

Unboxing doubt

Jan 24 2012 4:15 AM
Please suggest..

which among the following are unboxing example:

enum E={"Hello World"};

void sample(System.Enum et)
{
 E e = (E) et;
}


OR

class C = {public int Value{get;set;}}

void sample1(C ct)
{
   int i = ct.Value;
}


Answers (2)