4d5d6b84 d19d abbd eeda bbd5156b5864 - akesseler/Plexdata.Utilities.Templates GitHub Wiki

TemplateParser.IsValidHoleMarker Method

Checks the validity of provided hole marker.

Namespace: Plexdata.Utilities.Formatting.Helpers
Assembly: Plexdata.Utilities.Templates (in Plexdata.Utilities.Templates.dll) Version: 1.0.0

Syntax

C#

private static bool IsValidHoleMarker(
	StringBuilder marker
)

Parameters

 

marker
Type: System.Text.StringBuilder
The marker whose content has to be validated.

Return Value

Type: Boolean
True if the marker only contains valid format instructions and false otherwise. A hole token is turned into a text token in case of this method returns false.

Remarks

According to template formatting rules, a hole marker can only consist of a few of valid characters.Task of this method is to ensure these allowed characters depending on their position within the marker.

See Also

Reference

TemplateParser Class
Plexdata.Utilities.Formatting.Helpers Namespace

⚠️ **GitHub.com Fallback** ⚠️