Dive into the inner workings of C# code in this 45-minute conference talk from NDC Conferences. Explore the concept of lowering in C# and gain insights into how the Roslyn compiler transforms your code. Uncover the hidden mechanisms behind familiar constructs like foreach loops, lambda expressions, and yield return statements. Learn to identify common performance pitfalls in .NET and develop a deeper understanding of your code's actual behavior. Examine topics such as linked queries, variables, and closures, while utilizing tools like SharpLab to visualize the lowering process. Enhance your C# programming skills by understanding the compiler's perspective and optimizing your code for better performance.
Overview
Syllabus
Intro
What is lowering
Linked queries
Variables
Performance
Understanding how things work
For each loop
lambdas
closing over
yield
helper
numerator
movenext
SharpLab
Taught by
NDC Conferences