DateExtensionsIsNullOrEmpty Method |
Determines whether a nullable DateTime is null or empty.
Namespace:
Xcalibur.Extensions
Assembly:
Xcalibur.Extensions (in Xcalibur.Extensions.dll) Version: 1.0.4.0 (1.0.0.0)
Syntax public static bool IsNullOrEmpty(
this Nullable<DateTime> target
)
<ExtensionAttribute>
Public Shared Function IsNullOrEmpty (
target As Nullable(Of DateTime)
) As Boolean
public:
[ExtensionAttribute]
static bool IsNullOrEmpty(
Nullable<DateTime> target
)
[<ExtensionAttribute>]
static member IsNullOrEmpty :
target : Nullable<DateTime> -> bool
Parameters
- target
- Type: SystemNullableDateTime
The target.
Return Value
Type:
Booleantrue if [is null or empty] [the specified target]; otherwise,
false.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
NullableDateTime. 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