Problem : I want to be able to project to another type when querying MongoDB using the C# SDK. For […]
WPF DotNET Application will run in debug mode, but .EXE will not run
Problem : I wrote a WPF application in C# using VS 2010. The application will run fine in debug mode […]
Yes/No message box always returns yes – VB.Net
Problem : I was experimenting with message boxes, and tried a simple yes/no messagebox So I wrote this simple piece […]
How do I use a C++ library from C# and .NET?
Problem : My question is closely related to how a DLL exports C++ classes and generic methods (wrt C++ language […]
Why compiled lambda build over Expression.Call is slightly slower than delegate that should do the same?
Problem : Why compiled lambda build over Expression.Call is slightly slower than delegate that should do the same? And how […]
Data Layer Best Practices
Problem : I am in the middle of a “discussion” with a colleague about the best way to implement the […]
Visual Studio: Is there a way to collapse all items of Solution Explorer?
Problem : I know that I can use Arrow Keys to collapse items of solution explorer one by one, but […]
Get supported image formats from BitmapImage
Problem : How can I get a list of image formats supported by System.Windows.Media.Imaging.BitmapImage? I am writing a simple image […]
Is this lock-free .NET queue thread safe?
Problem : My question is, is the class included below for a single-reader single-writer queue class thread-safe? This kind of […]
Can we get the UAC prompt to show only once?
Problem : Is there a way for an app to present the user with the UAC prompt only once, upon […]