Quiz Yourself: Dynamic Binding
Test your understanding of compile-time versus runtime type checking and dynamic member allocation in C#.
We'll cover the following...
We'll cover the following...
Technical Quiz
1.
Which code snippet correctly demonstrates declaring a dynamic variable and changing its underlying type during program execution?
A.
dynamic value = 25;
value = "Twenty-five";
B.
var value = 25;
value = "Twenty-five";
C.
int value = 25;
value = (dynamic)"Twenty-five";
D.
dynamic value = 25;
value.NonExistentMethod();
1 / 6
...