Click or drag to resize

FailureEquals Method

A Failure can only be equal to another Failure with an equal Code and Message.

Namespace: DegreeDays.Api
Assembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax
public override bool Equals(
	Object obj
)

Parameters

obj  Object
The object to compare with this instance.

Return Value

Boolean
true if obj is equal to this instance; false otherwise.
Remarks
Note that you might sometimes want to compare just the codes for equality, like failure1.Code.Equals(failure2.Code).
See Also