DomainObjectExtensionsReferencesNullOrEqualsNull Method |
Returns true if the specified object referenceses null or equals null.
This is usefull for checking for any kind of special values, that do not reference null, but are considered equal to null (like ghost objects, special null value objects, etc.).
Namespace:
Aloe.SystemFrameworks.Domain
Assembly:
Aloe.SystemFrameworks.Domain (in Aloe.SystemFrameworks.Domain.dll) Version: 20.1.3.5
Syntaxpublic static bool ReferencesNullOrEqualsNull(
this Object obj
)
<ExtensionAttribute>
Public Shared Function ReferencesNullOrEqualsNull (
obj As Object
) As Boolean
public:
[ExtensionAttribute]
static bool ReferencesNullOrEqualsNull(
Object^ obj
)
[<ExtensionAttribute>]
static member ReferencesNullOrEqualsNull :
obj : Object -> bool
Parameters
- obj
- Type: SystemObject
The object to test.
Return Value
Type:
Booleantrue if the object references null or is equal to null.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Object. 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