100 likes | 201 Views
What?!? C# Could Do That??. Shay Friedman CodeValue shayf@codevalue.net | @ironshay | http://IronShay.com. Shay Friedman shayf@codevalue.com | @ ironshay http://IronShay.com | http://CodeValue.com. Agenda. The dynamic keyword The DLR and IronLanguages Roslyn. The dynamic Keyword.
E N D
What?!? C# Could Do That?? Shay Friedman CodeValue shayf@codevalue.net | @ironshay | http://IronShay.com
Shay Friedman shayf@codevalue.com | @ironshay http://IronShay.com | http://CodeValue.com
Agenda • The dynamic keyword • The DLR and IronLanguages • Roslyn
The dynamic Keyword • New in .NET 4.0 • Resolution of method calls or field accesses is done during runtime
The DLR and IronLanguages IronRuby IronPhyton C# VB.Net Others… Dynamic Language Runtime Expression Trees Dynamic Dispatch Call Site Caching Object Binder JavaScript Binder Python Binder Ruby Binder COM Binder
LOLCODE Code start Equivalent to: FISH = “Yummy”; HAI CAN HAS STDIO? I HAS A FISH ITZ "Yummy" VISIBLE FISH VISIBLE "HAI WORLD!" IM IN YR LOOP VISIBLE “LOOP!” KTHX KTHXBYE Equivalent to: Console.WriteLine(“HAI WORLD!”); Loop start Loop end Code end
Summary • The dynamic keyword • The DLR and IronLanguages • Roslyn
Resources • http://visualstudiomagazine.com/Articles/2011/02/01/Understanding-the-Dynamic-Keyword-in-C4.aspx • http://ironruby.com/ • http://ironpython.net/ • http://msdn.microsoft.com/en-us/roslyn • http://www.amazedsaint.com (dynamic and roslyn samples)