Equals
Contents
[
Hide
]
Duration.Equals method (1 of 2)
Returns a value indicating whether this instance is equal to a specified object.
public bool Equals(Duration other)
Parameter | Type | Description |
---|---|---|
other | Duration | The object to compare with this instance. |
Return Value
Returns True if other Duration instance has the same TimeSpan and TimeUnit values as this instance; otherwise, false.
See Also
- struct Duration
- namespace Aspose.Tasks
- assembly Aspose.Tasks
Duration.Equals method (2 of 2)
Returns a value indicating whether this instance is equal to a specified object.
public override bool Equals(object obj)
Parameter | Type | Description |
---|---|---|
obj | Object | The object to compare with this instance. |
Return Value
True if the specified object is a Duration that has the same TimeSpan and TimeUnit values as this instance; otherwise, false.
See Also
- struct Duration
- namespace Aspose.Tasks
- assembly Aspose.Tasks