In .NET 4.0 you can do dynamic cast. So please see the specs for dynamic keyword.
Also please do notice that C# is a static/strongly-typed language and by adding DLR (Dynamic Language Runtime) it hasn't changed into a dynamic language.
To see why is C# statically typed please visit the link "Why is C# statically typed?"
Also please do notice that C# is a static/strongly-typed language and by adding DLR (Dynamic Language Runtime) it hasn't changed into a dynamic language.
To see why is C# statically typed please visit the link "Why is C# statically typed?"
Comment