C
cody
hi!
i always hear about the dangers (performance loss) that comes with implicit
autoboxing. when are situations where this happens?
i only know this happens when i assign a value type to a variable of type
object.
int i = 1234;
object obj = i; // here the implicit conversion takes place
void Foo(object o){}
Foo( i ); // here too
additionally are there situations of implicit unboxing where programmers
should take care of?
i always hear about the dangers (performance loss) that comes with implicit
autoboxing. when are situations where this happens?
i only know this happens when i assign a value type to a variable of type
object.
int i = 1234;
object obj = i; // here the implicit conversion takes place
void Foo(object o){}
Foo( i ); // here too
additionally are there situations of implicit unboxing where programmers
should take care of?