O'Reilly logo

C# 5.0 Unleashed by Bart De Smet

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

A First Look at Dynamic Typing

Starting with C# 4.0, late-bound access to members is also available through dynamic typing. In such a case, the compiler has no idea about the existence of the selected members. This kind of behavior is desirable in various scenarios:

Image Objects may be totally typeless because they come from some dynamic language like Ruby or Python.

Image Data representations may not have a schema, like with Extensible Markup Language (XML) documents with no corresponding XML Schema Definition (XSD) schema.

You received some object back ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required