Skip to content
Jay Janarthanan edited this page Nov 18, 2022 · 3 revisions

Apex ←→ C# - Two Way Transpiler.

markdown color font styles

ApexSharp.ApexParser

var ast = ApexSharpParser.GetApexAst(string apexCode) var apexCode = ApexSharpParser.GetApex(ast)

ApexSharp.ApexToCSharp

ApexToCSharp.convertToCSharp(apexparser ast)

CSharpToApex

SyntaxTree tree = CSharpSyntaxTree.ParseText(cSharpFile); var root = (CompilationUnitSyntax)tree.GetRoot(); var ast CSharpToApex.ConvertToApexAst(root)

TApexSharp.CSharpToApex

Var apexCode = ApexSharpParser.GetApex(ast)

This is very early stage Beta Software use it at your own risk :-).

Jay EMail: Jay@JayOnSoftware.com LinkedIn

Clone this wiki locally