Top ".net" questions

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

How to get the list of all printers in computer

I need to get the list of all printers that connect to computer? How I can do it in C#, …

c# .net winforms
Why does Boolean.ToString output "True" and not "true"

true.ToString() false.toString(); Output: True False Is there a valid reason for it being "True" and not "true"? It …

c# .net boolean
BackgroundWorker vs background Thread

I have a stylistic question about the choice of background thread implementation I should use on a windows form app. …

.net winforms multithreading backgroundworker
Need to perform Wildcard (*,?, etc) search on a string using Regex

I need to perform Wildcard (*, ?, etc.) search on a string. This is what I have done: string input = "Message"; string …

c# .net regex string wildcard
Entity Framework is Too Slow. What are my options?

I have followed the "Don't Optimize Prematurely" mantra and coded up my WCF Service using Entity Framework. However, I profiled …

.net performance entity-framework orm
Why does visual studio 2012 not find my tests?

I have some tests that use the built in Microsoft.VisualStudio.TestTools.UnitTesting, but can not get them to run. …

c# .net visual-studio unit-testing
HTTP 404 when accessing .svc file in IIS

I recently created a WCF service that works fine when tested from Visual Studio 2008. but when I deploy the project …

c# .net wcf
What does MissingManifestResourceException mean and how to fix it?

The situation: I have a class library, called RT.Servers, containing a few resources (of type byte[], but I don't …

c# .net resources manifest culture
C# windows application Event: CLR20r3 on application start

I created a C# application and installed it on my test box. My app works perfect on my dev box, …

c# .net file-not-found
How to convert DataTable to class Object?

I have already developed an application which returns DataTable everywhere. Now my client wants to convert (use some part using …

c# asp.net .net linq datatable