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 9173803
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T16:38:53+00:00 2026-06-17T16:38:53+00:00

I have built a class called MemoryDB (whose c’tor takes 6 arguments) and created

  • 0

I have built a class called “MemoryDB” (whose c’tor takes 6 arguments) and created unit-test for her.
Everything was OK until today – I tried deleting one of the arguments, so they remain 5. Even though (after re-building, saving, re-creating the class MemoryDB, etc.), the unit-test does not recognize the change and the error message appears: TimeTable.DB.MemoryDB does not contain a constructor that takes 5 arguments.
I also tried to re-create the unit-test, but for some reason the automatic c’tor it creates is the old c’tor, with 6 arguments.

Have I deleted the argument in a wrong way? How can I fix this? Do other errors in the project might cause this weird problem?

p.s. here is the old c’tor:

    public MemoryDB(List<Grade> allGrades, List<Teacher> allTeachers, ForbiddenHours forbiddenHours, List<Group> allGroups, List<List<Teacher>> staffs, List<List<Group>> parallelGroups)
    {
        CheckParametersValidation(allGrades, allTeachers, forbiddenHours, allGroups, staffs, parallelGroups);

        this.allGrades = allGrades;
        this.allTeachers = allTeachers;
        this.forbiddenHours = forbiddenHours;
        this.allGroups = allGroups;
        this.staffs = staffs;
        this.parallelGroups = parallelGroups;
    }

the new c’tor, after deleting “forbiddenHours”:

    public MemoryDB(List<Grade> allGrades, List<Teacher> allTeachers, List<Group> allGroups, List<List<Teacher>> staffs, List<List<Group>> parallelGroups)
    {
        CheckParametersValidation(allGrades, allTeachers, allGroups, staffs, parallelGroups);

        this.allGrades = allGrades;
        this.allTeachers = allTeachers;
        this.allGroups = allGroups;
        this.staffs = staffs;
        this.parallelGroups = parallelGroups;
    }
  • 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-17T16:38:53+00:00Added an answer on June 17, 2026 at 4:38 pm

    It is difficult to tell why this happens, but there are certain things to look for when troubleshooting such an issue:

    • If the library was referenced as a DLL, it is possible that the DLL has not been updated.
      • If that’s the case, rebuild the library – if there are any errors, it has not built. Fix the errors.
      • Once rebuilt, remove the existing reference and re-add it (not strictly needed, you can simply replace the DLL on the file system)
    • If the library was referenced as a project:
      • Make sure the library is building without errors.
      • It is possible that some caching issues are going on. Restart Visual Studio.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have built up an array of objects, created from a class, I wrote
I have a main window class built in Qt Designer and called Ui_MainWindow which
In my little scratch built flex game framework, I have defined a class called
I have built a simple project called LibTest that has one class with the
I have built a class in PHP and I must declare a class variable
I have a POCO class that is mostly built through a service. I hit
I have a Windows service built upon ATL 7's CAtlServiceModuleT class. This service serves
i've built a BaseAdapter extended class for my list view.. inside i have a
Inspired by Apple's LazyTables sample, I've just built myself a class called ImageLoader. It's
I have a custom class called NoteView that extends FrameLayout . Previously, I had

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.