(Chris Bennett) If you build many .NET applications where you need to perform regular work such as packet processing from a socket, you may have run into some of the drawbacks in the built-in System.Threading.ThreadPool. A major limitation of this class is that it is static, which means that an appl
Tag: Development
The ProfileCounter Class
(Jim Mischel) I finally got tired of writing the same update and average calculation code every time I needed a new counter, so I sat down and created a very simple class that provides the functionality.
Visual Studio 2008 code metrics tools will help keep code clean
(Ed Tittel) Code metrics are various mathematical and statistical ways to analyze source code and attempt to rank items according to various different yardsticks. Visual Studio 2008 code metrics rate a project’s classes, modules, component classes and namespaces using various measurements that attem
Silverlight.FX Effects in Depth
(Nikhil Kothari) I blogged about effects and transitions for Silverlight in the past – the first time on declaratively attaching some simple effect behaviors and the second time on using effect-enabled higher-level controls. I got comments asking more details on how this part of the Silverlight.FX w
A Sneak Peek of Visual Studio 2010 and .NET Framework 4.0
(John Peterson) Microsoft revealed quite a bit of exciting information at their PDC2008 Professional Developers Conference this year. Sprinkled in with the first real Windows 7 information and all the talk about the Azure Services Platform (Microsoft’s take on cloud computing), was some interesting
Drawing Bezier Curves in Silverlight
(Mahesh Chand) The BezierSegment object represents a cubic Bezier curve drawn between two lines. A cubit Bezier curve is defined by four points: a start point, an end point, and two control points. The BezierSegment class has three properties: Point1, Point2, and Point3, which does not include the s
A Simple Profile Timer
(Jim Mischel) It seems like I’m forever inserting profiling code into my programs. Usually I’m interested in determining how many times a particular method is called and how long it takes, on average, for the method to execute.
Dumping an Object’s State with a DynamicMethod
(Paul Kimmel) In two prior articles, I talked about the general benefit of using Reflection. With Reflection, you can write a general solution, such as dumping an object’s state, one time and it works for any object. The problem is speed. After that, I talked about writing a general solution that em
Handling AJAX Errors With jQuery
(Ben Nadel) jQuery is the most awesome javascript library that exists. Every day, I’m finding new ways to leverage it and shorter, more efficient ways to get things done. But, while most things are easy to do, the solution is not always immediately evident. One of the things that took me a good whil
LINQ to SQL Paging using GridView in C# and ASP.NET 3.5
This tutorial will show you how we can extend the LINQ to SQL Class and create methods that will allow us to page data from a SQL database. C# version.
