Code Generation using System.CodeDom
30-Sep-0909 Leave a comment
Create a code generation project.
For instance to create a class automatically from a database table. Successfully done this in VB.Net Project "CodeGeneration"
Now use to quickly create classes for RAD – Rapid Application Development
Found adding a blank line difficult. Answer is here
Dim blankLine As New CodeSnippetTypeMember("")
targetClass.Members.Add(blankLine)
targetClass.Members.Add(blankLine)
When creating the Property Set Statements I have found that the Set does not include the (ByRef value as string) part.
However when using the class for the first time, just press return after the Class name and all of these are inserted automatically.
Steve