Tagged Questions

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
108 views

Speech Recognition in the .NET framework is not efficient [on hold]

I want to create a Virtual Keyboard that can catch whatever key you 'speak' and send the keystroke to the active application. The Virtual Keyboard part and linking it to Speech Recognition will be ...
-1
votes
0answers
31 views

Database and (micro) ORM for new .NET desktop app? [on hold]

I hope my long story with more than one question fits in Programmers stackexchange. I tried to make make questions simple and not speculative. Thanks in advance. Introduction I am planning to write ...
-1
votes
0answers
63 views

Will Web App Written Using .NET Run On A Mac [on hold]

For some time, I've been thinking about migrating some applications (MS Access + MySQL) that we currently deliver remotely to clients via MS Terminal Server to Web Applications. The preference from ...
0
votes
0answers
90 views

Is .NET framework now fully Open Sourced? [on hold]

As per these articles, Microsoft Open Sourced .NET software stack. Microsoft makes .Net open-source, finally embraces iOS, Android, and Linux | ExtremeTech. Microsoft Takes .NET Open Source And ...
-1
votes
0answers
58 views

Looking for Guidance in Setting Standards [closed]

I am a team leader of a small team (2 other staff). Initially for a number of years I was the sole developer (C# WinForms/SQL Server). This is where I learned my skills, but I never had a mentor for ...
-3
votes
0answers
16 views

Looking for a web-based formula builder/creator third party component [closed]

We are looking for a third-party component to integrate a web-based formula builder into a web-based application. Our application is written in .net, which uses MS SQL DB. We need to be able to do ...
2
votes
3answers
51 views

Pre-processor usage to separate logic to different versions of product

In the .NET code base of a product, there are #if pre-processor statements to define whether certain functionality should be available. Like so: shared logic #if version1 some logic #endif #if ...
-2
votes
0answers
75 views

Is there a chance of WPF implementation for Linux? [closed]

With .NET being now open-source and all, are there any plans for porting WPF for other platforms... or will it remain strictly a Windows technology? I mean without bringing good GUI library it's not ...
-4
votes
0answers
130 views

what is the future of mono develop after Microsoft takes .net framework to opensource? [closed]

Since Microsoft made an announcement on open source .net framework is there any chance that mono project could survive. If it can survive then what will be the primary reason ?
-2
votes
1answer
58 views

What's a good idea for a WEB APP to learn ASP.NET? [closed]

I used to work as a junior .NET programmer years ago. I'm looking to get back into the scene and get a job. Lots of stuff has changed and I need to get back up to speed. I learn best by doing. I ...
-3
votes
0answers
25 views

Visual Studio Team Test: How to unit test “?” operator with only Asserts() and not using any tool [migrated]

I need to write some unit test cases to test my code in C# Visual Studio Team Test framework. Below is the method I want to test: public static Association CreateAssociationFromXrm(Xrm.pv_association ...
-1
votes
0answers
29 views

Calculate an Excel spreadsheet containing VBA from .NET without using Interop [migrated]

My requirement is very simple, yet I have not managed to come up with a satisfying solution: I want to set cell values in an Excel workbook, recalculate the workbook or individual cell values and ...
2
votes
1answer
187 views

The most effective arguments in favor of improving code quality, for a manager [closed]

My employer's legacy system started off (in 1997) as very structured procedural code (with a smidgeon of OO), and it was luckily one of the 10% of software projects that was successful. It may look a ...
1
vote
1answer
49 views

Why does a custom action filter need to inherit from both ActionFilterAttribute and IActionFilter?

I m first time creating a custom action filter and following this link http://www.asp.net/mvc/overview/older-versions/hands-on-labs/aspnet-mvc-4-custom-action-filters They are saying to Extend ...
1
vote
1answer
131 views

Should one write a custom IndexOutOfRange exception?

In the process of writing a special collection I utilized the already exisiting IndexOutOfRangeException as e.g. a list or array would throw if I were to access an illegal index. Code analysis tells ...
2
votes
2answers
88 views

Separation of retrieving data and business objects between DAL and BLL Layers

I did some research before posting this question. Among other questions or post, one of those is provided below. I could not get a clear mind how to determine.. Business Objects within a Data Access ...
1
vote
3answers
199 views

Is this extension method any better than just casting to an int?

The following extension method was set up in some code I maintain. public static Int32 GetInt32(this System.Data.Common.DbDataReader reader, string name) { return ...
2
votes
3answers
117 views

.NET Framework standard container type for multi-value property?

I'd like to create a simple class property which can contain multiple values set from the outside. (Values are of the same type.) Example of property name and contained items: KnownHidScanners ...
1
vote
7answers
355 views

What is the simplest way to broadcast data from application to other applications in .Net

I want to send information from one .Net application to multiple other .Net applications. I want the applications to be loosely coupled. The number of applications receiving the information could ...
3
votes
3answers
210 views

Interface to enumerate over files

I'm trying to design a generic interface for enumerating over a list files. Each iteration will open a file, allow the consuming code to access the file to perform some task, and then close the file. ...
1
vote
0answers
74 views

Callback pattern handling exceptions - Best practices in .NET 3.5

I am looking to implement the callback pattern with error handling such that error is caught and pass to the callback code with the response. Since I am using .NET 3.5, I cant use Task (TAP) pattern ...
2
votes
2answers
348 views

What is an alternative to bitwise flags?

I was trying to be smart and elegant, and I ended up shooting myself in the foot by coding my entire application to use flags to store various combinations of settings. Now, I have hit a point where ...
-4
votes
1answer
54 views

How do i upload small changes on a view of an asp.net mvc4 project [closed]

How do i structure an asp.net mvc 4 website in such a way that i can make small changes to views and upload those small changes only. i am a php developer trying to switch to asp.net mvc4. please ...
3
votes
1answer
148 views

why Web API 2 has RouteConfig.cs file?

I m working on Web API project, and it is using WebApiConfig.cs file to defined routs for Web API. Web API fold RouteConfig.cs file. I have googled and they say RouteConfig.cs is for MVC routing. It ...
0
votes
1answer
38 views

Updating ip address for custom domain [closed]

I'm looking to transfer the ipaddress for my site from one ip address to another. Reading through the Register.com documentation it says that it may take awhile for the DNS changes to ...
1
vote
1answer
170 views

Implementing a tricky REST API with ASP.NET Web API

I'm trying to build a RESTful API using ASP.NET Web API for a game, and here are the methods I have so far: /games GET /games/:id GET /games POST /games PUT /games DELETE /users GET /users/:id GET ...
0
votes
0answers
22 views

Caching large objects - LocalCache performance [migrated]

I have a few large objects which need to be stored and fetched from cache. These objects are around 1 - 2 mb in size. When running with localCache enabled, retrieval takes no more than a few ...
2
votes
1answer
176 views

In a generic method, what exception should I throw when a type parameter is unacceptable?

When the value of a normal parameter is unacceptable (and the requirements can't be checked completely at compile time), we check at runtime and throw an ArgumentException if the check fails. When ...
0
votes
2answers
249 views

What's the advantage of auto-property initializers without primary constructors?

In this chart about the features that are in or out of the next version of Roslyn (specifically, for C#), primary constructors are out, but auto-property initializers are in. The best use case I've ...
1
vote
1answer
210 views

Exceptions: What to handle, what to throw

I have a custom configuration reader which performs various functions on top of .NET's CloudConfigurationManager and ConfigurationManager implementations, such as caching, type conversion, etc. The ...
0
votes
1answer
111 views

Best practise to versioning Web Service WCF

I've a web service SOAP developed with WCF, there is a best practise to versioning it? when I change the contract I don't want to update all the client's referiments but I want simply publish a new ...
-1
votes
1answer
95 views

HTML and CSS required for .NET Development [closed]

On a job application, part of the job description is "...needs to know HTML and CSS as some .NET is required...". What does this mean? I thought HTML is a programming language, CSS is a way to ...
0
votes
1answer
56 views

design for buffering or queuing data streams to replace database

We have a system (ms stack, .net, sql) that receives data from thousands of remote devices (several independent readings/min). We currently save all the data to a db as it arrives and a second service ...
-2
votes
1answer
155 views

How to access client application (Scanner or .exe) which are installed on client machine using Asp.net web application [closed]

How to access client application (Scanner or .exe) which are installed on client machine using Asp.net web application? I want to Access Scanner which are installed on client machine. I'm using a ...
1
vote
1answer
158 views

Why does `SortedDictionary` not implement `IReadOnlyDictionary`?

The .NET type SortedDictionary<TKey, TValue> does not implement the interface IReadOnlyDictionary<TKey, TValue>, although Dictionary<TKey, TValue> does. It is trivial to make ...
-3
votes
1answer
55 views

Distinct Log and Trace for each object in .NET [closed]

I am dealing with very complex objects in .NET (in my case a finite element model that can consist of thousands of other objects say a Model instance have a large list of Element instance). I would ...
2
votes
0answers
44 views

Mono: C call into managed with COM Interop

I am trying to design a managed library to implement -what appear to be- unmanaged VST3 plugins. The VST3 plugin interface is a C/C++ interface-based API that is compatible with COM (ref-counting, ...
0
votes
1answer
60 views

Strategy for storing mixed value and reference types without boxing

I'm looking for a way to store a large quantity of individual data values, with the following constraints. Assume that the types are bool, int32, double, decimal, string and blob (byte array). The ...
2
votes
1answer
170 views

What are the motivations behind making true and false overloadable operators?

I asked this question on Stack Overflow and it was met with negative reception. I figured that Stack Overflow wasn't the right place to ask this question, so I decided to post it here. Beside making ...
0
votes
0answers
23 views

Variable sized classes and memory mapped files

Is there an accepted way to store variable sized classes in memory mapped files, or is this always considered bad practice? Essentially I want to store a collection of image patterns files that are ...
0
votes
2answers
188 views

Custom Video Player

I have a custom file type .mft which is basically a zip that has video inside (mpg,mp4,etc) that is encrypted/protected. My ideia is to create a custom video player which will read those .mft files, ...
0
votes
0answers
21 views

Preloading expensive resources

I have a significant quantity of external resources that I need to load. It takes about 5 minutes to fully load (about 16 gigs of data). These are basically third party image patterns that I have to ...
2
votes
1answer
171 views

Fire domain events after transaction completes

I am trying to implement a domain event system that only fires its events when the associated unit-of-work commits successfully. The main reason why I want to do this is because I have other ...
2
votes
1answer
92 views

Is there a better way to update NoSQL records in bulk?

When we started our application we had the choice of going with the traditional MS-SQL normalized database or with a NoSQL database (RavenDB is what we tried out). Here is a simplified version of our ...
0
votes
2answers
80 views

Separate methods or single method with if statement?

I'm working on a .NET application and I'm wondering if I should use separate methods to handle the click events of two different buttons. They essentially do the same thing, just on different objects ...
4
votes
3answers
486 views

Implementing a generic/dynamic custom property system in C#

I have an architecture design problem which I think is appropriate for this site. Note that I have made an EDIT to this post below, reflecting my latest potential solution to this problem. General ...
4
votes
1answer
202 views

Wpf: Event driven vs MVVM design pattern

I'm a beginning coder and I've been working on a WPF app for several months now and struggled to implement anything in MVVM due to time constraits to learn so I coded my program the only way to knew ...
4
votes
1answer
117 views

Is there a better alternative than abusing the IDisposable pattern?

Consider the following (Microsoft-sanctioned) code: <% using (Html.Form<HomeController>(action=>action.Index())) { %> <input type="text" id="search" /> <input ...
-1
votes
1answer
276 views

Are there any scenarios where the 'Dispose Pattern' shouldn't be used on an Object which contains managed and un-managed resources?

MSDN says that to properly clean up an object which contains managed and un-managed resources, you need to implement the 'Dispose Pattern'. Given that the class implements the IDisposable interface, ...
2
votes
0answers
290 views

Why does the .NET framework have no concept of classes as first-class types?

It's well known to those familiar with the history that C# and the .NET framework started out as essentially "Delphi rewritten to feel like Java," architected by the chief developer behind Delphi, ...