in C Sharp by
Q:
What you mean by boxing and unboxing in C#?

1 Answer

0 votes
by
Boxing – This is the process of converting from value type to reference type. For example,

int myvar = 10;

object myObj = myvar;

UnBoxing – It’s completely opposite to boxing. It’s the process of converting reference type to value type. For example,

int myvar2 = (int)myObj;
Click here to read more about Loan/Mortgage
Click here to read more about Insurance

Related questions

0 votes
asked Jun 16, 2020 in C Sharp by Hodge
0 votes
asked Nov 8, 2020 in Hadoop by rahuljain1
0 votes
asked Mar 26, 2020 in SAP by rajeshsharma
0 votes
asked Dec 9, 2019 in Testing by Robindeniel
0 votes
asked Feb 16, 2020 in C Sharp by rahuljain1
...