Thursday, August 28, 2008

Code OnTime Generator Update

The latest release of code generator has resolved the issue of "Access Denied" that has been experienced by some users trying to install the code generation library or to register a premium projects subscription.

New typeConstructor element allows to generate a static or shared constructor for a type. For example, you can declare the following type member in a class:

      <fieldReferenceExpression name="typeMap"/>
      <objectCreateExpression type="SortedDictionary">
          <typeReference type="System.String"/>
          <typeReference type="Type"/>

This will result in the following code being generated.


static Controller()
    _typeMap = new SortedDictionary<string, Type>();


Shared Sub New()
    m_TypeMap = New SortedDictionary(Of String, Type)()
End Sub

There were also minor code generator changes that allow to skip target definition in delegateCreateExpression and eventReferenceExpression elements. The missing target is automatically defaulted to thisReferenceExpression.

Project descriptor CodeOnTime.Project.xml file now supports two additional elements in the information section. You can supply a link to a live demo application and a link to a detailed project description. Here is a snippet from the project descriptor of Data Aquarium Framework code generator project.

    <title>Data Aquarium Framework</title>

No comments:

You can find more about Code OnTime Generator, Data Aquarium Framework, and other great products here.

© 2010 Code OnTime LLC. Intelligent code generation software for ASP.NET. Visit us at