Explain the difference between object type and dynamic type variables in C#?
S.no | Dynamic type variables | Object type variables |
---|---|---|
1. | Introduced in C# 4.0 | Introduced in C# 1.0 |
2. | Handle-type checking at runtime | Handle type checking at compile time |
3. | Casting not required | Cast object variables to original types |
BY Best Interview Question ON 13 Feb 2019