FreeJobAlert

FreeJobAlert.Com

Government Jobs | Results | Admit Cards

Advertisement

Explain Dynamic binding in C#4.0?

C# 4.0 introduces a new static type called "dynamic" and any operation on the dynamic type object will resolve at runtime. With this version C# supports dynamic binding through the dynamic keyword. Dynamic binding allows you to write method, operator and indexer calls, property and field accesses, and even object invocations without C# static type checking and type checking will resolved at runtime. With dynamic binding, you do not worry about whether object comes from COM, Iron Python, the HTML DOM, reflection or elsewhere; you just apply operations to it and leave it to the runtime to figure out what exactly those operations mean for that particular object. Code example available at Dynamic binding example

Tags: .Net Framework, c sharp features, csharp 4.0 new features, csharp 4.0, .net interview questions and answers, c sharp interview questions, dynamic binding in c sharp