YearMonthDuration.Equals Method (object)YearMonthDuration.Equals Method (Object)YearMonthDuration::Equals Method (object^)

Determines whether this instance is equal to a specified object.

Syntax

Public Overrides Function Equals( _
    obj As Object _
) As Boolean
public override bool Equals(
    object obj
)
public:
virtual bool Equals(
    object^ obj
) override
 

Parameters

obj

Type: System.ObjectSystem.ObjectSystem::Object^

An object to compare to this instance.

Return Value

Type: System.BooleanSystem.BooleanSystem::Boolean

trueTruetrue if obj is an instance of YearMonthDurationYearMonthDurationYearMonthDuration and equals the value of this instance; otherwise falseFalsefalse.