Class TemplateBlock
- Namespace
- TdbIO
- Assembly
- TdbIO.dll
One block of a template: keyword [instance] { properties and blocks };.
public sealed class TemplateBlockInheritance
Inherited Members
Properties
Blocks
The nested blocks in file order.
public IReadOnlyList<TemplateBlock> Blocks { get; }Property Value
Instance
The optional second word of the block, or null.
public string? Instance { get; }Property Value
Keyword
The first word of the block, such as template, row or valuefield.
public string Keyword { get; }Property Value
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
Methods
GetValue(string)
The value of the first property with this key (ordinal comparison), or null.
public TemplateValue? GetValue(string key)Parameters
keystring-
The property key, as written in the file.
Returns
- TemplateValue?
-
The value, or null when the block has no such property.
Exceptions
- ArgumentNullException
-
keyis null.