Senin, 06 September 2010

var vs dynamic keyword in C# 4.0

To put it as simple as possible, there is a simple difference between the C# ‘var’ and ‘dynamic’ keyword. When using the ‘var’ keyword, the type is decided by the compiler at compile time, whereas when using the ‘dynamic’ keyword, the type is decided by the runtime. If you have been doing C# programming lately, you are already aware of the ‘var’ keyword, a strongly implicitly typed local variable

Tidak ada komentar:

Posting Komentar