# QueueCacheCursorResult&lt;TCursor&gt; Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.queuecachecursorresult-1/)

## Equals(QueueCacheCursorResult&lt;TCursor&gt;) {#equals-orleans-streams-queuecachecursorresult-tcursor-994aea40}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.queuecachecursorresult-1/methods/equals-orleans-streams-queuecachecursorresult-tcursor-994aea40/)

[Source](https://github.com/dotnet/orleans/blob/1644940b035c7bdf215a4fd7135757c06bcfe9ec/src/Orleans.Streaming/QueueAdapters/QueueCacheCursorResult.cs#L196-L198)

```csharp
public bool Equals(QueueCacheCursorResult<TCursor> other)
```

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

### Parameters

- `other` (`QueueCacheCursorResult<TCursor>`): 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-nullable-1ca57b65}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.queuecachecursorresult-1/methods/equals-object-nullable-1ca57b65/)

[Source](https://github.com/dotnet/orleans/blob/1644940b035c7bdf215a4fd7135757c06bcfe9ec/src/Orleans.Streaming/QueueAdapters/QueueCacheCursorResult.cs#L201)

```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`.

## FromCacheMiss(QueueCacheMissInfo) {#fromcachemiss-orleans-streams-queuecachemissinfo-acd25422}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.queuecachecursorresult-1/methods/fromcachemiss-orleans-streams-queuecachemissinfo-acd25422/)

[Source](https://github.com/dotnet/orleans/blob/1644940b035c7bdf215a4fd7135757c06bcfe9ec/src/Orleans.Streaming/QueueAdapters/QueueCacheCursorResult.cs#L234)

```csharp
public static QueueCacheCursorResult<TCursor> FromCacheMiss(QueueCacheMissInfo cacheMiss)
```

Creates a cache miss result.

### Parameters

- `cacheMiss` (`QueueCacheMissInfo`): The cache miss details.

### Returns

A cache miss result.

## FromCursor(TCursor) {#fromcursor-tcursor-149133b5}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.queuecachecursorresult-1/methods/fromcursor-tcursor-149133b5/)

[Source](https://github.com/dotnet/orleans/blob/1644940b035c7bdf215a4fd7135757c06bcfe9ec/src/Orleans.Streaming/QueueAdapters/QueueCacheCursorResult.cs#L224-L225)

```csharp
public static QueueCacheCursorResult<TCursor> FromCursor(TCursor cursor)
```

Creates a successful result.

### Parameters

- `cursor` (`TCursor`): The acquired cursor.

### Returns

A successful cursor result.

### Exceptions

- `System.ArgumentNullException`: `cursor` is `null`.

## GetHashCode {#gethashcode-0b3e4625}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.queuecachecursorresult-1/methods/gethashcode-0b3e4625/)

[Source](https://github.com/dotnet/orleans/blob/1644940b035c7bdf215a4fd7135757c06bcfe9ec/src/Orleans.Streaming/QueueAdapters/QueueCacheCursorResult.cs#L204)

```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.

## operator ==(QueueCacheCursorResult&lt;TCursor&gt;, QueueCacheCursorResult&lt;TCursor&gt;) {#op-equality-orleans-streams-queuecachecursorresult-tcursor-orleans-streams-queue-fdcfb2c6}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.queuecachecursorresult-1/methods/op-equality-orleans-streams-queuecachecursorresult-tcursor-orleans-streams-queue-fdcfb2c6/)

[Source](https://github.com/dotnet/orleans/blob/1644940b035c7bdf215a4fd7135757c06bcfe9ec/src/Orleans.Streaming/QueueAdapters/QueueCacheCursorResult.cs#L209)

```csharp
public static bool operator ==(QueueCacheCursorResult<TCursor> left, QueueCacheCursorResult<TCursor> right)
```

Determines whether two cursor acquisition results are equal.

### Parameters

- `left` (`QueueCacheCursorResult<TCursor>`)
- `right` (`QueueCacheCursorResult<TCursor>`)

## operator !=(QueueCacheCursorResult&lt;TCursor&gt;, QueueCacheCursorResult&lt;TCursor&gt;) {#op-inequality-orleans-streams-queuecachecursorresult-tcursor-orleans-streams-que-97242272}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.queuecachecursorresult-1/methods/op-inequality-orleans-streams-queuecachecursorresult-tcursor-orleans-streams-que-97242272/)

[Source](https://github.com/dotnet/orleans/blob/1644940b035c7bdf215a4fd7135757c06bcfe9ec/src/Orleans.Streaming/QueueAdapters/QueueCacheCursorResult.cs#L214)

```csharp
public static bool operator !=(QueueCacheCursorResult<TCursor> left, QueueCacheCursorResult<TCursor> right)
```

Determines whether two cursor acquisition results are unequal.

### Parameters

- `left` (`QueueCacheCursorResult<TCursor>`)
- `right` (`QueueCacheCursorResult<TCursor>`)
