Class FloatTagSetupSyntax
TagSetupSyntax that parses numeric literal values to double. Variable text (e.g. Q2, #1, [#1+#2]) remains as string.
public class FloatTagSetupSyntax : TagSetupSyntax, INcSyntax
- Inheritance
-
FloatTagSetupSyntax
- Implements
- Inherited Members
- Extension Methods
Constructors
FloatTagSetupSyntax(IEnumerable<string>, IEnumerable<string>, string)
public FloatTagSetupSyntax(IEnumerable<string> categoryPath, IEnumerable<string> tags, string variableTag)
Parameters
categoryPathIEnumerable<string>tagsIEnumerable<string>variableTagstring
Methods
ToFloat(string)
Parses a numeric literal to double; returns the original string for variable text.
public static JsonNode ToFloat(string setup)
Parameters
setupstring
Returns
ToSetupJsonNode(string)
Converts a tag setup string value to a JsonNode. Override in derived classes for typed parsing (int, double). Variable text (e.g. Q2, #1, [#1+#2]) is kept as string.
protected override JsonNode ToSetupJsonNode(string setup)
Parameters
setupstring