GetData(IMarkdownObject, Object) Method

Definition

Namespace Markdig.Syntax
Assembly Markdig.dll

Gets the data associated with the specified key.

public static T? GetData<T>(this IMarkdownObject markdownObject, object key)

Type parameters

T
Expected data type.

Parameters

markdownObject
IMarkdownObject

The markdown object.

key
Object

The key to read.

Returns

{T}
The stored value if it matches T; otherwise default.