We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf68c1b commit efb1be8Copy full SHA for efb1be8
CSharpToJavaScript/CSTOJS.cs
@@ -14,6 +14,17 @@ namespace CSharpToJavaScript;
14
/// </summary>
15
public static class CSTOJS
16
{
17
+ /// <summary>
18
+ /// This method translates CSharp string into JavaScript with specified options.
19
+ /// </summary>
20
+ /// <param name="file"><see cref="FileData" />. CS string with options.</param>
21
+ /// <param name="references">Optional. Array of references.</param>
22
+ /// <returns></returns>
23
+ public static FileData Translate(FileData file, MetadataReference[]? references = null)
24
+ {
25
+ FileData[] files = Translate([file], references);
26
+ return files[0];
27
+ }
28
/// <summary>
29
/// This method translates CSharp string into JavaScript with specified options.
30
0 commit comments