Problem : I have a generic collection of type MyImageClass, and MyImageClass has an boolean property “IsProfile”. I want to […]
Tag: c#
Why use ThreadStart?
Problem : Can somebody please clarify why we use ThreadStart? new Thread (new ThreadStart (Update)).Start(); -Versus- new Thread (Update).Start(); // […]
Allow multi-select in a .NET TreeView
Problem : I’m stuck in .NET 2.0 Windows Forms. It doesn’t look like the ability to select multiple nodes exists […]
How to use Moq to mock up the StackExchange.Redis ConnectionMultiplexer class?
Problem : I am working to mock up behaviors related to the StackExchange.Redis library, but can’t figure out how to […]
ASP.NET MVC Custom View Routing
Problem : Our solution hierarchy is as follows: ControllerCategoryView Ex: ControllersDataAnalysisDataRetrieve Now I’d like to map the routing so that […]
Cleanly interrupt HttpListener’s BeginGetContext method
Problem : I am using a HttpListener and using BeginGetContext to get my context object. I want to cleanly shut […]
Could .NET be parsed and evaluated at runtime
Problem : I thought it would be fun if I could write vb.net or c# code at runtime and the […]
thread get 100% CPU very fast
Problem : I am implementing a very basic thread in C#: private Thread listenThread; public void startParser() { this.listenThread = […]
Double ToString – No Scientific Notation [duplicate]
Problem : This question already has answers here: Double to string conversion without scientific notation (18 answers) Closed 9 years […]
Portable class library equivalent of Dispatcher.Invoke or Dispatcher.RunAsync
Problem : In .NET, Windows 8 and Windows Phone 7 I have code similar to this: public static void InvokeIfRequired(this […]