GYear.Equals Method (GYear)GYear.Equals Method (GYear)GYear::Equals Method (GYear)

Determines whether this instance is equal to another GYearGYearGYear.

Syntax

Public Function Equals( _
    other As GYear _
) As Boolean
public bool Equals(
    GYear other
)
public:
virtual bool Equals(
    GYear other
) sealed
 

Parameters

other

Type: XmlPrime.GYearXmlPrime.GYearXmlPrime::GYear

A GYearGYearGYear to compare with this object.

Return Value

Type: System.BooleanSystem.BooleanSystem::Boolean

trueTruetrue if other equals the value of this instance; otherwise, falseFalsefalse.

Remarks

Two GYearGYearGYear values are considered equal if they have they have equal values for their YearYearYear and TimeZoneTimeZoneTimeZone properties.

Consider using Equals (GYear, GYear, TimeZone)Equals (GYear, GYear, TimeZone)Equals (GYear, GYear, TimeZone) to compare GYearGYearGYear values with differing TimeZoneTimeZoneTimeZone properties.