Pihrtsoft.Text.RegularExpressions.Linq.PatternBuilder.ToString C# (CSharp) Method

ToString() public method

Converts the value of this instance to a string.
public ToString ( ) : string
return string
        public override string ToString()
        {
            if (_fLiteral)
                return GetLiteral();
            else
                return GetPattern();
        }

Usage Example

Example #1
0
 /// <summary>
 /// Returns the text representation of this instance.
 /// </summary>
 /// <returns></returns>
 public override string ToString()
 {
     var builder = new PatternBuilder();
     AppendContentTo(builder);
     return builder.ToString();
 }