# OfficeConversionResult<T>

A converted value and its report. Format-owned results derive from it and narrow OfficeConversionResult<T>.Report.

Class 

`OfficeIMO`

**Namespace**

`OfficeIMO`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[OfficeConversionResult.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeConversionResult.cs#L7)

A converted value and its report. Format-owned results derive from it and narrow [OfficeConversionResult<T>.Report](/api/core/officeimo-officeconversionresult/).

## Inheritance

- object
- OfficeConversionResult<T>

## Type Parameters

**T**

The target document, text, artifact or other converted value.

Filter members 

Show inherited

## Constructors

`public OfficeConversionResult<T>(T? value, OfficeConversionReport report)` [#](#constructor-ctor-officeimo-officeconversionreport)

[OfficeConversionResult.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeConversionResult.cs#L7)

Creates a result containing a non-null converted value and its report.

Parameters

**value T? required**

**report OfficeIMO.OfficeConversionReport required**

## Methods

`public void Deconstruct(out T? value, out OfficeConversionReport report)` [#](#method-deconstruct-officeimo-officeconversionreport)

[OfficeConversionResult.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeConversionResult.cs#L27)

Deconstructs the result into its converted value and report.

Parameters

**value T? required**

**report OfficeIMO.OfficeConversionReport required**

`public virtual void ThrowIfLoss()` [#](#method-throwifloss)

[OfficeConversionResult.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeConversionResult.cs#L23)

Throws the report's [OfficeConversionException](/api/core/officeimo-officeconversionexception/) when it describes possible fidelity loss.

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public T? Value { get; }` [#](#property-value)

[OfficeConversionResult.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeConversionResult.cs#L14)

Gets the converted value.

`public OfficeConversionReport Report { get; }` [#](#property-report)

[OfficeConversionResult.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeConversionResult.cs#L17)

Gets the conversion report.

`public bool HasLoss { get; }` [#](#property-hasloss)

[OfficeConversionResult.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeConversionResult.cs#L20)

Gets whether the report describes possible fidelity loss.

<!-- PowerForge markdown artifact sha256:585BFE06020ADB2F977045BB5000ADD477738CEAB3C16C0931BD439606A3952C -->
