J
Justine
Hi All,
I need a small clarification with regard to Boxing.
struct Currency
{ ......... }
Currency Bal = new Currency;
Object Obj = Bal;
i read that when implicit boxing is taking place, ther
will be an hidden class (Reference Type) of type Currency
created internal by .NET Framework (to which direct
access is not easy). And when actual boxing is taking
place the object of the hidden class gets instanciated
and reference is store in "Obj".
My Doubt:- Does this mean that there will be 2 copies of
the data on RAM (One for Value Type ie struct Currency
and other for Hidden Class. if yes then isn't it
overhead?). Kindly help me in understanding this.
Thanz in Advance...
Justine
I need a small clarification with regard to Boxing.
struct Currency
{ ......... }
Currency Bal = new Currency;
Object Obj = Bal;
i read that when implicit boxing is taking place, ther
will be an hidden class (Reference Type) of type Currency
created internal by .NET Framework (to which direct
access is not easy). And when actual boxing is taking
place the object of the hidden class gets instanciated
and reference is store in "Obj".
My Doubt:- Does this mean that there will be 2 copies of
the data on RAM (One for Value Type ie struct Currency
and other for Hidden Class. if yes then isn't it
overhead?). Kindly help me in understanding this.
Thanz in Advance...
Justine