← BYTES
C#·Starter·Ref: 22.1.11

What is boxing in C#?

Have a question about this video? Mention reference 22.1.11 when you contact us.

a.Compressing an object for storage
b.Encrypting a string
c.Sealing a class from inheritance
d.Converting a value type to an object reference by wrapping it on the heap
Boxing copies a value type's data into a newly allocated object on the heap so it can be treated as a reference type (e.g. passed where object is expected).

Find this on YouTube & Instagram

Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:

#BYTES#BYTES22111#C