C# Class UsonPattern.RegexPart, extensions

Datei anzeigen Open project: netfx/extensions

Public Methods

Method 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

Method Description
RegexPart ( string pattern ) : System

Method Details

Alternate() public method

public Alternate ( ) : RegexPart
return RegexPart

Alternate() public method

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
return RegexPart

Alternate() public method

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
return RegexPart

ToString() public method

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
return string

operator() public static method

Alternates the current pattern with the given one
public static operator ( ) : RegexPart
return RegexPart