William Bartholomew

Musings on software engineering, technology and Aspergers Syndrome.

Generating Option Strict On Using CodeDOM

with one comment

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

Written by wbarthol

August 6, 2009 at 9:35 am

Posted in programming

One Response

Subscribe to comments with RSS.

  1. I was looking for this setting like a week or so. Tnx.

    Manuel

    October 22, 2009 at 11:36 pm


Leave a Reply