# TimeZoneInfo.TransitionTime.EqualsTimeZoneInfo.TransitionTime.EqualsTimeZoneInfo.TransitionTime.EqualsTimeZoneInfo.TransitionTime.Equals Method

## Definizione

Determina se due TimeZoneInfo.TransitionTime oggetti hanno valori identici.Determines whether two TimeZoneInfo.TransitionTime objects have identical values.

 Equals(Object) Equals(Object) Equals(Object) Equals(Object) Determina se un oggetto ha valori identici rispetto all'oggetto TimeZoneInfo.TransitionTime corrente.Determines whether an object has identical values to the current TimeZoneInfo.TransitionTime object. Equals(TimeZoneInfo+TransitionTime) Equals(TimeZoneInfo+TransitionTime) Equals(TimeZoneInfo+TransitionTime) Equals(TimeZoneInfo+TransitionTime) Determina se l'oggetto TimeZoneInfo.TransitionTime corrente ha valori identici rispetto a un secondo oggetto TimeZoneInfo.TransitionTime.Determines whether the current TimeZoneInfo.TransitionTime object has identical values to a second TimeZoneInfo.TransitionTime object.

## Equals(Object)Equals(Object)Equals(Object)Equals(Object)

Determina se un oggetto ha valori identici rispetto all'oggetto TimeZoneInfo.TransitionTime corrente.Determines whether an object has identical values to the current TimeZoneInfo.TransitionTime object.

``````public:
override bool Equals(System::Object ^ obj);``````
``public override bool Equals (object obj);``
``override this.Equals : obj -> bool``
``Public Overrides Function Equals (obj As Object) As Boolean``

#### Parametri

obj
Object Object Object Object

Oggetto da confrontare con l'oggetto TimeZoneInfo.TransitionTime corrente.An object to compare with the current TimeZoneInfo.TransitionTime object.

#### Restituisce

`true` se i due oggetti sono uguali; in caso contrario, `false`.`true` if the two objects are equal; otherwise, `false`.

### Esempi

L'esempio seguente illustra le chiamate al Equals (metodo).The following example illustrates calls to the Equals method.

``````TimeZoneInfo.TransitionTime tt1 = TimeZoneInfo.TransitionTime.CreateFixedDateRule(new DateTime(1, 1, 1, 02, 00, 00), 11, 03);
TimeZoneInfo.TransitionTime tt2 = TimeZoneInfo.TransitionTime.CreateFixedDateRule(new DateTime(1, 1, 1, 02, 00, 00), 11, 03);
TimeZoneInfo.TransitionTime tt3 = TimeZoneInfo.TransitionTime.CreateFloatingDateRule(new DateTime(1, 1, 1, 02, 00, 00), 10, 05, DayOfWeek.Sunday);
TimeZoneInfo tz = TimeZoneInfo.Local;
Console.WriteLine(tt1.Equals(tz));         // Returns False (overload with argument of type Object)
Console.WriteLine(tt1.Equals(tt1));        // Returns True (an object always equals itself)
Console.WriteLine(tt1.Equals(tt2));        // Returns True (identical property values)
Console.WriteLine(tt1.Equals(tt3));        // Returns False (different property values)
``````
``````Dim tt1 As TimeZoneInfo.TransitionTime = TimeZoneInfo.TransitionTime.CreateFixedDateRule(#02:00:00AM#, 11, 03)
Dim tt2 As TimeZoneInfo.TransitionTime = TimeZoneInfo.TransitionTime.CreateFixedDateRule(#02:00:00AM#, 11, 03)
Dim tt3 As TimeZoneInfo.TransitionTime = TimeZoneInfo.TransitionTime.CreateFloatingDateRule(#02:00:00AM#, 10, 05, DayOfWeek.Sunday)
Dim tz As TimeZoneInfo = TimeZoneInfo.Local
Console.WriteLine(tt1.Equals(tz))          ' Returns False (overload with argument of type Object)
Console.WriteLine(tt1.Equals(tt1))         ' Returns True (an object always equals itself)
Console.WriteLine(tt1.Equals(tt2))         ' Returns True (identical property values)
Console.WriteLine(tt1.Equals(tt3))         ' Returns False (different property values)
``````

### Commenti

Uguaglianza viene definita come segue: Il `obj` il parametro deve essere un TimeZoneInfo.TransitionTime dell'oggetto e deve avere i valori delle proprietà identici all'oggetto corrente TimeZoneInfo.TransitionTime oggetto.Equality is defined as follows: The `obj` parameter must be a TimeZoneInfo.TransitionTime object and must have property values identical to the current TimeZoneInfo.TransitionTime object.

## Equals(TimeZoneInfo+TransitionTime)Equals(TimeZoneInfo+TransitionTime)Equals(TimeZoneInfo+TransitionTime)Equals(TimeZoneInfo+TransitionTime)

Determina se l'oggetto TimeZoneInfo.TransitionTime corrente ha valori identici rispetto a un secondo oggetto TimeZoneInfo.TransitionTime.Determines whether the current TimeZoneInfo.TransitionTime object has identical values to a second TimeZoneInfo.TransitionTime object.

``````public:
virtual bool Equals(TimeZoneInfo::TransitionTime other);``````
``public bool Equals (TimeZoneInfo.TransitionTime other);``
``override this.Equals : TimeZoneInfo.TransitionTime -> bool``
``Public Function Equals (other As TimeZoneInfo.TransitionTime) As Boolean``

#### Parametri

other
TimeZoneInfo.TransitionTime TimeZoneInfo.TransitionTime TimeZoneInfo.TransitionTime TimeZoneInfo.TransitionTime

Oggetto da confrontare con l'istanza corrente.An object to compare to the current instance.

#### Restituisce

`true` se i due oggetti hanno valori delle proprietà identici. In caso contrario, `false`.`true` if the two objects have identical property values; otherwise, `false`.

### Esempi

L'esempio seguente illustra le chiamate al Equals (metodo).The following example illustrates calls to the Equals method.

``````TimeZoneInfo.TransitionTime tt1 = TimeZoneInfo.TransitionTime.CreateFixedDateRule(new DateTime(1, 1, 1, 02, 00, 00), 11, 03);
TimeZoneInfo.TransitionTime tt2 = TimeZoneInfo.TransitionTime.CreateFixedDateRule(new DateTime(1, 1, 1, 02, 00, 00), 11, 03);
TimeZoneInfo.TransitionTime tt3 = TimeZoneInfo.TransitionTime.CreateFloatingDateRule(new DateTime(1, 1, 1, 02, 00, 00), 10, 05, DayOfWeek.Sunday);
Console.WriteLine(tt1.Equals(tt1));        // Returns True (an object always equals itself)
Console.WriteLine(tt1.Equals(tt2));        // Returns True (identical property values)
Console.WriteLine(tt1.Equals(tt3));        // Returns False (different property values)
``````
``````Dim tt1 As TimeZoneInfo.TransitionTime = TimeZoneInfo.TransitionTime.CreateFixedDateRule(#02:00:00AM#, 11, 03)
Dim tt2 As TimeZoneInfo.TransitionTime = TimeZoneInfo.TransitionTime.CreateFixedDateRule(#02:00:00AM#, 11, 03)
Dim tt3 As TimeZoneInfo.TransitionTime = TimeZoneInfo.TransitionTime.CreateFloatingDateRule(#02:00:00AM#, 10, 05, DayOfWeek.Sunday)
Console.WriteLine(tt1.Equals(tt1))         ' Returns True (an object always equals itself)
Console.WriteLine(tt1.Equals(tt2))         ' Returns True (identical property values)
Console.WriteLine(tt1.Equals(tt3))         ' Returns False (different property values)
``````

### Commenti

Per determinare se i due TimeZoneInfo.TransitionTime oggetti sono uguali, questo metodo esegue un confronto di proprietà per proprietà.To determine whether the two TimeZoneInfo.TransitionTime objects are equal, this method performs a property-by-property comparison. Il metodo restituisce `true` solo se corrente TimeZoneInfo.TransitionTime oggetto e il `other` oggetti hanno valori identici per ogni di TimeZoneInfo.TransitionTime sei valori di proprietà dell'oggetto.The method returns `true` only if the current TimeZoneInfo.TransitionTime object and the `other` object have identical values for each of the TimeZoneInfo.TransitionTime object's six property values.