Problem : Is there a way to change the connection string of a DataBase object in Enterprise Library at runtime? […]
Category: .Net Solution
Build errors when multi-targeting in csproj file
Problem : I’m trying to build a class library that multi-targets both .NET 4.5.1 and .NET Standard 1.3. According to […]
sorting a generic list of doubles
Problem : I have a generic list of doubles that show on the page like this: 1199.17 1199.17 1161.67 1161.67 […]
SemaphoreSlim with dynamic maxCount
Problem : I’m facing a problem where I need to limit the number of calls to another web server. It […]
Under what conditions can a thread enter a lock (Monitor) region more than once concurrently?
Problem : (question revised): So far, the answers all include a single thread re-entering the lock region linearly, through things […]
A generic error occurred in GDI+ at System.Drawing.Image.Save
Problem : Exception: A generic error occurred in GDI+. at System.Drawing.Image.Save(String filename, ImageCodecInfo encoder, EncoderParameters encoderParams) at System.Drawing.Image.Save(String filename, ImageFormat […]
Is there any way to convert .dll file to .cs files [duplicate]
Problem : This question already has answers here: How to decompile a .dll file created in VS.net (6 answers) Closed […]
Open Program from C# – also specifying the working directory
Problem : I have some code that launches an external program, although is it possible to specify the working directory, […]
Metro app – ListView – how to alternate background colour of ListViewItems
Problem : In my Metro style app for Windows 8, I’m binding a Listview to an ObservableCollection and I would […]
Possible to pass null from Powershell to a .Net API that expects a string?
Problem : API: namespace ClassLibrary1 { public class Class1 { public static string Test(string input) { if (input == null) […]