Using and Internals of the DLR
summary
The talk explains how the Dynamic Language Runtime (DLR) underpins C#’s dynamic keyword introduced in C# 4. It covers the DLR’s internals from how dynamic expressions are lowered to generated code for dynamic operations, and shows practical uses in frameworks plus how DynamicObject and ExpandoObject are implemented and can be used in user code.
AI-written summary · about
chapters (22)
- 0:00Introduction
- 1:08What is dynamic
- 3:17Purpose of DLR
- 5:28Using dynamic keyword
- 7:14Dynamic XML handling
- 9:04Calling Python from C#
- 11:09SignalR with dynamic
- 12:57How DLR works
- 15:26CallSite internals
- 16:31Expression trees basics
- 21:50Rules and targets
- 24:19Binder roles
- 27:57Binder types
- 30:03Runtime binder
- 32:12CallSite summary
- 34:47Example with dynamic
- 39:58Dynamic behavior
- 41:03Error handling
- 42:06Where to learn more
- 43:13When to use DLR
- 46:39Performance considerations
- 48:05Q&A
