public string GetNewPropertyName(PropertyDef propertyDef) { var propType = propertyDef.PropertySig.GetRetType(); string newName; if (IsGeneric(propType)) { newName = existingPropertyNames.GetName(propertyDef.Name, genericPropertyNameCreator); } else { newName = existingPropertyNames.GetName(propertyDef.Name, () => propertyNameCreator.Create(propType)); } AddPropertyName(newName); return(newName); }
public string GetTypeName(string oldName, string newName) { return(existingNames.GetName(oldName, new NameCreator2(newName))); }
public string GetNewMethodName(string oldName, INameCreator nameCreator) { return(existingMethodNames.GetName(oldName, nameCreator)); }
public string GetNewFieldName(FieldDef field) { return(existingVariableNames.GetName(field.Name, () => variableNameCreator.Create(field.FieldSig.GetFieldType()))); }
public string Create(TypeDef typeDef, string newBaseTypeName) { var nameCreator = GetNameCreator(typeDef, newBaseTypeName); return(existingNames.GetName(typeDef.Name.String, nameCreator)); }
public string GetNewMethodName(string oldName, INameCreator nameCreator) => existingMethodNames.GetName(oldName, nameCreator);