What?!? C# Could Do That?? Shay Friedman CodeValue |
Shay Friedman |
Shay Friedman | Agenda The dynamic keyword The DLR and IronLanguages Roslyn
Shay Friedman | The dynamic Keyword New in.NET 4.0 Resolution of method calls or field accesses is done during runtime
Shay Friedman | The DLR and IronLanguages Dynamic Language Runtime Expression Trees Dynamic Dispatch Call Site Caching JavaScript Binder Object Binder Python Binder Ruby Binder COM Binder IronRubyIronPhytonC#VB.NetOthers…
Shay Friedman | HAI CAN HAS STDIO? I HAS A FISH ITZ "Yummy" VISIBLE FISH VISIBLE "HAI WORLD!" IM IN YR LOOP VISIBLE “LOOP!” KTHX KTHXBYE Code start Equivalent to: FISH = “Yummy”; Equivalent to: FISH = “Yummy”; Equivalent to: Console.WriteLine(“HAI WORLD!”); Equivalent to: Console.WriteLine(“HAI WORLD!”); Loop start Loop end Code end
Shay Friedman | Roslyn Services WorkspaceScriptingCompilers
Shay Friedman | Summary The dynamic keyword The DLR and IronLanguages Roslyn
Shay Friedman | Resources standing-the-Dynamic-Keyword-in-C4.aspx standing-the-Dynamic-Keyword-in-C4.aspx (dynamic and roslyn samples)
Shay Friedman | Thank You!