aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2018-04-12 22:28:16 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2018-04-12 22:28:16 -0300
commited2c63df4dcfc1b8ae61e306c32adaddaa080eb0 (patch)
treebed483139e7bd86a07803c2eea2f2e462cb03863
parentautomatedtest-mono: Remove not generated by mono bindings eo files from tests (diff)
downloadefl-ed2c63df4dcfc1b8ae61e306c32adaddaa080eb0.tar.gz
automatedtest-mono: Add default initialization through default keyword in C#
-rw-r--r--src/scripts/pyolian/testgenerator_suite.cs.template4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scripts/pyolian/testgenerator_suite.cs.template b/src/scripts/pyolian/testgenerator_suite.cs.template
index 9e24142b2f..a88a045409 100644
--- a/src/scripts/pyolian/testgenerator_suite.cs.template
+++ b/src/scripts/pyolian/testgenerator_suite.cs.template
@@ -1,6 +1,6 @@
-<!--(macro def_obj)-->${'.'.join(param.type.namespaces).lower()}$.${param.type.short_name}$ arg_${param.name}$;<!--(end)-->
+<!--(macro def_obj)-->${'.'.join(param.type.namespaces).lower()}$.${param.type.short_name}$ arg_${param.name}$ = null;<!--(end)-->
<!--(macro def_param)-->
- <!--(if param.type.type == param.type.type.CLASS)-->${def_obj(param=param)}$<!--(else)-->${type_convert(param.type)}$ arg_${param.name}$;<!--(end)-->
+ <!--(if param.type.type == param.type.type.CLASS)-->${def_obj(param=param)}$<!--(else)-->${type_convert(param.type)}$ arg_${param.name}$ = default(${type_convert(param.type)}$);<!--(end)-->
<!--(end)-->
<!--(macro def_params)-->
<!--(for p in parameters)-->