This project has moved. For the latest updates, please go here.
CodeDOM in .NET Framework has come with 3 providers:
  1. CSharpCodeProvider
  2. VBCodeProvider
  3. JScriptCodeProvider

There's not yet TypeScriptCodeProvider in .NET Framework from Microsoft. While JSCriptCodeProvider is good enough for generating javascript codes which you don't need to know the implementation details, TypeScript CodeDOM could provide other benefits:
  1. Strongly typed interfaces and function prototypes for validation during design time and compile time.
  2. Re-use some portion of CodeDom codes if multiple target OO languages are needed.

Supported CodeDOM classes

CodeArgumentReferenceExpression
CodeArrayCreateExpression
CodeArrayIndexerExpression
CodeAssignStatement
CodeBaseReferenceExpression
CodeBinaryOperatorExpression
CodeBinaryOperatorType
CodeCommentStatement
CodeConditionStatement
CodeExpression
CodeExpressionStatement
CodeFieldReferenceExpression
CodeIndexerExpression
CodeIterationStatement
CodeMemberField
CodeMemberProperty
CodeMethodInvokeExpression
CodeMethodReferenceExpression
CodeMethodReturnStatement
CodeNamespace
CodeObjectCreateExpression
CodeParameterDeclarationExpression
CodePrimitiveExpression
CodePropertyReferenceExpression
CodeSnippetExpression
CodeStatement
CodeThisReferenceExpression
CodeThrowExceptionStatement
CodeTryCatchFinallyStatement
CodeTypeDeclaration
CodeTypeOfExpression
CodeTypeReference
CodeTypeReferenceExpression
CodeVariableDeclarationStatement
CodeVariableReferenceExpression

Fonlow.TypeScriptCodeDom.TypeScriptCodeProvider supports major TypeScript language features, good enough for generate data models and strongly typed client API codes. Only a small portion of CodeObject derived classes are not supported.

Hints:
In the future, there may be a spin-off for developing TypeScript CodeDOM following the evolution of TypeScript.

Remarks
Further development of TypeScript CodeDOM after v1.6.1 is hosted to Github repository .

Last edited Jul 2, 2016 at 9:15 PM by zijianhuang, version 7