C# Class UsonPattern.RegexPart, extensions

Afficher le fichier Open project: netfx/extensions

Méthodes publiques

Méthode Description
Alternate ( ) : RegexPart
Alternate ( RegexPart alternate ) : RegexPart

Alternates this part with the given value. Equivalent to just using the "|" operator on two values: QuotedPart | NonWhitespacePart;

Alternate ( string alternate ) : RegexPart

Alternates this part with the given value. Equivalent to just using the "|" operator on two values: QuotedPart | NonWhitespacePart;

ToString ( ) : string

Returns the built pattern. Not necessary to call this method, as the RegexPart can be assigned to a string variable using implicit type conversion.

operator ( ) : RegexPart

Alternates the current pattern with the given one

Private Methods

Méthode Description
RegexPart ( string pattern ) : System

Method Details

Alternate() public méthode

public Alternate ( ) : RegexPart
Résultat RegexPart

Alternate() public méthode

Alternates this part with the given value. Equivalent to just using the "|" operator on two values: QuotedPart | NonWhitespacePart;
public Alternate ( RegexPart alternate ) : RegexPart
alternate RegexPart
Résultat RegexPart

Alternate() public méthode

Alternates this part with the given value. Equivalent to just using the "|" operator on two values: QuotedPart | NonWhitespacePart;
public Alternate ( string alternate ) : RegexPart
alternate string
Résultat RegexPart

ToString() public méthode

Returns the built pattern. Not necessary to call this method, as the RegexPart can be assigned to a string variable using implicit type conversion.
public ToString ( ) : string
Résultat string

operator() public static méthode

Alternates the current pattern with the given one
public static operator ( ) : RegexPart
Résultat RegexPart