Ejemplo n.º 1
0
        private string GetPropertyName(MethodDeclaration methodDeclaration)
        {
            string name = methodDeclaration.Name.Substring(3);
            AccessorRefactoringHelper accessorRefactoringHelper = new AccessorRefactoringHelper();

            accessorRefactoringHelper.CodeBase = this.CodeBase;
            TypeDeclaration typeDeclaration = (TypeDeclaration)methodDeclaration.Parent;

            if (accessorRefactoringHelper.SimilarNameExistsInDependedTypes(typeDeclaration, methodDeclaration))
            {
                name += "_Property";
            }
            return(name);
        }
Ejemplo n.º 2
0
 private string GetPropertyName(MethodDeclaration methodDeclaration)
 {
     string name = methodDeclaration.Name.Substring(3);
     AccessorRefactoringHelper accessorRefactoringHelper = new AccessorRefactoringHelper();
     accessorRefactoringHelper.CodeBase = this.CodeBase;
     TypeDeclaration typeDeclaration = (TypeDeclaration) methodDeclaration.Parent;
     if (accessorRefactoringHelper.SimilarNameExistsInDependedTypes(typeDeclaration, methodDeclaration))
         name += "_Property";
     return name;
 }