In order to access classes from certain namespaces, we prepend #. to the fully qualified name of the class. The # would indicate that the following class name will be referenced as a C# class. Classes in the System and System.IO namespaces are made available. Please note that only static members and functions are available to use. No instances of a class can be created.
Example 1: Referencing the System.Math Class
- Drag on an Integer and open the Expression Editor
- Set the value to
=#.System.Math.Abs(-500) - Click OK
- Debug the function
Result:500
Example 2: Referencing the System.IO Class
- Drag on a Boolean and open the Expression Editor
- Set the value to
=#.System.IO.File.Exists("C:\\temp\\log.txt") - Create the file
C:\Temp\log.txt - Debug the function
Result:true