GetRegex() private static method

private static GetRegex ( string paramName ) : Regex
paramName string
return System.Text.RegularExpressions.Regex
Exemplo n.º 1
0
 public string this[string paramName]
 {
     get
     {
         Match match = PListConfig.GetRegex(paramName).Match(this.xml);
         return((!match.Success) ? string.Empty : match.Groups["Value"].Value);
     }
     set
     {
         Match match = PListConfig.GetRegex(paramName).Match(this.xml);
         if (match.Success)
         {
             this.xml = PListConfig.GetRegex(paramName).Replace(this.xml, "${Part1}" + value + "</string>");
         }
         else
         {
             this.WriteNewValue(paramName, value);
         }
     }
 }