|
-
Nov 4th, 2009, 09:57 AM
#39
Re: New SKUs and a Release Date for Visual Studio 2010
 Originally Posted by JuggaloBrotha
Hmm... so the variant type is back, what a surprise. Wasn't Object supposed to be the type that handles what Variant did back in vb6 and older?
Why is .Net becoming so loosely typed anyways? I mean Linq, now Variant... this is becoming sad.
LINQ isn't loosely typed. And as I said above dynamic is useful for invoking of dynamic language methods. It will simplify Reflection for those languages and COM Interop. dynamic tells the compiler not to resolve the object until runtime. This allows you to use a dynamic variable in a stronly typed way like accessing fields and methods with dot notation without the compiler bombing out when you try to compile your code. So you could tie a dynamic variable to a dynamic object and call a method from it like
Code:
myDynamic.Method();
If myDynamic was declared as Object it would not compile.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|