|
CommonNotNull Method
|
Returns value if not null; otherwise nonNullValue.
Namespace: GSFAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.218-beta+101eee949414e414795e55a6e73d88938f0177b8
Syntax GSF.Common.NotNull = function(value, nonNullValue);
View SourceParameters
- value Object
- Value to test.
- nonNullValue Object
- Value to return if primary value is null.
Return Value
Objectvalue if not
null; otherwise
nonNullValue.
Remarks
This function is useful when using evaluated code parsers based on older versions of .NET, e.g.,
the RazorEngine or the ExpressionEvaluator.
See Also