Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8886095
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T21:28:29+00:00 2026-06-14T21:28:29+00:00

I’m building a system where I have some classes identical to this one: using

  • 0

I’m building a system where I have some classes identical to this one:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Class to handle operations at Status table
/// </summary>
public class Status
{
    #region Vars and Class Objects
    protected Dados d;
    protected string sql;
    protected Logs log;
    protected Permissoes p;
    protected List<string> Mensagens;
    #endregion

    #region Constructor e Destructor
    public Status()
    {
        d = new Dados();
        log = new Logs();
        p = new Permissoes();
        Mensagens = new List<string>();
    }

    ~Status()
    {
        d = null;
        p = null;
        log = null;
        sql = null;
    }
    #endregion
}

(Class Logs and Class Permissoes have similar code structure).

In above code, the following errors are being shown by VS2010 IDE, for all declarations inside constructor:

Error                                                           File            Line    Col             
Ambiguity between 'Status.d' and 'Status.d'                     Status.cs       22      9
Ambiguity between 'Status.log' and 'Status.log'                 Status.cs       23      9
Ambiguity between 'Status.p' and 'Status.p'                     Status.cs       24      9
Ambiguity between 'Status.Mensagens' and 'Status.Mensagens'     Status.cs       25      9
Ambiguity between 'Status.d' and 'Status.d'                     Prioridades.cs  21      9
Ambiguity between 'Status.p' and 'Status.p'                     Prioridades.cs  22      9
Ambiguity between 'Status.log' and 'Status.log'                 Prioridades.cs  23      9
Ambiguity between 'Status.d' and 'Status.d'                     Prioridades.cs  28      3
Ambiguity between 'Status.p' and 'Status.p'                     Prioridades.cs  29      9
Ambiguity between 'Status.log' and 'Status.log'                 Prioridades.cs  30      9
Ambiguity between 'Status.sql' and 'Status.sql'                 Prioridades.cs  31      9
Ambiguity between 'Status.p' and 'Status.p'                     Prioridades.cs  45      18
Ambiguity between 'Status.sql' and 'Status.sql'                 Prioridades.cs  53      5
Ambiguity between 'Status.d' and 'Status.d'                     Prioridades.cs  54      5
Ambiguity between 'Status.log' and 'Status.log'                 Prioridades.cs  58      17
Ambiguity between 'Status.p' and 'Status.p'                     Prioridades.cs  78      18
Ambiguity between 'Status.sql' and 'Status.sql'                 Prioridades.cs  86      17
Ambiguity between 'Status.d' and 'Status.d'                     Prioridades.cs  87      17
Ambiguity between 'Status.log' and 'Status.log'                 Prioridades.cs  88      17
Ambiguity between 'Status.p' and 'Status.p'                     Prioridades.cs  106     18
Ambiguity between 'Status.sql' and 'Status.sql'                 Prioridades.cs  114     17
Ambiguity between 'Status.d' and 'Status.d'                     Prioridades.cs  115     17
Ambiguity between 'Status.log' and 'Status.log'                 Prioridades.cs  116     17
Ambiguity between 'Status.p' and 'Status.p'                     Prioridades.cs  136     18
Ambiguity between 'Status.sql' and 'Status.sql'                 Prioridades.cs  137     13
Ambiguity between 'Status.d' and 'Status.d'                     Prioridades.cs  138     17
Ambiguity between 'Status.p' and 'Status.p'                     Prioridades.cs  157     18
Ambiguity between 'Status.sql' and 'Status.sql'                 Prioridades.cs  158     13
Ambiguity between 'Status.d' and 'Status.d'                     Prioridades.cs  159     26
Ambiguity between 'Status.p' and 'Status.p'                     Prioridades.cs  177     18
Ambiguity between 'Status.sql' and 'Status.sql'                 Prioridades.cs  178     4
Ambiguity between 'Status.d' and 'Status.d'                     Prioridades.cs  179     17

Strange thing is: I built another system using this very same methodology and it works like a charm. I just copy-pasted these files to another website and I’m modifying the classes to create another system.

Any ideas? It smells like bug…

EDIT:

Just found out. What happened: I copy-pasted Prioridades class, renamed it and used Refactoring on VS2010. It renamed ALL REFERENCES to “Prioridades” to “Status”, including the original class… And all got messy.

Solution: be cautious when using Refactoring.

Sorry for this, guys…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T21:28:30+00:00Added an answer on June 14, 2026 at 9:28 pm

    It’s interesting that it’s objecting to “Status.d” in Prioridades.cs. It looks to me as if Prioridades.cs contains a class named “Status”, not “Prioridades”. When you copy and paste class contents (or entire files) be sure to change the class name. It’s an easy thing to forget to do.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
I am reading a book about Javascript and jQuery and using one of the
this is what i have right now Drawing an RSS feed into the php,
I have this code to decode numeric html entities to the UTF8 equivalent character.
We're building an app, our first using Rails 3, and we're having to build
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.