Skip to content

Commit 58d4991

Browse files
committed
"CustomCSTypesToJS" and "CustomCSNamesToJS" changed from list to array.
1 parent 40278c5 commit 58d4991

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

CSharpToJavaScript/CSTOJSOptions.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,21 +89,21 @@ public record class CSTOJSOptions
8989
public bool UseStrictEquality { get; set; } = false;
9090

9191
/// <summary>
92-
/// List of custom names to convert.
92+
/// Array of custom names to convert.
9393
/// </summary>
94-
/// <remarks>Example: <c>new List&lt;Tuple&lt;string, string&gt;&gt;(){new Tuple&lt;string, string&gt;("Console", "console")}</c>. Will convert "Console" to "console".</remarks>
94+
/// <remarks>Example: <c>[new Tuple&lt;string, string&gt;("Console", "console")]</c>. Will convert "Console" to "console".</remarks>
9595
/// <value>
96-
/// Default: <c>new()</c>
96+
/// Default: <c>[]</c>
9797
/// </value>
98-
public List<Tuple<string, string>> CustomCSNamesToJS { get; set; } = new();
98+
public Tuple<string, string>[] CustomCSNamesToJS { get; set; } = [];
9999
/// <summary>
100-
/// List of types to convert.
100+
/// Array of types to convert.
101101
/// </summary>
102102
/// <remarks>Example: Similar to <see cref="CSTOJSOptions.CustomCSNamesToJS" />, but convers the type. You need to use <see cref="ToAttribute" />.</remarks>
103103
/// <value>
104104
/// Default: <c>new()</c>
105105
/// </value>
106-
public List<Type> CustomCSTypesToJS { get; set; } = new();
106+
public Type[] CustomCSTypesToJS { get; set; } = [];
107107

108108
/// <summary>
109109
/// Add a <see cref="StringBuilder" /> to the front of a javascript file.

0 commit comments

Comments
 (0)