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 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))); }