IMarkdownObject Interface

Base interface for a the Markdown syntax tree

public interface IMarkdownObject

Methods

NameDescription
ContainsData(object)Determines whether this instance contains the specified key data.
GetData(object)Gets the associated data for the specified key.
RemoveData(object)Removes the associated data for the specified key.
SetData(object, object)Stores a key/value pair for this instance.

ContainsData(object)

Determines whether this instance contains the specified key data.

bool ContainsData(object key)

Parameters

key object
The key.

Returns

bool true if a data with the key is stored

Exceptions

ArgumentNullException
if key is null

GetData(object)

Gets the associated data for the specified key.

object? GetData(object key)

Parameters

key object
The key.

Returns

object? The associated data or null if none

Exceptions

ArgumentNullException
if key is null

RemoveData(object)

Removes the associated data for the specified key.

bool RemoveData(object key)

Parameters

key object
The key.

Returns

bool true if the data was removed; false otherwise

Exceptions

ArgumentNullException

SetData(object, object)

Stores a key/value pair for this instance.

void SetData(object key, object value)

Parameters

key object
The key.
value object
The value.

Exceptions

ArgumentNullException
if key is null