EntityObjectExtensionsIsNullOrEqualToT Method |
Compares the two object references.
Returns true if the checked object is null or is equal to expectedObject.
Namespace:
Aloe.SystemFrameworks.Domain
Assembly:
Aloe.SystemFrameworks.Domain (in Aloe.SystemFrameworks.Domain.dll) Version: 20.1.3.5
Syntaxpublic static bool IsNullOrEqualTo<T>(
this T checkedObject,
T expectedObject
)
where T : EntityObject
<ExtensionAttribute>
Public Shared Function IsNullOrEqualTo(Of T As EntityObject) (
checkedObject As T,
expectedObject As T
) As Boolean
public:
[ExtensionAttribute]
generic<typename T>
where T : EntityObject
static bool IsNullOrEqualTo(
T checkedObject,
T expectedObject
)
[<ExtensionAttribute>]
static member IsNullOrEqualTo :
checkedObject : 'T *
expectedObject : 'T -> bool when 'T : EntityObject
Parameters
- checkedObject
- Type: T
The checked object. - expectedObject
- Type: T
The expected value.
Type Parameters
- T
- The type of the objects to check.
Return Value
Type:
BooleanTrue if checkedObject is null or equal to expectedObject.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also