Class Sequence

Namespace
Pixie.Markup
Assembly
Pixie.dll

A sequence of inline markup nodes.

public sealed class Sequence : Inline
Inheritance
Sequence
Inherited Members

Constructors

Sequence(params Inline[])

Creates a sequence from a parameter list of inline nodes.

public Sequence(params Inline[] contents)

Parameters

contents Inline[]

The inline contents.

Sequence(IReadOnlyList<Inline>)

Creates a sequence of inline nodes.

public Sequence(IReadOnlyList<Inline> contents)

Parameters

contents IReadOnlyList<Inline>

The inline contents.

Properties

Contents

Gets the sequence's inline children.

public IReadOnlyList<Inline> Contents { get; }

Property Value

IReadOnlyList<Inline>

Methods

Map<T>(IReadOnlyList<T>, Func<T, T>)

Maps a sequence without reallocating when no element changes.

public static IReadOnlyList<T> Map<T>(IReadOnlyList<T> elements, Func<T, T> mapping) where T : class

Parameters

elements IReadOnlyList<T>

The elements to map.

mapping Func<T, T>

The mapping function to apply to each element.

Returns

IReadOnlyList<T>

Type Parameters

T