Table of Contents

Class DefaultInstructionFormatter<TInstruction>

Namespace
Echo.ControlFlow.Serialization.Dot
Assembly
Echo.ControlFlow.dll

Provides a default implementation for IInstructionFormatter<TInstruction>.

public sealed class DefaultInstructionFormatter<TInstruction> : IInstructionFormatter<TInstruction> where TInstruction : notnull

Type Parameters

TInstruction

The type of the instruction to create a formatter of.

Inheritance
DefaultInstructionFormatter<TInstruction>
Implements
IInstructionFormatter<TInstruction>
Inherited Members

Properties

Instance

Gets a singleton instance of the DefaultInstructionFormatter<TInstruction> class.

public static DefaultInstructionFormatter<TInstruction> Instance { get; }

Property Value

DefaultInstructionFormatter<TInstruction>

Methods

Format(in TInstruction)

Formats a given TInstruction.

public string Format(in TInstruction instruction)

Parameters

instruction TInstruction

The TInstruction to format.

Returns

string

The formatted instruction.