Dynamic Binding in C# 4.0: Mads Torgersen C# Language PM Microsoft Corporation
Dynamic Binding in C# 4.0: Mads Torgersen C# Language PM Microsoft Corporation
Dynamic Binding in C# 4.0: Mads Torgersen C# Language PM Microsoft Corporation
Mads Torgersen
C# Language PM
Microsoft Corporation
Dynamic in C#
> dynamic in C#
demo
Designing Dynamic
Dynamic Contexts
Contagious Dynamic Expressions
Dynamic Type
Why is this OK?
> Generality:
dynamic Foo foo = GetDynamicFoo();
> Static binding of Foo’s members
> Dynamic binding of the rest
> Simplicity:
dynamic foo = GetDynamicFoo();
> Generality:
dynamic Foo foo = GetDynamicFoo();
> Static binding of Foo’s members
> Dynamic binding of the rest
> Simplicity:
dynamic foo = GetDynamicFoo();
M(GetFoo(), d);
M(GetFoo(), d);
dynamic means
“use my runtime type for binding”
Twice Daily Against Skepticism
or
int sum = calc.Add(10, 20);
Related Sessions
Future Directions for C# and Visual Basic
November 17, 11:00 - 12:00 – Hall F Luca Bolognese
Dynamic Binding in C# 4
November 17, 12:30 - 13:15 – Hall F Mads Torgersen
Using Dynamic Languages to Build Scriptable Applications
November 17, 12:30 - 13:15 – 403AB Dino Viehland
Code Like the Wind with Microsoft Visual Basic 2010
November 18, 13:00 - 13:45 – Petree Hall D Lucian Wischik
F# for Parallel and Asynchronous Programming
November 19, 11:30 - 12:30 – 515A Luke Hoban
Microsoft Visual C# IDE Tips and Tricks
November 19, 12:45 - 13:30 – Petree Hall D DJ Park
Microsoft Visual Basic IDE Tips and Tricks
November 19, 12:45 - 13:30 – Petree Hall C Dustin Campbell
YOUR
FEEDBACK IS
IMPORTANT TO
US! Please fill out session
evaluation forms online
at
MicrosoftPDC.com
Learn More On Channel 9
> Expand your PDC experience through
Channel 9
channel9.msdn.com/learn
Built by Developers for Developers….
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.
The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market
conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT
MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.