More Effective C# (Includes Content Update Program): 50 Specific Ways to Improve Your C#, 2nd edition
by Bill Wagner
5. Dynamic Programming
Both static typing and dynamic typing have their advantages. Dynamic typing can provide for quicker development times and easier interoperability with dissimilar systems. Static typing enables the compiler to find classes of errors. Because the compiler can make those checks, runtime checks can be streamlined, which results in better performance. C# is a statically typed language and will remain one. However, for those times when dynamic languages provide more efficient solutions, C# offers dynamic features. Those features enable you to switch between static typing and dynamic typing when the need arises. The wealth of features available for static typing means that most of your C# code will be statically typed. This chapter ...
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.
Read now
Unlock full access