Generating Option Strict On Using CodeDOM
I was writing a VB.NET code generator this morning using System.CodeDOM and the default code that is generated includes “Option Strict Off” while I wanted “Option Strict On”. After some investigation I discovered that you can set this using:
outCodeCompileUnit.UserData("AllowLateBound") = False
I was looking for this setting like a week or so. Tnx.
Manuel
October 22, 2009 at 11:36 pm