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); }
public RenameContext CreateRenameContext() { return(RenameContext.Create(SourceRegex, DestRegex, VariableTypes)); }