Table of Contents

Class Placeholder

Namespace
Tlumach.Base
Assembly
Tlumach.Base.dll

Represents a single placeholder within a templated entry.

public class Placeholder
Inheritance
Placeholder
Derived
Inherited Members

Constructors

Placeholder(string)

Initializes a new instance of the Placeholder class.

public Placeholder(string name)

Parameters

name string

The name of the placeholder.

Properties

Example

Gets or sets the example if one was provided in the translation file.

public string? Example { get; protected set; }

Property Value

string

Format

Gets or sets the format of the placeholder as specified in the translation file.

public string? Format { get; protected set; }

Property Value

string

Name

Gets or sets the name of the placeholder.

public string Name { get; }

Property Value

string

OptionalParameters

Contains optional parameters as provided in the "optionalParameters" object for the placeholder in the translation file.

public Dictionary<string, string> OptionalParameters { get; }

Property Value

Dictionary<string, string>

Properties

Contains additional (unrecognized) properties provided for the placeholder in the translation file.

public Dictionary<string, string> Properties { get; }

Property Value

Dictionary<string, string>

Type

Gets or sets the type of the placeholder as specified in the translation file.

public string? Type { get; protected set; }

Property Value

string