What is boxing and unboxing in dot net 2024?
I'll answer
Earn 20 gold coins for an accepted answer.20
Earn 20 gold coins for an accepted answer.
40more
40more
Studied at the University of Sydney, Lives in Sydney, Australia.
Boxing is the process of converting a value type to the type object or to any interface type implemented by this value type. When the CLR boxes a value type, it wraps the value inside a System.Object and stores it on the managed heap. Unboxing extracts the value type from the object.
2023-05-07 06:13:04
评论(499)
Helpful(122)
Helpful
Helpful(2)

Lucas Wilson
QuesHub.com delivers expert answers and knowledge to you.
Boxing is the process of converting a value type to the type object or to any interface type implemented by this value type. When the CLR boxes a value type, it wraps the value inside a System.Object and stores it on the managed heap. Unboxing extracts the value type from the object.