GDay.Equality OperatorGDay.Equality OperatorGDay::Equality Operator

Indicates whether a specified GDayGDayGDay is equal to another specified GDayGDayGDay.

Syntax

Public Shared Operator =( _
    day1 As GDay, _
    day2 As GDay _
) As Boolean
public static bool operator ==(
    GDay day1,
    GDay day2
)
public:
static bool operator ==(
    GDay day1, 
    GDay day2
)
 

Parameters

day1

Type: XmlPrime.GDayXmlPrime.GDayXmlPrime::GDay

The first GDayGDayGDay to compare.

day2

Type: XmlPrime.GDayXmlPrime.GDayXmlPrime::GDay

The second GDayGDayGDay to compare.

Return Value

Type: System.BooleanSystem.BooleanSystem::Boolean

trueTruetrue if the two GDayGDayGDay values are equal, falseFalsefalse otherwise.

Remarks

Two GDayGDayGDay values are considered equal if they have they have equal values for their DayDayDay and TimeZoneTimeZoneTimeZone properties.

Consider using Equals (GDay, GDay, TimeZone)Equals (GDay, GDay, TimeZone)Equals (GDay, GDay, TimeZone) to compare GDayGDayGDay values with differing TimeZoneTimeZoneTimeZone properties.