Skip to main content
Filter by
Sorted by
Tagged with
11 votes
5 answers
4k views

I'm developing a C# application that uses a handful of XML files and some classes in System.Xml. A coworker insists on adding the MSXML6 redistributable to our install, along with the .NET framework ...
Brian Ensink's user avatar
  • 11.2k
46 votes
20 answers
95k views

The .NET garbage collector will eventually free up memory, but what if you want that memory back immediately? What code do you need to use in a class MyClass to call MyClass.Dispose() and free up all ...
2 votes
9 answers
2k views

Lutz Roeder's Reflector, that is. Its obfuscated. I still don't understand this. Can somebody please explain?
8 votes
7 answers
17k views

I installed VS SP1 and played around with Entity Framework. I created a schema from an existing database and tried some basic operations. Most of it went well, except the database schema update. I ...
Biri's user avatar
  • 7,211
26 votes
10 answers
7k views

I'm sure many readers on SO have used Lutz Roeder's .NET reflector to decompile their .NET code. I was amazed just how accurately our source code could be recontructed from our compiled assemblies. ...
John Sibly's user avatar
  • 23.1k
21 votes
4 answers
8k views

I am currently writing a simple, timer-based mini app in C# that performs an action n times every k seconds. I am trying to adopt a test-driven development style, so my goal is to unit-test all parts ...
Erik Öjebo's user avatar
  • 10.9k
8 votes
12 answers
876 views

I am currently architecting a small CRUD applicaton. Their database is a huge mess and will be changing frequently over the course of the next 6 months to a year. What would you recommend for my data ...
sestocker's user avatar
  • 3,532
25 votes
4 answers
5k views

Given an empty method body, will the JIT optimize out the call (I know the C# compiler won't). How would I go about finding out? What tools should I be using and where should I be looking? Since I'm ...
Karl Seguin's user avatar
  • 21.9k
69 votes
7 answers
131k views

How can I present a control to the user that allows him/her to select a directory? There doesn't seem to be any native .net controls which do this?
Orion Edwards's user avatar
5 votes
4 answers
9k views

I have a web service that queries data from this json file, but I don't want the web service to have to access the file every time. I'm thinking that maybe I can store the data somewhere else (maybe ...
Hertanto Lie's user avatar
  • 9,532
25 votes
4 answers
48k views

I've used Apache CXF to expose about ten java classes as web services. I've generated clients using CXF, Axis, and .NET. In Axis and CXF a "Service" or "Locator" is generated. From this service you ...
ScArcher2's user avatar
  • 87.5k
3 votes
2 answers
2k views

Let me try to explain what I need. I have a server that is visible from the internet. What I need is to create a ASP.NET application that get the request of a web Site and send to a internal server, ...
Jedi Master Spooky's user avatar
26 votes
3 answers
32k views

Imagine you want to animate some object on a WinForm. You setup a timer to update the state or model, and override the paint event of the Form. But from there, what's the best way to continually ...
Chris Smith's user avatar
  • 18.8k
5 votes
15 answers
4k views

When developing a desktop application in .NET, is it possible to not require the .NET Framework? Is developing software in .NET a preferred way to develop desktop applications? What is the most used ...
Bryan Roth's user avatar
  • 10.8k
10 votes
3 answers
2k views

I have been looking into IKVMing Apache's FOP project to use with our .NET app. It's a commercial product, and looking into licensing, IKVM runs into some sticky areas because of its use of GNU ...
Chris Marasti-Georg's user avatar
10 votes
6 answers
5k views

We have an SVN repository running on a Windows server, and I want to link internal documentation, feature changes, bugs and so on to code changes. We've found WebSVN to be amazingly slow - the ...
Keith's user avatar
  • 157k
9 votes
6 answers
4k views

I am in the middle of a "discussion" with a colleague about the best way to implement the data layer in a new application. One viewpoint is that the data layer should be aware of business objects (...
ZombieSheep's user avatar
5 votes
2 answers
1k views

What would be a very fast way to determine if your connectionstring lets you connect to a database? Normally a connection attempt keeps the user waiting a long time before notifying the attempt was ...
Jorrit Reedijk's user avatar
29 votes
2 answers
16k views

The Entity Framework does not support the Expression.Invoke operator. You receive the following exception when trying to use it: "The LINQ expression node type 'Invoke' is not supported in LINQ to ...
Brad Leach's user avatar
74 votes
17 answers
83k views

I have a project where I would like to generate a report export in MS Word format. The report will include images/graphs, tables, and text. What is the best way to do this? Third party tools? What ...
Schmidty's user avatar
  • 1,899
3 votes
4 answers
770 views

Consider this problem: I have a program which should fetch (let's say) 100 records from a database, and then for each one it should get updated information from a web service. There are two ways to ...
Vaibhav's user avatar
  • 11.5k
4 votes
1 answer
4k views

I have been using Environment.GetFolderPath(Environment.SpecialFolder.Desktop) to get the path to the user's desktop for ages now, but since we changed our setup here at work so we use Folder ...
littlecharva's user avatar
5 votes
12 answers
4k views

I've been tasked with updating a series of applications which are performance critical VB.NET apps that essentially just monitor and return networking statistics. I've only got three requirements: ...
eviljack's user avatar
  • 3,756
11 votes
3 answers
1k views

This should be fine seeing as the CLR hasn't actually changed? The boxes running the C# 2.0 code have had .NET 3.5 rolled out. The background is that we have a windows service (.NET 2.0 exe built ...
Kev's user avatar
  • 120k
7 votes
1 answer
3k views

What techniques do people use to "consume" services in the REST stile on .Net ? Plain http client? Related to this: many rest services are now using JSON (its tighter and faster) - so what JSON lib is ...
Michael Neale's user avatar