File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -282,6 +282,21 @@ public static string NativeNullableDouble(double? d)
282282| A1 | =NativeNullableDouble(1.2) | Native Nullable VAL: 1.2
283283| A2 | =NativeNullableDouble() | Native Nullable VAL: NULL
284284
285+ ## Optional parameter
286+
287+ ``` csharp
288+ [ExcelFunction ]
289+ public static string NativeOptionalDouble (double d = 1 . 23 )
290+ {
291+ return " Native Optional VAL: " + d .ToString ();
292+ }
293+ ```
294+
295+ | Cell | Formula | Result
296+ | ----- | -------------------------- | ------
297+ | A1 | =NativeOptionalDouble(2.3) | Native Optional VAL: 2.3
298+ | A2 | =NativeOptionalDouble() | Native Optional VAL: 1.23
299+
285300# Not supported functionality in native add-ins
286301
287302Loading images for ribbon controls.
You can’t perform that action at this time.
0 commit comments