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

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

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