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 getNewPropertyName(PropertyDefinition propertyDefinition) { var propType = propertyDefinition.PropertyType; string newName; if (propType is GenericParameter) { newName = existingPropertyNames.getName(propertyDefinition.Name, genericPropertyNameCreator); } else { newName = existingPropertyNames.getName(propertyDefinition.Name, () => propertyNameCreator.create(propType)); } addPropertyName(newName); return(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 getNewFieldName(FieldDefinition field) { return(existingVariableNames.getName(field.Name, () => variableNameCreator.create(field.FieldType))); }
public string create(TypeDefinition typeDefinition, string newBaseTypeName) { var nameCreator = getNameCreator(typeDefinition, newBaseTypeName); return(existingNames.getName(typeDefinition.Name, nameCreator)); }
public string getTypeName(string oldName, string newName) { return(existingNames.getName(oldName, new NameCreator2(newName))); }
public string create(TypeDef typeDef, string newBaseTypeName) { var nameCreator = getNameCreator(typeDef, newBaseTypeName); return(existingNames.getName(typeDef.Name.String, nameCreator)); }