<!-- Generated by tools/SharpCell.Docs from the XML documentation comments. Do not edit; run the tool with 'generate'. -->

# CalculationDiagnostic

```csharp
public sealed class CalculationDiagnostic
```

Namespace `SharpCell` · package `SharpCell`

Something calculation noticed that is not visible in cell values alone.

## Constructors

<a id="ctor-diagnostickind-worksheet-string-string"></a>
### CalculationDiagnostic(DiagnosticKind, Worksheet, string, string)

```csharp
public CalculationDiagnostic(DiagnosticKind kind, Worksheet? sheet, string? address, string message)
```

Something calculation noticed that is not visible in cell values alone.

## Properties

<a id="address"></a>
### Address

```csharp
public string? Address { get; }
```

A1 address of the affected cell; null for [Workbook.Evaluate](SharpCell.Workbook.md#evaluate-string).

<a id="kind"></a>
### Kind

```csharp
public DiagnosticKind Kind { get; }
```

What happened.

<a id="message"></a>
### Message

```csharp
public string Message { get; }
```

A description for people, such as the cells that form a circular reference.

<a id="sheet"></a>
### Sheet

```csharp
public Worksheet? Sheet { get; }
```

Sheet of the affected cell; null for [Workbook.Evaluate](SharpCell.Workbook.md#evaluate-string).

## Methods

<a id="tostring"></a>
### ToString()

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

The kind, the cell if there is one, and the message on one line.
