AppendOptions() public method

Appends a pattern that applies specified options.
value is not convertible to inline chars.
public AppendOptions ( RegexOptions applyOptions ) : void
applyOptions RegexOptions A bitwise combination of the enumeration values that are applied.
return void
 internal override void AppendTo(PatternBuilder builder)
 {
     if (!string.IsNullOrEmpty(_text))
     {
         if (_ignoreCase)
             builder.AppendOptions(RegexOptions.IgnoreCase, _text);
         else
             builder.AppendOptions(RegexOptions.None, RegexOptions.IgnoreCase, _text);
     }
 }
Esempio n. 2
0
 internal override void AppendTo(PatternBuilder builder)
 {
     builder.AppendOptions(_applyOptions, _disableOptions, Content);
 }