Class Placeholder
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
namestringThe 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
Format
Gets or sets the format of the placeholder as specified in the translation file.
public string? Format { get; protected set; }
Property Value
Name
Gets or sets the name of the placeholder.
public string Name { get; }
Property Value
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
Properties
Contains additional (unrecognized) properties provided for the placeholder in the translation file.
public Dictionary<string, string> Properties { get; }
Property Value
Type
Gets or sets the type of the placeholder as specified in the translation file.
public string? Type { get; protected set; }