Example #1
0
        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);
        }
Example #2
0
        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);
        }
Example #3
0
 public string getNewMethodName(string oldName, INameCreator nameCreator)
 {
     return(existingMethodNames.getName(oldName, nameCreator));
 }
Example #4
0
 public string getNewFieldName(FieldDef field)
 {
     return(existingVariableNames.getName(field.Name, () => variableNameCreator.create(field.FieldSig.GetFieldType())));
 }
Example #5
0
 public string getNewFieldName(FieldDefinition field)
 {
     return(existingVariableNames.getName(field.Name, () => variableNameCreator.create(field.FieldType)));
 }
Example #6
0
        public string create(TypeDefinition typeDefinition, string newBaseTypeName)
        {
            var nameCreator = getNameCreator(typeDefinition, newBaseTypeName);

            return(existingNames.getName(typeDefinition.Name, nameCreator));
        }
Example #7
0
 public string getTypeName(string oldName, string newName)
 {
     return(existingNames.getName(oldName, new NameCreator2(newName)));
 }
Example #8
0
        public string create(TypeDef typeDef, string newBaseTypeName)
        {
            var nameCreator = getNameCreator(typeDef, newBaseTypeName);

            return(existingNames.getName(typeDef.Name.String, nameCreator));
        }