Class Placeholder
Represents a single placeholder within a templated entry.
Inherited Members
Namespace: Tlumach.Base
Assembly: Tlumach.Base.dll
Syntax
public class Placeholder
Constructors
Placeholder(string)
Initializes a new instance of the Placeholder class.
Declaration
public Placeholder(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The name of the placeholder. |
Properties
Example
Gets or sets the example if one was provided in the translation file.
Declaration
public string? Example { get; protected set; }
Property Value
| Type | Description |
|---|---|
| string |
Format
Gets or sets the format of the placeholder as specified in the translation file.
Declaration
public string? Format { get; protected set; }
Property Value
| Type | Description |
|---|---|
| string |
Name
Gets or sets the name of the placeholder.
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
OptionalParameters
Contains optional parameters as provided in the "optionalParameters" object for the placeholder in the translation file.
Declaration
public Dictionary<string, string> OptionalParameters { get; }
Property Value
| Type | Description |
|---|---|
| Dictionary<string, string> |
Properties
Contains additional (unrecognized) properties provided for the placeholder in the translation file.
Declaration
public Dictionary<string, string> Properties { get; }
Property Value
| Type | Description |
|---|---|
| Dictionary<string, string> |
Type
Gets or sets the type of the placeholder as specified in the translation file.
Declaration
public string? Type { get; protected set; }
Property Value
| Type | Description |
|---|---|
| string |