csharp
-
TPL Task Parrallel Library .net 4.0 parallel programming multi thread threading task queue user work item
References http://msdn.microsoft.com/en-us/library/dd460705.aspx (added 20121023 good comprehensive resource with illustrative examples) http://www.codeproject.com/Articles/362996/Multi-core-programming-using-Task-Parallel-Library http://www.codeproject.com/KB/threads/ParallelTasks.aspx Optimize Managed Code For Multi-Core Machines http://msdn.microsoft.com/en-us/magazine/cc163340.aspx good blog http://www.codethinked.com/net-40-and-systemthreadingtasks queueuserworkitem http://msdn.microsoft.com/en-us/library/4yd16hza.aspx threadpool class http://msdn.microsoft.com/en-us/library/y5htx827.aspx task class http://msdn.microsoft.com/en-us/library/system.threading.tasks.task.aspx task parrallelism http://msdn.microsoft.com/en-us/library/dd537609.aspx How to: Use Parallel.Invoke to Execute Parallel… Continue reading
-
C# Event Handlers and Delegates in ASP .Net with Web User Controls
This article should help as a general how to on event handlers and delegates in C# as well as propose a different way to handle cross page methods in your ASP .Net website from a web user control or other… Continue reading
-
The type initializer threw an exception
In case this error seems to appear out of thin air in your application, this is usually an indication that a variable declared in one of your classes (likely a static class) is having trouble getting or setting it’s value.… Continue reading
-
IIF in C#
I always find myself referencing my other projects for this one when I jump between languages, so decided to toss it on the web. Both examples are in the context of ASP .Net, but syntax also applies np to Winforms… Continue reading
-
Serialize and Deserialize classes and objects in .Net
Serialization is a powerful tool and a major factor in many intermediate development technologies such as webservices. Simply call “SerializeObject” and pass in the class name of your object for the “T” parameters, and your object will be serialized as… Continue reading
-
Quick Silverlight References
Most of the links below are relatively introductory, but they do serve as a quick refresher if it has been awhile since you have worked with Silverlight. Though not all of the links are specific to SL4, I would recommend… Continue reading
-
Bind Control to an Object in Windows Forms
Simple solution for basic binding in Windows Forms app. This would NOT be recommended if you are using ASP .Net, Silverlight, WCF, RIA or any other services to retrieve the data as these project types have much better support for… Continue reading
-
Programmatically fire an event handler in ASP .NET
I recently came across a situation which any web application developer may face where an assembly reference containing the code-behind for each ASPX page was deprecated and the original source code was no longer available. Since this code also includes… Continue reading