Adam Sitnik 6/26/2017

Value Types vs Reference Types

Read Original

This technical article compares value types (structs) and reference types (classes) in .NET/C#, detailing their memory layout, performance implications for CPU cache and garbage collection, and practical considerations like copying costs and boxing. It serves as foundational knowledge for upcoming posts on ref returns, ValueTask<T>, and Span<T>.

Value Types vs Reference Types

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week