Table of Contents

Class TemplateBlock

Namespace
TdbIO
Assembly
TdbIO.dll

One block of a template: keyword [instance] { properties and blocks };.

public sealed class TemplateBlock

Inheritance

Inherited Members

Properties

Blocks

The nested blocks in file order.

public IReadOnlyList<TemplateBlock> Blocks { get; }

Property Value

IReadOnlyList<TemplateBlock>

Instance

The optional second word of the block, or null.

public string? Instance { get; }

Property Value

string?

Keyword

The first word of the block, such as template, row or valuefield.

public string Keyword { get; }

Property Value

string

Properties

The properties (key = value;) in file order. A key that is repeated is kept every time.

public IReadOnlyList<KeyValuePair<string, TemplateValue>> Properties { get; }

Property Value

IReadOnlyList<KeyValuePair<string, TemplateValue>>

Methods

GetValue(string)

The value of the first property with this key (ordinal comparison), or null.

public TemplateValue? GetValue(string key)

Parameters

key string

The property key, as written in the file.

Returns

TemplateValue?

The value, or null when the block has no such property.

Exceptions

ArgumentNullException

key is null.