Click or drag to resize

CommonNotNull Method

Returns value if not null; otherwise nonNullValue.

Namespace: GSF
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.256-beta+0e7e94d39a9b10efe7e26e3b8d5130afc0dd4d74
Syntax
public static Object NotNull(
	Object value,
	Object nonNullValue
)
View Source

Parameters

value  Object
Value to test.
nonNullValue  Object
Value to return if primary value is null.

Return Value

Object
value 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