Rantings of a skinny man..

Thinker: Ive done a great deal of different projects with vb.net and never needed to turn Option Strict off. Thats not to say I havent discovered the need to yet :)

Robby:

Code:
DirectCast(DirectCast(sender, RadioButton).Tag, String)
 
What about creating instances of classes that you create dynamically
using the CodeDom? Wouldnt you have to declare an Object
variable, and then use the Assembly.CreateInstance method to
initialize it? Wouldnt that be considered late-binding, and therefore,
not supported by Option Strict?
 
You are correct. However, I can see no useful application for this. You could walk the methods of the class using reflection and execute them without late binding if you had to.

In practice if you were compiling class libraries on the fly, you would know a type or interface they would adhere to.

Remember, C# can do virtually everything VB.NET can do and it doesnt support late binding, period.
 
Back
Top