Method Equals
Equals(Object)
Returns true if two instances are considered equal. Equality is checked by comparing the Start and End properties.
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | obj | A value to compare this instance to. If the value is null or not another DateTimeRange the result will be false. |
Returns
| Type | Description |
|---|---|
| System.Boolean | True if |
Overrides
System.ValueType.Equals(System.Object)
Equals(DateTimeRange)
Returns true if two instances are considered equal. Equality is checked by comparing the Start and End properties.
Declaration
public bool Equals(DateTimeRange other)
Parameters
| Type | Name | Description |
|---|---|---|
| DateTimeRange | other | Another DateTimeRange to compare this instance to. |
Returns
| Type | Description |
|---|---|
| System.Boolean | True if |
Implements
System.IEquatable<T>.Equals(T)