Difference
between Boxing and Unboxing in C#
-
S.No Boxing Unboxing 1 Meaning:Boxing is the process of converting a value type to the reference type.Meaning:Unboxing is the process of converting a reference type to value type.2 Type of Conversion:Implicit ConversionType of Conversion:Explicit Conversion3 Example:int i = 1;object obj = i; //boxingExample:object obj = 123;i = (int)obj ; // unboxing
it is not sufficent diffrence more difference in tabular form
ReplyDeleteCheck this one
Deletehttps://technicalinterviewbiz.blogspot.com/2019/10/difference-between-constant-and-read.html