DateTimeExtensionsIsEqualTo Method |
[This is preliminary documentation and is subject to change.]
Checks if the current DateTime is equal to the provided DateTime.
This method compares Year, Month, Day, Hour, Minute, Second and Millisecond instead of Ticks which the default compare uses.
Namespace:
CSInfrastructure.Extensions
Assembly:
CSInfrastructure (in CSInfrastructure.dll) Version: 1.13.0+Branch.master.Sha.d583fc64569355d188a9c0818d257b6d0d3e1339
Syntax public static bool IsEqualTo(
this DateTime value,
DateTime other
)
Parameters
- value
- Type: SystemDateTime
The value to compare - other
- Type: SystemDateTime
The value to compare against
Return Value
Type:
BooleanTrue if both values are the same
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
DateTime. 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