Skip to Main Content
C# 6.0 and the .NET 4.6 Framework, Seventh Edition
book

C# 6.0 and the .NET 4.6 Framework, Seventh Edition

by Andrew Troelsen, Philip Japikse
December 2015
Intermediate to advanced content levelIntermediate to advanced
1704 pages
43h 12m
English
Apress
Content preview from C# 6.0 and the .NET 4.6 Framework, Seventh Edition

CHAPTER 16

image

Dynamic Types and the Dynamic Language Runtime

NET 4.0 introduced a new keyword to the C# language, specifically, dynamic. This keyword allows you to incorporate scripting-like behaviors into the strongly typed world of type safety, semicolons, and curly brackets. Using this loose typing, you can greatly simplify some complex coding tasks and also gain the ability to interoperate with a number of dynamic languages (such as IronRuby or IronPython), which are .NET savvy.

In this chapter, you will be introduced to the C# dynamic keyword and understand how loosely typed calls are mapped to the correct in-memory object using the Dynamic ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

C# 8 and .NET Core 3.1 Recipes (2nd Edition) - Second Edition

C# 8 and .NET Core 3.1 Recipes (2nd Edition) - Second Edition

Dimitiris Loukas
C# 6.0 in a Nutshell, 6th Edition

C# 6.0 in a Nutshell, 6th Edition

Joseph Albahari, Ben Albahari

Publisher Resources

ISBN: 9781484213322Purchase book