Reference Semantics with C# and .NET Core
summary
Covers C# 7 and .NET Core support for reference semantics on value types, including the in keyword, ref returns, ref local variables, and ref struct declarations. Explains what these features enable, how they are used in recent .NET Core versions, and how to use them yourself on .NET Core 2.1.
AI-written summary · about
chapters (15)
- 0:00Introduction
- 3:07Value vs reference types
- 6:03Design guidelines for structs
- 10:53Returning references
- 15:53Preventing reference changes
- 21:34New ref syntax features
- 24:40ReadOnly structs and boxing
- 27:41Span<T> for memory
- 33:27Memory<T> benefits
- 39:14Memory pooling
- 45:16Buffering with MemoryPool
- 47:20Simplified Span<T> usage
- 51:02Pipelines and memory
- 54:05Live demo
- 59:43Summary
