示例#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);
        }
示例#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);
        }
示例#3
0
 public string getNewFieldName(FieldDef field)
 {
     return(existingVariableNames.getName(field.Name, () => variableNameCreator.create(field.FieldSig.GetFieldType())));
 }
示例#4
0
 public string getNewFieldName(FieldDefinition field)
 {
     return(existingVariableNames.getName(field.Name, () => variableNameCreator.create(field.FieldType)));
 }