BuildMaster SDK Reference
Version:
NullIf<T>(T? a, T? b) Method
Returns a null (Nothing in Visual Basic) reference if the two specified parameters are equal (or if either are null (Nothing in Visual Basic)); otherwise, returns the first parameter.
Syntax
public
static T? NullIf<T>(T? a, T? b)
Parameters
- a
- Type: T?
The first parameter.
- b
- Type: T?
The second parameter.
Returns
Null (Nothing in Visual Basic) reference if the two specified parameters are equal (or if either are null (Nothing in Visual Basic)); otherwise, the first parameter.