public static RenameContext Create(string sourceRegex, string destRegex, IDictionary <string, string> variableTypes)
        {
            var result = new RenameContext();

            result._regex     = new Regex(sourceRegex);
            result._destRegex = destRegex;
            result.InitialiseTypeMap(variableTypes);

            return(result);
        }
Exemple #2
0
 public RenameContext CreateRenameContext()
 {
     return(RenameContext.Create(SourceRegex, DestRegex, VariableTypes));
 }