Questions tagged [.net]

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++.

Filter by
Sorted by
Tagged with
-1
votes
1answer
713 views

Designing XML - confused between attributes and elements [closed]

I have to design an xml structure to set standard data exchange with my client. We deal with payments and its related data. At now, my XML data looks like this: <PAYMENTS> <CURRENCY>...
-1
votes
2answers
464 views

Is code pruning related to obfuscation?

From my research, many obfuscation/optimization packages include a feature called pruning where the software will remove dead code during processing. The following packages include both obfuscation ...
-1
votes
1answer
84 views

What am I supposed to take away from the term Routed Events?

I use events all the time, I cheat and use autocomplete in Visual Studio. Object.closing += [tab] button. Put something in the autogenerated function. Some people like to emphasize the "routed" ...
-1
votes
1answer
77 views

Should Specification Patterns return IEnumerable, IQueryable, or Expression?

We are implementing Specification Patterns with Domain Driven Design. Company architect also wants us to utilize Generic repository (not my choice). Currently require specification Pattern for Filter ...
-1
votes
1answer
442 views

Strategy pattern with Async c#

My question is public interface IFoo { void HandleRequest(int i); } public class Class1 : IFoo { public void HandleRequest(int i) { if(i == 1) // just for example { ...
-1
votes
2answers
766 views

Creating an ASP.Net MVC web application that can work on different operating systems

I have been developing and deploying many ASP.Net MVC web applications under Windows Server 2008 R2 & Windows Server 2012 R2, and I used IIS 7 & IIS 8. At the same time I know that I can ...
-1
votes
1answer
131 views

.net Windows app in a web page [closed]

I am developing a feature related to Microsoft Outlook which has support only for Windows library. However, I have to put this into a web page for the users. In the process of consuming the windows ...
-1
votes
1answer
699 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, ...
-1
votes
1answer
249 views

Good library for combining .net stack traces [closed]

I currently report my production exceptions to a mysql database, where they have been collecting dust for the most part. The problem I faced is grouping the stack traces. I would like to be able to ...
-1
votes
1answer
200 views

What are pattern and practices or frameworks for Managed Extensibility Framework? [closed]

Are there any frameworks for using MEF, for example for WPF application there are number of frameworks to save time, but what is there for MEF? are we to start every MEF application from scratch or is ...
-1
votes
1answer
530 views

Why are we using mutable collections but immutable strings

In three popular platforms I'm familar with(.NET, java, python) strings are immutable but lists are by default mutable. In all languages there is some functional support(linq, streams, list ...
-1
votes
1answer
83 views

.NET Sort concurrent requests into a queue

I asked this at Stack Overflow but seeing as it wasn't so much a programming issue as a theory issue it wasn't well received. I have a program that issues a unique ascending code every time one is ...
-1
votes
1answer
543 views

Is this a design pattern?

I have following C# code. It helped me to avoid some code repetition in a good way. The ExecuteQueryGenericApproach<T> method receives a Func generic delegate as argument. The delegated method ...
-1
votes
2answers
2k views

SQL Server: When to use SSIS vs T-SQL for ETL Tasks [closed]

When should I use one versus the other? For instance, let's say I have 20 comma delimited, denormalized text files and I want to transform the data and load it into normalized SQL Server tables.
-1
votes
1answer
883 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 ...
-1
votes
1answer
607 views

Winform User Control on ASP?

I wrote a C# Winform User Control as follows when Executable is Run: My question is how we can use this Winform C# user control in one ASP Page. I know about WEB User Control and using in ASP but ...
-1
votes
1answer
138 views

Which file format should I use as an alternative to my current Excel worksheet? [closed]

My .NET application does its work and then creates a report (an Excel worksheet). That report contains thousands of short text strings [KEY - VALUE]. So Excel worksheets suites very well, one column ...
-2
votes
2answers
782 views

How do I tell the cases when it's worth to use LINQ?

Many things in LINQ can be accomplished without the library. But for some scenarios, LINQ is most appropriate. Examples are: SELECT - https://stackoverflow.com/questions/11883262/wrapping-list-...
-2
votes
2answers
325 views

What does it mean to “wrap” a stored procedure?

My manager has asked me to "just wrap the stored procedure". The requirements are to create a microservice that will do the following: Accept parameters from the user. Pass those parameters to the ...
-2
votes
1answer
396 views

Does the .NET framework violate SOLID principles? [closed]

I see some classes in the .net framework that support reading and writing, saving and loading, classes whose main responsibility is not them, for instance the Stream classes and the XML Dom/XLinq ...
-2
votes
1answer
151 views

How's .NET multi-platform approach different than Java's back in the days? [closed]

TL;DR How is the new .NET approach to being a multi platform framework better than what Java did long ago? What are the key differences in the implementation? What are the advantages and ...
-2
votes
1answer
232 views

How to implement HTTP PUT correctly

I'm really looking for one good example how to PUT operations should be implemented correctly. What I understood until now: The operation must be idempotent When the resource doesn't exists it will ...
-2
votes
1answer
482 views

Is it a bad practice to quit a company only to begin as a consultant? [closed]

Like the title says; is it a bad practice to quit a company after a few years, only to begin as a consultant for the same 'customer'? I've been lucky enough to come in to a company in the oil ...
-2
votes
1answer
228 views

Is it possible to access .NET APIs with JRuby? [closed]

I know that JRuby can access COM APIs, but can it interface with .NET?
-2
votes
1answer
420 views

Shared classes between namespaces, how to distribute them?

Some time ago I read from this book that namespaces inside libraries should be distributed in a way that inner namespaces have more concrete classes than their parent namespaces. We can find an ...
-2
votes
1answer
286 views

Can I use DI with client of Abstract Factory pattern c#

Let's say I have something like this: switch(i) { case 1: new Class1();break; case 2: new Class2();break; } So what's the best practices of doing this if in class where I placed ...
-2
votes
1answer
58 views

What is the best approach to find elements in collection that fullfill scenario

I have a collection of people. Each person have rank (A, B, C, D where A highest and D lowest) and set of skills (SkillA, SkillB, SkillC, SkillD) defined. I also have a set of requirements - for ...
-2
votes
1answer
160 views

What changes in .NET software architecture have taken place in the past couple of years? [closed]

I've been away from hands on development work for the past couple of years and focusing more on delivery management. I'm looking to get a couple of new projects ASP.NET MVC apps off the group and I'm ...
-2
votes
3answers
164 views

With libraries available, should programmers also learn the old way of writting the same things? [duplicate]

With pre written programs available, needing just editing, should programmers also learn writing them from scratch?
-2
votes
1answer
394 views

SpecFlow/Cucumber - Documenting available steps [closed]

Our company is looking at implementing BDD in our .NET application. Specifically, SpecFlow. We can foresee a large number of common steps being created ('Given a customer', etc), so what methods have ...
-2
votes
1answer
17 views

Migration Of Demo Version Projects to Live Version in .Net MVC Applications

I have an application which is currently used by clients. So based on the feedback from the client, normally we are fixing bugs in a live application.Parallel I am adding new modules to demo projects....
-3
votes
2answers
1k views

Make PHP code run on .net? [closed]

I can write PHP application in linux platform. However, I getting a request to explore the idea to run PHP application into .NET. I have zero .NET knowledge. So wondering, is it possible? Is it ...
-3
votes
1answer
307 views

Reinventing the wheel, or the technology that drives it? [closed]

I recently asked a question on StackOverflow that was related to string splitting and pattern matching in .NET. Some beady eyed developers that viewed the question said: "It looks like you're trying ...
-3
votes
3answers
258 views

Is there inifinite list in c#? [closed]

I want to find Haskell's analogue of infinite list in c# language. I want to use any possible interfaces for such list, like these: IEnumerable ICollection IList
-3
votes
1answer
97 views

Microsoft Dev Centre accounts [closed]

Looks like Microsoft is offering a special offer of 95% of the yearly subscription for the Phone Dev Centre (I didn't say anything about desperate). What I was wondering is do you need a seperate ...
-3
votes
1answer
59 views

Convention for exception argument order [closed]

Just a quick question about a design pattern for creating custom exceptions. The question is more about the order of parameters. If you can specify more data in the exception, should the parameter for ...
-3
votes
1answer
180 views

What is my problem with third party tools and tools suggested by coworkers or friends? [closed]

I am a 4+ years experienced C#, ASP.NET MVC5, Flex, Actionscript, Html, css, jquery, php developer. I have a passion for developing and I'm not scared about learning new things. In fact I read ...
-3
votes
2answers
332 views

C#. Pattern for dynamic report creation

This is a simplified example, the actual problem has more reports and data points that are requested. Also, more reports could be added in the future so I would like to have something "smart" and ...
-3
votes
1answer
181 views

What is structure of versioning process?

How should be represents process of versioning in developer team? Suppose that we have CI system, and we want start versioning our software. If we speak about semver, then major and minor version ...
-4
votes
3answers
2k views

Save flags in an int32 [closed]

Unity3d PlayerPrefs only allow saving certain types - string, float, and int32. Since int is composed of 32 bits, it should be able to store 32 flags or a bool[] of length 32. So far, I've thought ...
-4
votes
2answers
3k views

Reliable device/browser/OS detection [closed]

Is there some reliable way to detect device/browser/OS of web page visitors except using the user agent string? This is not for rendering/functionality of the web page/application, but only for ...
-5
votes
1answer
282 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 ...
-9
votes
1answer
517 views

How does code coverage work? [closed]

Specifically, what is contained inside code coverage data (.nccov or xml file) and how is an html report generated by this? Does the coverage data not include the actual percentage of code covered? Is ...