Skip to content
ChartForgeX
Class

MermaidMetadataValue

ChartForgeX.Mermaid

Namespace
ChartForgeX.Mermaid
Assembly
ChartForgeX.Mermaid
Modifiers
sealed

A detached, immutable metadata value shared by typed Mermaid frontends.

Inheritance

Usage

Explore 13 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.

Accepted by parameters 2

Methods

public static MermaidMetadataValue FromArray(IEnumerable<MermaidMetadataValue> values, MermaidSourceSpan span) #

Captures an ordered sequence without retaining the caller's mutable collection.

Parameters

values System.Collections.Generic.IEnumerable<ChartForgeX.Mermaid.MermaidMetadataValue> required
span ChartForgeX.Mermaid.MermaidSourceSpan required
public static MermaidMetadataValue FromBoolean(bool value, MermaidSourceSpan span) #

Creates a boolean value.

Parameters

value bool required
span ChartForgeX.Mermaid.MermaidSourceSpan required
public static MermaidMetadataValue FromNumber(double value, MermaidSourceSpan span) #

Creates a finite numeric value.

Parameters

value double required
span ChartForgeX.Mermaid.MermaidSourceSpan required
public static MermaidMetadataValue FromObject(IEnumerable<KeyValuePair<string, MermaidMetadataValue>> values, MermaidSourceSpan span) #

Captures a mapping without retaining the caller's mutable collection.

Parameters

values System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string, ChartForgeX.Mermaid.MermaidMetadataValue>> required
span ChartForgeX.Mermaid.MermaidSourceSpan required
public static MermaidMetadataValue FromString(string value, MermaidSourceSpan span) #

Creates inert text.

Parameters

value string required
span ChartForgeX.Mermaid.MermaidSourceSpan required
public static MermaidMetadataValue Null(MermaidSourceSpan span) #

Creates an explicit null.

Parameters

span ChartForgeX.Mermaid.MermaidSourceSpan required

Properties

public MermaidMetadataKind Kind { get; } #

Gets the value kind.

public string? Text { get; private set; } #

Gets a string value, or null for another kind.

public double? Number { get; private set; } #

Gets a finite number, or null for another kind.

public bool? Boolean { get; private set; } #

Gets a boolean, or null for another kind.

public IReadOnlyDictionary<string, MermaidMetadataValue> Properties { get; private set; } #

Gets mapping members. Exact prototype-shaped keys are omitted recursively.

public IReadOnlyList<MermaidMetadataValue> Items { get; private set; } #

Gets ordered sequence items.