C# Class TemplNET.TemplRegex

Represents a regular expression for a placeholder, given a supplied prefix
Afficher le fichier Open project: CPonty/templ-dot-net Class Usage Examples

Méthodes publiques

Свойство Type Description
Pattern System.Text.RegularExpressions.Regex
Prefix string

Méthodes publiques

Méthode Description
TemplRegex ( string prefix ) : System.Text.RegularExpressions

Create a regular expression for a placeholder, given the supplied prefix

Text ( string body ) : string

Generates placeholder for the given body: string "{prefix:body}"

Private Methods

Méthode Description
BuildPattern ( string prefix ) : Regex

Method Details

TemplRegex() public méthode

Create a regular expression for a placeholder, given the supplied prefix
public TemplRegex ( string prefix ) : System.Text.RegularExpressions
prefix string
Résultat System.Text.RegularExpressions

Text() public méthode

Generates placeholder for the given body: string "{prefix:body}"
public Text ( string body ) : string
body string
Résultat string

Property Details

Pattern public_oe property

public Regex,System.Text.RegularExpressions Pattern
Résultat System.Text.RegularExpressions.Regex

Prefix public_oe property

public string Prefix
Résultat string