Where to put interfaces in my project structure [closed] - c#

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
This is my project structure in visual studio. Folders are indicated with a - and files with an *.
Project.Core
- Customer
- FinancialProcessing
- RiskAssesors
* IRiskAssesor
* HighRiskAssesor
* LowRiskAssesor
Is it better (i.e. common practice, more convenient, less confusing) to put the interface in the FinancialProcessing folder than inside the RiskAssesors folder?
What do you guys do?

I keep the interfaces in the same folder as the class that uses it.

Related

What is WPF/C# equivalent of Panda's DataFrame [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 1 year ago.
Improve this question
So I worked with Panda's Dataframe and it is as you know very good in Data Analysis such as filtering. I am wondering what C# has to offer? I came across C# DataTable! is this C# take on DataFrame?
For data analysis Ml.Net introduced a similar Data Frame https://learn.microsoft.com/en-us/dotnet/api/microsoft.data.analysis.dataframe?view=ml-dotnet-preview
But for routine business apps, there’s the DataTable as you have found.

Define constants needed in more than one class [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 5 years ago.
Improve this question
In my smart client solution, I have a Project folder with:
IProjectView.cs
*ProjectView*
ProjectView.cs
ProjectView.Designer.cs
ProjectView.GeneratedCode.cs
ProjectView.resx
ProjectViewPresenter.cs
I want to define some constants for user by ProjectView.cs and ProjectViewPresenter.cs. Both of these classes implement IProjectView.cs, so were I back in Java, I'd put them there. If this were C++, I'd create a class ProjectConstants.cs and have the classes inherit it, but C# doesn't allow multiple inheritance.
How do I do this?
Can having a Read-Only Property in your interface solve your problem?
string MyReadOnlyProperty { get; }
I have no clue if this is very performance-wise compared to constant thought.

several funcions in one dll or seperate? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
I have algorithm (c++ dll) wrapped in C#. The execution is on a web server.
Considering throughput/speed/memory etc. Should i write all functions in one dll or each function one dll? which way is better ?
All functions, classes and other structures may contain in one dll. This is better option. If you create more dll for each functions, management of the project, implementation and maintanence will be harder.

Eto.Forms and SQLite - crossplatform development for Windows/OSX [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
I really like Eto.Forms, I think they will be boost the crossplatform developments in the future.
But after creating my first UI-heavy application (both Windows and OSX) I realized that I need a database engine too.
My fav for that project is SQLite but I cannot find a corresponding package on NuGet for that.
Has anyone experiences with it?

What is the best use of a variable when required by multiple methods [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I'm using XmlManager to
do xml manipulations in several methods in a class.where I should declare XmlManager variable ?
1.locally within each method and do intialization.
2 declare at globally and initiate at the method level
As it is, in this question, there's absolutely NO difference whatsoever because there's neither performance gain nor significant design issues.
Maybe if the question is put into context there could be reason to choose one approach over the other, but as it stands now. None of the approach is better than the other one

Categories

Resources