# DiagnosticEvent Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.diagnostics.diagnosticevent/)

## Deconstruct(string, object?, DateTimeOffset) {#deconstruct-out-string-out-object-nullable-out-system-datetimeoffset-63a239ba}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.diagnostics.diagnosticevent/methods/deconstruct-out-string-out-object-nullable-out-system-datetimeoffset-63a239ba/)

```csharp
public void Deconstruct(out string Name, out object? Payload, out DateTimeOffset Timestamp)
```

### Parameters

- `Name` (`string`)
- `Payload` (`object?`)
- `Timestamp` (`DateTimeOffset`)

## Equals(DiagnosticEvent) {#equals-orleans-testinghost-diagnostics-diagnosticevent-c0efe496}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.diagnostics.diagnosticevent/methods/equals-orleans-testinghost-diagnostics-diagnosticevent-c0efe496/)

```csharp
public bool Equals(DiagnosticEvent other)
```

Indicates whether the current object is equal to another object of the same type.

### Parameters

- `other` (`DiagnosticEvent`): An object to compare with this object.

### Returns

`true` if the current object is equal to the `other` parameter; otherwise, `false`.

## Equals(object) {#equals-object-7877ad41}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.diagnostics.diagnosticevent/methods/equals-object-7877ad41/)

```csharp
public override bool Equals(object obj)
```

Indicates whether this instance and a specified object are equal.

### Parameters

- `obj` (`object`): The object to compare with the current instance.

### Returns

`true` if `obj` and this instance are the same type and represent the same value; otherwise, `false`.

## GetHashCode {#gethashcode-409d02f4}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.diagnostics.diagnosticevent/methods/gethashcode-409d02f4/)

```csharp
public override int GetHashCode()
```

Returns the hash code for this instance.

### Returns

A 32-bit signed integer that is the hash code for this instance.

## ToString {#tostring-3cbb20ed}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.diagnostics.diagnosticevent/methods/tostring-3cbb20ed/)

```csharp
public override string ToString()
```

Returns the fully qualified type name of this instance.

### Returns

The fully qualified type name.

## operator ==(DiagnosticEvent, DiagnosticEvent) {#op-equality-orleans-testinghost-diagnostics-diagnosticevent-orleans-testinghost-3a61e2d9}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.diagnostics.diagnosticevent/methods/op-equality-orleans-testinghost-diagnostics-diagnosticevent-orleans-testinghost-3a61e2d9/)

```csharp
public static bool operator ==(DiagnosticEvent left, DiagnosticEvent right)
```

### Parameters

- `left` (`DiagnosticEvent`)
- `right` (`DiagnosticEvent`)

## operator !=(DiagnosticEvent, DiagnosticEvent) {#op-inequality-orleans-testinghost-diagnostics-diagnosticevent-orleans-testinghos-c06e4115}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.diagnostics.diagnosticevent/methods/op-inequality-orleans-testinghost-diagnostics-diagnosticevent-orleans-testinghos-c06e4115/)

```csharp
public static bool operator !=(DiagnosticEvent left, DiagnosticEvent right)
```

### Parameters

- `left` (`DiagnosticEvent`)
- `right` (`DiagnosticEvent`)
