X# equivalent of C# string cTest (One line syntax)
Posted: Tue May 29, 2018 6:34 pm
Wolfgang pointed me to a feature he called One line syntax, if I understood well, this is the equivalent of C#'s:
string cTest ="x"
directly within the code.
That seemed like a good idea to solve warnings XS103 e.g. in error handlers TRY/CATCH giving:
Warning CS0168 The variable 'e' is declared but never used
But I can't find this back in the help. I just defined a variable without declaring, this of course gives XS103 and the help says very promising " The following example resolves the error." except the sample box is empty...
How do I write string cTest ="x" in X#?
Dick
string cTest ="x"
directly within the code.
That seemed like a good idea to solve warnings XS103 e.g. in error handlers TRY/CATCH giving:
Warning CS0168 The variable 'e' is declared but never used
But I can't find this back in the help. I just defined a variable without declaring, this of course gives XS103 and the help says very promising " The following example resolves the error." except the sample box is empty...
How do I write string cTest ="x" in X#?
Dick