340,756 questions
11
votes
5
answers
4k
views
Does System.Xml use MSXML?
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 ...
46
votes
20
answers
95k
views
How to dispose a class in .net?
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
Have you ever reflected Reflector? [closed]
Lutz Roeder's Reflector, that is.
Its obfuscated.
I still don't understand this. Can somebody please explain?
8
votes
7
answers
17k
views
Update database schema in Entity Framework
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 ...
26
votes
10
answers
7k
views
Should I be worried about obfuscating my .NET code? [closed]
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.
...
21
votes
4
answers
8k
views
Unit testing a timer based application?
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 ...
8
votes
12
answers
876
views
Best .NET Solution for Frequently Changed Database [closed]
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 ...
25
votes
4
answers
5k
views
In .NET, will empty method calls be optimized out?
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 ...
69
votes
7
answers
131k
views
Browse for a directory in C#
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?
5
votes
4
answers
9k
views
best way to persist data in .NET Web Service
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 ...
25
votes
4
answers
48k
views
What is the difference between an endpoint, a service, and a port when working with webservices?
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 ...
3
votes
2
answers
2k
views
ASP.NET Proxy Application
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, ...
26
votes
3
answers
32k
views
Simple animation in WinForms
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 ...
5
votes
15
answers
4k
views
.NET Framework dependency
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 ...
10
votes
3
answers
2k
views
IKVM and Licensing
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 ...
10
votes
6
answers
5k
views
Can you recommend a good .NET web-based repository browser for SVN? [closed]
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 ...
9
votes
6
answers
4k
views
Data Layer Best Practices
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 (...
5
votes
2
answers
1k
views
Fast database access test from .NET
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 ...
29
votes
2
answers
16k
views
Expression.Invoke in Entity Framework?
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 ...
74
votes
17
answers
83k
views
How can a Word document be created in C#? [closed]
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 ...
3
votes
4
answers
770
views
Multithreading Design Best Practice
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 ...
4
votes
1
answer
4k
views
.NET: How do I find the Desktop path when Folder Redirection is on?
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 ...
5
votes
12
answers
4k
views
Performance critical GUI application (windows,linux)
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: ...
11
votes
3
answers
1k
views
C# 2.0 code consuming assemblies compiled with C# 3.0
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 ...
7
votes
1
answer
3k
views
Best way to write a RESTful service "client" in .Net? [closed]
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 ...