diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-04-24 19:05:53 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-04-24 19:05:53 +0300 |
| commit | 97e45f70267d961168b77b149022b94022e0e199 (patch) | |
| tree | 89bf6c1c893ab099ef99690d155a0855ba8a9d92 /Software/Visual_Studio/Tango.CodeGeneration/Helper.cs | |
| parent | 8046598cb1439b66a8d6e556a61b715fc859a6b0 (diff) | |
| download | Tango-97e45f70267d961168b77b149022b94022e0e199.tar.gz Tango-97e45f70267d961168b77b149022b94022e0e199.zip | |
Working on reporting...
Diffstat (limited to 'Software/Visual_Studio/Tango.CodeGeneration/Helper.cs')
| -rw-r--r-- | Software/Visual_Studio/Tango.CodeGeneration/Helper.cs | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/Software/Visual_Studio/Tango.CodeGeneration/Helper.cs b/Software/Visual_Studio/Tango.CodeGeneration/Helper.cs index dff85a011..dfbc893ee 100644 --- a/Software/Visual_Studio/Tango.CodeGeneration/Helper.cs +++ b/Software/Visual_Studio/Tango.CodeGeneration/Helper.cs @@ -13,7 +13,7 @@ namespace Tango.CodeGeneration /// <summary> /// Contains several code generation helper methods. /// </summary> - internal static class Helper + public static class Helper { /// <summary> /// Gets a code template by the code object type. @@ -56,6 +56,17 @@ namespace Tango.CodeGeneration } /// <summary> + /// Parses the specified text. + /// </summary> + /// <param name="text">The text.</param> + /// <param name="model">The model.</param> + /// <returns></returns> + public static String Parse(String text,object model) + { + return Engine.Razor.RunCompile(text, Guid.NewGuid().ToString(), model.GetType(), model); + } + + /// <summary> /// Indents the c sharp code. /// </summary> /// <param name="code">The code.</param> |
