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

  • SEARCH
  • Home
  • 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 7044635
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:25:59+00:00 2026-05-28T02:25:59+00:00

I am having a bit of a design issue. What I am working on

  • 0

I am having a bit of a design issue. What I am working on is a drag and drop in a C# desktop app. I am using the .NET treeview control and a third party grid (not important). I am using this drag and drop operation of a file system in more than one place so I’ve created a static class to handle this. Now this is not just an ordinary file system. The treeview is a representation of the directories and the grid has the files. The complicated part is that there is a logical file system as well so all of this is stored in a database as well. I am only explaining all of this because I wanted to explain why I have a problem. Because I am working with a number of objects at this point, all of my static methods have a large number of parameters. All of my static methods are pretty much all using the same parameters as wel Would there be something I can do to avoid this?

  • 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-05-28T02:26:00+00:00Added an answer on May 28, 2026 at 2:26 am

    Reduce your parameters by encapsulating those fields in common objects, e.g.

    Instead of having:

    void DoSomething(string first, string middle, string last);
    

    You could have:

    void DoSomething(Name name);
    

    Where Name could be represented by,

    public class Name
    {
       string First {get; set;}
       string Middle {get; set;}
       string Last {get; set;}
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having a bit of a trouble understanding how to fit a particular design
Having a bit of a problem, Due to the source-control set-up we use, each
Having a bit of trouble using the List.Find with a custom predicate i have
I'm having a bit of trouble loading an html file in a WebView control
I am having a bit of a strange issue. I have a ListView which
I am having problem in using the source view of an asp.net page in
I am having a bit of trouble understanding how I will design a class.
I am having a bit of trouble with the design aspect of my JAVA
I'm having a bit of an application structure design dilemma. I have created a
I'm using dynamoDB with boto, and having a bit of a problem in the

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.