GetData(IMarkdownObject) Method

Definition

Namespace Markdig.Syntax
Assembly Markdig.dll

Gets the data associated with the conventional type key (typeof(T)).

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

Type parameters

T
Expected data type.

Parameters

markdownObject
IMarkdownObject

The markdown object.

Returns

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