# TableVersion Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.tableversion/)

## Equals(TableVersion) {#equals-orleans-tableversion-2f02e682}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.tableversion/methods/equals-orleans-tableversion-2f02e682/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core/SystemTargetInterfaces/IMembershipTable.cs#L143)

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

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

### Parameters

- `other` (`TableVersion`): 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-94ce6ce6}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.tableversion/methods/equals-object-94ce6ce6/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core/SystemTargetInterfaces/IMembershipTable.cs#L141)

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

Determines whether the specified object is equal to the current object.

### Parameters

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

### Returns

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

## GetHashCode {#gethashcode-bbd012db}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.tableversion/methods/gethashcode-bbd012db/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core/SystemTargetInterfaces/IMembershipTable.cs#L142)

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

Serves as the default hash function.

### Returns

A hash code for the current object.

## Next {#next-5cf754dc}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.tableversion/methods/next-5cf754dc/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core/SystemTargetInterfaces/IMembershipTable.cs#L133)

```csharp
public TableVersion Next()
```

## ToString {#tostring-6c392884}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.tableversion/methods/tostring-6c392884/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core/SystemTargetInterfaces/IMembershipTable.cs#L135)

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

Returns a string that represents the current object.

### Returns

A string that represents the current object.

## operator ==(TableVersion, TableVersion) {#op-equality-orleans-tableversion-orleans-tableversion-ee82f30c}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.tableversion/methods/op-equality-orleans-tableversion-orleans-tableversion-ee82f30c/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core/SystemTargetInterfaces/IMembershipTable.cs#L144)

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

### Parameters

- `left` (`TableVersion`)
- `right` (`TableVersion`)

## operator !=(TableVersion, TableVersion) {#op-inequality-orleans-tableversion-orleans-tableversion-c678a4a0}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.tableversion/methods/op-inequality-orleans-tableversion-orleans-tableversion-c678a4a0/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core/SystemTargetInterfaces/IMembershipTable.cs#L145)

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

### Parameters

- `left` (`TableVersion`)
- `right` (`TableVersion`)
