Documentation

Unity Engine

Download Unity

Unity Engine

Equals

Determines whether this interval equals another object.
Read time 1 minuteLast updated 4 hours ago

Definition

Equals(Object)

Determines whether this interval equals another object.
public override bool Equals(object o)

Parameters

The object to compare with this interval.

Returns

Type

Description

bool
true
if
o
is a DiscreteTimeInterval with the same DiscreteTimeInterval.Start and DiscreteTimeInterval.End. Otherwise,
false
, including when
o
is another type or
null
.

Equals(DiscreteTimeInterval)

Determines whether this interval has the same start and end as another interval.
public bool Equals(DiscreteTimeInterval other)

Parameters

The interval to compare with this interval.

Returns

Type

Description

bool
true
if
other
has the same DiscreteTimeInterval.Start and DiscreteTimeInterval.End. Otherwise,
false
.