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 GetTypeName(string oldName, string newName)
 {
     return(existingNames.GetName(oldName, new NameCreator2(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())));
 }
예제 #5
0
        public string Create(TypeDef typeDef, string newBaseTypeName)
        {
            var nameCreator = GetNameCreator(typeDef, newBaseTypeName);

            return(existingNames.GetName(typeDef.Name.String, nameCreator));
        }
예제 #6
0
 public string GetNewMethodName(string oldName, INameCreator nameCreator) => existingMethodNames.GetName(oldName, nameCreator);