Back to the main page
Can't find the answer? Ask
Submit Articles
Publish your articles and reach thousands of readers worldwide.
Publish
■ Welcome Guest, LogIn
■ Connexion avec 
Category : Computers & Internet » Programming » C# | Posted by : viper | Posted on : 11/7/2008 | Updated on : 11/7/2008
Keywords : var, dynamic, keyword, between, use, difference, same
The "Dynamic" keyword in C# 4.0?
What is the difference between the use of "dynamic" and "var" in C# 4.0?
it's the same?

Answers
VAR : Statically know (the compiler works out the type for you)

DYNAMIC : The compiler don't knows what it is at compile time. Instead a variety of mechanisms occurs at runtime to match the name of the method, property or field along with other know aspects like other parameters of the method or an actual method, property, field ...
You have an answer to this question?
Answer this question as a guest or ( Login / Create an account )
Full name : e-mail :  * will not be displayed
Retype the picture text
Send your Answer

Other languages : Wisdia in English English, Wisdia en Français Français, Wisdia en Español Español, Wisdia in Deutsch Deutsche, Wisdia in Italiano Italiano. Terms of use | Privacy Policy | Help © Wisdia 2008-2010, All rights reserved.