(Notes) Notes (2016)

(back) .NET Boxing/unboxing. (back)

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 common language runtime (CLR) boxes a value type, it wraps the value inside a System.Object instance and stores it on the managed heap. Unboxing extracts the value type from the object. Boxing is implicit; unboxing is explicit. Mode - https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/types/boxing-and-unboxing.

Starting from NET 2.1, .NET CORE support new type - Span(of T) - return reference from Stack instead Heap - MS documentation








Comments ( )
Link to this page: //www.vb-net.com/QuickHelp/Csharp3/Index.htm
< THANKS ME>