Re: Boxing and Unboxing ??



Peter Olcott wrote:
So with Generics Boxing and UnBoxing beomes obsolete?

Not in general.

Generics make boxing an unboxing obsolete in the context
of storing value types in collections.

Arne
.



Relevant Pages

  • Re: Struct inside class
    ... Boxing is creating special packed ... version of value-type in heap. ... you are storing a copy of the value of the myClass.s.il variable. ...
    (microsoft.public.dotnet.framework)
  • Re: Why are slice indices the way they are in python?
    ... given the context, maybe the poster meant that he's storing date *ranges* as [start, stop) (i.e. including start but not including ...
    (comp.lang.python)

Loading