# MarkdownRoundtripResult

Result of a markdown roundtrip write attempt.

Class 

`OfficeIMO.Markdown`

**Namespace**

`OfficeIMO.Markdown`

**Assembly**

`OfficeIMO.Markdown`

**Source revision**

`7fbbd72e7c5a` with working tree changes

**Source**

[MarkdownRoundtripResult.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/7fbbd72e7c5a401b9579a484b97ed0a9a426ce11/OfficeIMO.Markdown/Reader/Syntax/MarkdownRoundtripResult.cs#L8)

**Modifiers**

sealed

Result of a markdown roundtrip write attempt.

## Inheritance

- object
- MarkdownRoundtripResult

## Usage

Explore 3 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 3

- Method [MarkdownNativeDocument.WriteUnchanged](/api/markdown/officeimo-markdown-markdownnativedocument/#method-writeunchanged)
- Method [MarkdownNativeDocument.WriteWithSourceEdit](/api/markdown/officeimo-markdown-markdownnativedocument/#method-writewithsourceedit-officeimo-markdown-markdownnativesourceedit)
- Method [MarkdownNativeDocument.WriteWithSourceEdits](/api/markdown/officeimo-markdown-markdownnativedocument/#method-writewithsourceedits-collections-generic-ienumerable-officeimo-markdown-markdownnativesourceedit)

Filter members 

Show inherited

## Constructors

`public MarkdownRoundtripResult(string markdown, IReadOnlyList<MarkdownRoundtripDiagnostic>? diagnostics = null)` [#](#constructor-ctor-string-collections-generic-ireadonlylist-officeimo-markdown-markdownroundtripdiagnostic)

[MarkdownRoundtripResult.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/7fbbd72e7c5a401b9579a484b97ed0a9a426ce11/OfficeIMO.Markdown/Reader/Syntax/MarkdownRoundtripResult.cs#L8)

Creates a roundtrip result.

Parameters

**markdown string required**

**diagnostics System.Collections.Generic.IReadOnlyList<OfficeIMO.Markdown.MarkdownRoundtripDiagnostic>? = null optional**

## 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 string Markdown { get; }` [#](#property-markdown)

[MarkdownRoundtripResult.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/7fbbd72e7c5a401b9579a484b97ed0a9a426ce11/OfficeIMO.Markdown/Reader/Syntax/MarkdownRoundtripResult.cs#L14)

The emitted markdown.

`public IReadOnlyList<MarkdownRoundtripDiagnostic> Diagnostics { get; }` [#](#property-diagnostics)

[MarkdownRoundtripResult.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/7fbbd72e7c5a401b9579a484b97ed0a9a426ce11/OfficeIMO.Markdown/Reader/Syntax/MarkdownRoundtripResult.cs#L17)

Diagnostics describing any fallback from lossless source preservation.

`public bool IsLossless { get; }` [#](#property-islossless)

[MarkdownRoundtripResult.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/7fbbd72e7c5a401b9579a484b97ed0a9a426ce11/OfficeIMO.Markdown/Reader/Syntax/MarkdownRoundtripResult.cs#L20)

True when the writer preserved the original source without fallbacks.

<!-- PowerForge markdown artifact sha256:42585AEB1BB57C4E59ADD7E86A5C06A567FDF80EDC62CC5D0655DD4E119F0B92 -->
