The .NET Framework is a software framework for Microsoft Windows operating systems. It includes an implementation of the Base Class Library, Common Language Runtime, and Dynamic Language Runtime. It supports many programming languages, including C#, VB.NET, F# and C++.

learn more… | top users | synonyms

0
votes
1answer
126 views

Is abusing Application.UnhandledException for login redirection okay?

I'm programming a windows phone 7 app which needs authentication for news-like read access. I use Application.UnhandledException to handle (my) AuthFailedException, which can be thrown from any page, ...
2
votes
2answers
537 views

Optimize Reading of Multiple files

I have a unique problem which I'm hoping someone can assist with. I have One big text file, our Production file. The data in the file is delimited in the following format Reference|Cost ...
4
votes
2answers
359 views

Where to put interface in .Net

I have VB.Net project, with a class with a couple of abstract (mustoverride) properties, that I am thinking about moving into an interface. My question, is structurally how do I do this? Currently ...
0
votes
2answers
73 views

Working with data and meta data that are separated on different servers

While developing a product, I've come across a situation where my group wants to store meta data for data entry forms (questions, layout, etc) in a different database then the database where the ...
4
votes
2answers
373 views

Hide or Show singleton?

Singleton is a common pattern implemented in both native libraries of .NET and Java. You will see it as such: C#: MyClass.Instance Java: MyClass.getInstance() The question is: when writing APIs, ...
0
votes
2answers
105 views

should I create a new class for a specific piece of business logic?

I have a Request class based on the same Entity in my Domain. It currently only has property definitions. I'd like to add a method for checking a duplicate Request which I'll call from my ...
1
vote
1answer
87 views

Minimizing data sent over a webservice call on expensive connection

I am working on a system that has many remote laptops all connected to the internet through cellular data connections. The application will synchronize periodically to a central database. The ...
2
votes
3answers
689 views

what's a good approach to working with multiple databases?

I'm working on a project that has its own database call it InternalDb, but also it queries two other databases, call them ExternalDb1 and ExternalDb2. Both ExternalDb1 and ExternalDb2 are actually ...
0
votes
1answer
166 views

use of Enum with flags in practice?

I just have read some stuff on enum today. Use of flags with enum was something interesting and new for me. But often practice and theoretical uses are different. I go through many articles they ...
2
votes
1answer
345 views

Security Risks of Unsigned ClickOnce Manifests

Using signed manifests in ClickOnce deployments, it is not possible to modify files after the deployment package has been published - installation will fail as hash information in the manifest won't ...
111
votes
6answers
10k views

SOLID Principles and code structure

At a recent job interview, I couldn't answer a question about SOLID -- beyond providing the basic meaning of the various principles. It really bugs me. I have done a couple of days worth of digging ...
0
votes
1answer
301 views

Provide multiple SendCompleted callbacks to SmtpClient

I have an Email class that has a Send method that optionally takes an SmtpClient and sends an email asynchronously using SendAsync. If no SmtpClient is supplied to this method, it instantiates a ...
2
votes
4answers
486 views

How to convince my teammates that spawning numerous threads is a bad design? [closed]

I've stumbled upon this problem when tried to run our application in bad network conditions; it spawns hundreds of threads (which exist long time before termination), and with time the application ...
2
votes
2answers
119 views

How do I reduce the number of WCF config files in a SOA?

After embracing the whole SOA thing, I've found that I'm gradually drowning in a sea of web.config and app.config files. As an example, one system has 2 services that it interacts with. Each service ...
0
votes
2answers
492 views

embedding programming languages into other languages [duplicate]

In C/C++, there is a keyword that allows you to enter assembly language directly into a method. Example int Main() { __asm // notify the compiler that this block is assembly language. { ...
1
vote
1answer
223 views

Use ILmerge for NuGet libraries?

I'm making an open source C# library (http://github.com/eteeselink/fakethat if you must). Like is fashionable these days, I plan to spread it via NuGet. My library depends on another library ...
4
votes
4answers
560 views

Pattern to use for different Stages in a software

I am developing a software for a laboratory to test some devices. To test each device there are multi subtests which should be done to reach to the final result.To perform a complete test, the ...
18
votes
5answers
8k views

Why would anyone invest time in Microsoft “Roslyn”?

I have just been reading through some of the white papers & examples from Microsoft "Roslyn" and the concept seems very interesting. From what I can tell, it opens up the black box that is the ...
1
vote
1answer
318 views

Winforms,WPF application on extended monitor (iphone and android screens) freezes [closed]

Ok a bit of an unusual situation here.. I have a .Net winform application which when started launches 2 forms.The Main form remains on Monitor one and the other form launches into second monitor(if ...
0
votes
1answer
111 views

Uses of WCF Binding

From MSDN, we have the following definition of WCF Binding Bindings specify how a WCF service endpoint communicates with other endpoints. At its most basic, a binding must specify the ...
46
votes
11answers
3k views

I don't understand how TDD helps me get a good design if I need a design to start testing it

I'm trying to wrap my head around TDD, specifically the development part. I've looked at some books, but the ones I found mainly tackle the testing part - the History of NUnit, why testing is good, ...
1
vote
2answers
124 views

How can I choose what to use to write my next webservice in C#? [closed]

I'm about to write some webservices from scratch and I'm a bit confused about the approach to take. The obvious choices were WCF and MVC 4 Web API, but I am having a hard time deciding. The two ...
2
votes
4answers
461 views

Two libraries connecting to the database, leading to code smell?

In the current company that I work for there is a very large Utilities library. It was written a few years back (long before I joined) and has grown ergonomically over time to now do everything: ...
2
votes
1answer
293 views

Organizing related projects and dependencies for nuget publishing

I've been working on writing .NET bindings for Rollbar, an error and message reporting service, like Airbrake. My library is working nicely and is published in the NuGet gallery. So now I want to ...
2
votes
3answers
443 views

Is it completely impossible to have total separation without leakage of any kind in a design? [closed]

For the past week I have been attempting to write a proof-of-concept project using dependency injection, a service layer, unit of work pattern + repository. I am looking to design something that can ...
1
vote
1answer
113 views

Program modules separated in different DLLs

We have an existing ERP system written in VB 6 that we are converting to .Net incrementally. Now, every module in the system is being separated into DLLs so that the product becomes customizable and ...
0
votes
1answer
304 views

What is the proper and easy way to move a LocalDB to Azure using code first ?

The only way I could figure how to do it was create the schema on the localDB with code first and then manually change the database string to Azure and then run the code on Azure.. But that only ...
-1
votes
1answer
297 views

Mono patent safety [duplicate]

Could you please share you thoughts about Mono patent safety? Is it risky to use Mono in production for commercial projects? In case of WEB application, for example the following technology stack: ...
1
vote
5answers
230 views

Is it a good practice to write a method that gets something and checks the value? [duplicate]

Occassinally I have to write methods like this: string GetReportOutputDirectoryAndMakeSureExist() { string path = Path.Combine ( ... ) //whatever logic if(!Directory.Exists(path)) ...
1
vote
1answer
76 views

Extracting domain logic from the forms to which they are coupled?

Many applications do nothing to separate the interface from domain logic. I’ve been programming for a couple decades and have worked at more than a dozen shops and none of them have taken any measure ...
5
votes
2answers
327 views

Why isn't there a private deployment option for the .NET framework? [closed]

Here are reasons why one would want this: 1) We often don't use all the dlls but we force customers to install the entire .NET framework. It would be great to just deploy the dlls we need. 2) We ...
0
votes
0answers
54 views

Document existing Visual Studio Project [duplicate]

I am a small business owner and my sole developer quit. Cold. I am not a coder. He developed an existing application that works .net, c#, javascript, sql, visual studio based, 250,000 lines of code. ...
3
votes
2answers
533 views

MVC framework that uses classes instead of methods for actions

In most MVC frameworks, Controller class contains multiple methods, each representing one action. Then annotations and reflection is used to call those methods appropriately. But from OOP point of ...
0
votes
1answer
2k views

Best place to write SQL queries

I've been working on this project for my company. Currently I am embedding my SQL statements inside the program itself as and when they are needed. I do have two seperate classes - QueryBuilder ...
3
votes
4answers
506 views

Are Compiler Directives an Antipattern?

I'm working on a legacy system that has a helper class that is symbolically linked into many different .Net projects within a solution. The logic is riddled with compiler directives that change it's ...
3
votes
3answers
939 views

When are chained assignments (i.e. a=b=c) bad form?

I'm working on a VB.Net WinForms project and found myself writing code like this: this.Fizz.Enabled = this.Buzz.Enabled = someCondition; I couldn't decide whether that was bad code or not. Are ...
0
votes
1answer
346 views

What to expect from a 'peer interview' for a new grad position? [duplicate]

I apologize if something like this has been asked, I did try to look for something similar. I am graduating May 16th, and I applied for a position posted as '.NET Application Developer' requiring 1-2 ...
6
votes
2answers
409 views

Why is Flags Enumeration considered an intermediate skill?

I was reading this article: Designing Flags Enumerations @ msdn and it says Combining flags enumeration values is an intermediate skill that should not be required for developers implementing ...
1
vote
2answers
304 views

Approach of delivering “Logging API”

I faced a question in a .NET interview. As a client i need a LoggingAPI. How you go the approach of design and development and delivering Logging API to the client? I don't care about WPF or a ...
1
vote
1answer
113 views

Should semantic breaking changes be tied to syntactic breaking changes?

Explanation First let me briefly define how I'm using terms (I might be bending their typical use a little): When I talk about semantic breaking changes, I'm referring to a change in the ...
9
votes
2answers
394 views

Should my async task library swallow exceptions quietly?

I've just learned that .NET 4.5 introduced a change to how exceptions inside a Task are handled. Namely, they are quietly suppressed. The official reasoning for why this was done appears to be "we ...
7
votes
1answer
264 views

Naming of related classes and interfaces

I have created an ObjectParser class which parses data into strongly typed objects using an IObjectParserDataSource as the data source (the data could be an Excel file, text file, array, query string, ...
1
vote
1answer
122 views

Expanding on vendor software?

I am a SCADA consultant and I work with many software packages. Due to their robust nature they include the capability of executing internal/external activex and vbscript code. Over the years I have ...
0
votes
2answers
197 views

Should I retrieve one large set of data to filter or smaller individual sets of data?

I have a company intranet that utilizes a similar set of data across many different pages and many different methods. Speaking in generalities, is it closer to "best practice" to retrieve a large ...
4
votes
2answers
546 views

Acceptable placement of the composition root using dependency injection and inversion of control containers

I've read in several sources including Mark Seemann's 'Ploeh' blog about how the appropriate placement of the composition root of an IoC container is as close as possible to the entry point of an ...
1
vote
1answer
326 views

Which .NET technology would work as an improvement for this client/server application?

I am helping a friend with his rewrite of his .NET application, currently using WinForms + sockets, which is a client/server program that currently has on average ~120 concurrent users (sending ...
8
votes
3answers
7k views

Why should I use List<T> over IEnumerable<T>?

In my ASP.net MVC4 web application I use IEnumerables, trying to follow the mantra to program to the interface, not the implementation. Return IEnumerable(Of Student) vs Return New List(Of ...
1
vote
0answers
617 views

.NET software design and Oracle ODP.NET UDT

I'm working on a new common .NET software design (mainly) for WCF-based web service applications with related client frontends (all written in C#). As far I've chosen some frameworks ...
15
votes
4answers
2k views

Is the “Gets or sets ..” necessary in XML documentation of properties?

I am looking for a recommendation of a best practice for XML comments in C#. When you create a property, it seems like that the expected XML documentation has the following form: /// <summary> ...
0
votes
2answers
173 views

Tracking scientific error when working with floating-point numbers

Background I hate the way .Net/IEEE-754 handles equality of floating-point numbers (FPNs) (i.e. double, float). It requires the programmer to be prescient with respect to the yet-to-be-determined ...