C# is a multiparadigm, managed, garbage-collected object-oriented programming language created by Microsoft in parallel with the .NET platform

learn more… | top users | synonyms

0
votes
1answer
75 views

Windows GUIs: How Long Will 'Deprecated' APIs Last? [closed]

Note I said 'deprecated' and not 'abstracted'. Back in the days of the MFC, the WinAPI wasn't deprecated because, from what I've read, the MFC merely abstracted the WinAPI. There's a difference, for a ...
12
votes
1answer
188 views

What is the proper way to suggest features to be added to the C# language?

What is the proper way to suggest features to be added to the C# language? For example, I would like to have an operator similar to ?? but for selecting the min or max values. I'd like a <? b to ...
6
votes
3answers
182 views

Object-oriented design question

I am using a class through a dll to which I do not have direct control. So in effect, I am only a client of this class. The class represents a form that can be printed, sent to clients and tracked ...
1
vote
1answer
69 views

Is it possible to integrate UDP file transfer into a .NET web application?

Background I have recently been tasked with designing a rebuild of an existing .NET web application that currently uses a third-party company to handle large file transfers (as big as 50Gb). ...
5
votes
6answers
184 views

string.format with variables vs inline variables

What are the pros/cons (if any) to using string output; int i = 10; output = string.Format("the int is {0}", i); versus string output; int i = 10; output = "the int is " + i; I have always ...
-1
votes
1answer
93 views

Advice for switch from C# to Java [closed]

I have a year of experience working in the .NET environment and the C# language. I consider myself proficient in object oriented programming in C#, have deep understanding of the SOLID principles and ...
0
votes
0answers
22 views

C# Membership.ValidateUser(Username, Password) throwing an exception [migrated]

I am trying to validate a user using the Membership.ValidateUser() method. I pass the correct username and password, and the authentical always failed. The Else section of the code is executed. I add ...
0
votes
2answers
109 views

How to solve a fundamental cloud data storage dispute?

I'm working for a company that has recently hired me to create a new version of their existing software, which is now over 12 years old. The new software is a complete re-write of the old and they ...
1
vote
3answers
85 views

Should one bind data with Eval on aspx or override ItemDataBound in code-behind?

For data bound controls (Repeater, ListView, GridView, etc.), what's the preferred way of binding data? I've seen it where people use Eval() directly on the aspx/ascx inside the data bound control to ...
12
votes
5answers
248 views

How to structure unit tests for a GUI app using C# and NUnit

I've been asked to do a small side-project to supply a simple application to one of our customers. Normally I would be working on back-end code where I have all of my testing needs figured out, and ...
4
votes
3answers
168 views

Is querying KeyValue Pairs efficient compared to two-property objects?

I'm working on a webservice and I'm returning JSON. However, I'm returning a List<KeyValuePair<string, int>>, since that's all I'm really ever going to be dealing with (property => value) ...
-3
votes
2answers
133 views

Language choice for converting application [closed]

I have a medium sized system written in Cobol which I want to convert to a more 'modern' language. The system has a lot of basic windows and calculations against data files. The programs will only ...
4
votes
3answers
159 views

How to use a MessageBox using the MVVM pattern?

I am implementing a UI application using the MVVM design-pattern. The thing is, sometimes when you detect that something is wrong with data that was inputted by the user, you'd like to notify him ...
4
votes
4answers
290 views

Best practice to query data from MS SQL Server in C Sharp?

What is the best way to query data from a MS SQL Server in C Sharp? I know that it is not good practice to have an SQL query in the code. Is the best way to create a stored procedure and call it ...
15
votes
2answers
395 views

Why is 'void' not allowed as a generic type in C#

What were the design decisions that argued in favour of void not being constructable and not being allowed as a generic type? After all it is just a special empty struct and would have avoided the ...

1 2 3 4 5 47
15 30 50 per page