Skip to content

Commit 77471ab

Browse files
committed
Added string array parameter example.
1 parent 45ee9c0 commit 77471ab

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/guides-basic/dotnet-native-aot-support.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,23 @@ public static DateTimeKind NativeEnumReturn(string s)
337337
| A4 | =NativeEnumReturn("Unspecified") | Unspecified
338338
| A5 | =NativeEnumReturn("Local") | Local
339339

340+
## String array parameter
341+
342+
```csharp
343+
[ExcelFunction]
344+
public static string NativeStringArray(string[] s)
345+
{
346+
return "Native StringArray VALS: " + string.Concat(s);
347+
}
348+
```
349+
350+
| Cell | Formula | Result
351+
| ----- | --------------------------| ------
352+
| A1 | 01 |
353+
| A2 | 2.30 |
354+
| A3 | World |
355+
| B1 | =NativeStringArray(A1:A3) | Native StringArray VALS: 12.3World
356+
340357
# Not supported functionality in native add-ins
341358

342359
Loading images for ribbon controls.

0 commit comments

Comments
 (0)