Top ".net" questions

Do NOT use for questions about .NET Core - use [.net-core] instead.

How do I decompile a .NET EXE into readable C# source code?

I wrote a C# application for a client a couple of years ago, but I no longer have the source …

c# .net reverse-engineering decompiling
Calculate the execution time of a method

Possible Duplicate: How do I measure how long a function is running? I have an I/O time-taking method which …

c# .net timer io stopwatch
Best way to parse command line arguments in C#?

When building console applications that take parameters, you can use the arguments passed to Main(string[] args). In the past …

c# .net command-line-arguments
IOException: The process cannot access the file 'file path' because it is being used by another process

I have some code and when it executes, it throws a IOException, saying that The process cannot access the file …

c# .net language-agnostic ioexception
Questions every good .NET developer should be able to answer?

My company is about to hire .NET developers. We work on a variety of .NET platforms: ASP.NET, Compact Framework, …

.net
Access to the path is denied

I'm trying to save an image to a folder in .NET C# but I get this exception: Access to the …

c# .net iis path
The name 'ConfigurationManager' does not exist in the current context

I am trying to access connectionStrings from the config file. The code is ASP.NET + C#. I have added System.…

c# .net visual-studio visual-studio-2008
Converting String To Float in C#

I am converting a string like "41.00027357629127", and I am using; Convert.ToSingle("41.00027357629127"); or float.Parse("41.00027357629127"); These methods return 4.10002732E+15. When …

c# .net string floating-point type-conversion
An existing connection was forcibly closed by the remote host

I am working with a commercial application which is throwing a SocketException with the message, An existing connection was forcibly …

c# .net networking sockets
C# Equivalent of SQL Server DataTypes

For the following SQL Server datatypes, what would be the corresponding datatype in C#? Exact Numerics bigint numeric bit smallint …

c# .net sql-server