> ## Documentation Index
> Fetch the complete documentation index at: https://klef.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# OperationState

> Where a pending write stands.

```csharp
[JsonPolymorphic(TypeDiscriminatorPropertyName = "state")]
[JsonDerivedType(typeof(OperationState.Pending), "pending")]
[JsonDerivedType(typeof(OperationState.Settled), "settled")]
[JsonDerivedType(typeof(OperationState.Failed), "failed")]
public abstract record OperationState : IEquatable<OperationState>
```

**Implements:** `IEquatable<OperationState>`

## Constructors

```csharp
protected OperationState(OperationState original)
```

### Parameters

**original** `OperationState` *required*

## Properties

**EqualityContract** `Type` *required*

## Methods

### Equals()

```csharp
public virtual bool Equals(OperationState? other)
```

#### Parameters

**other** `OperationState` *required*

#### Returns

`bool`

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

#### Parameters

**obj** `object` *required*

#### Returns

`bool`

### GetHashCode()

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

#### Returns

`int`

### operator !=()

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

#### Parameters

**left** `OperationState` *required*

**right** `OperationState` *required*

#### Returns

`bool`

### operator ==()

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

#### Parameters

**left** `OperationState` *required*

**right** `OperationState` *required*

#### Returns

`bool`

### PrintMembers()

```csharp
protected virtual bool PrintMembers(StringBuilder builder)
```

#### Parameters

**builder** `StringBuilder` *required*

#### Returns

`bool`

### ToString()

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

#### Returns

`string`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.