The fourth part of the Parallel Programming in .NET tutorial looks at the early termination of parallel loops. Unlike sequential loops, which can be exited with the break command, there are considerations when stopping loops that run on multiple cores.
Tag: Development
General Formatter for .NET 1/4: Introduction
(Zoran Horvat) In this article we will deal with the problem of formatting. We will address the question how to build a string which represents object of unknown structure and contents. This question is opposed to typical situation in which programmer formats the string which represents object of kn
Trigger file downloads with a MVC 3 controller action
(Justin Schwartzenberger) Providing file download capability in a web application is not as clear cut as linking to a file in the file system of the application. Web browsers have a mind of their own when it comes to handling files.
How to implement SQL Caching in ASP.NET (Poll based SQL Cache dependency)?
(Sheonarayan) In this article, we are going to learn how to implement SQL Caching in ASP.NET using Poll based SQL Cache dependency. The push based SQL Cache dependency shall be covered in other article.
TFS 2010 – Edit Work Item Type Definition using Team Foundation Power Tool
(Subodh Sohoni) We began a series of articles on Customize work item type definition in TFS 2010. In the first part of this series we had seen how to use a tool WitAdmin to export the work item type definition of Bug work item and then import it back in TFS after making a small modification in it, a
How to compare dates selected in a Date Time Picker control
(Ged Mead) VB has several options that let you compare dates to check which is earlier than the other, or even if they are the same.
TreeView Control Populating with SqlDataSource
(Mayur Dighe) The article demonstrates how to populate TreeView Control using SqlDataSource at runtime in C#.NET. We can achieve intended result by simply executing SqlCommand Object either by ExecuteReader or ExecuteNonQuery method.
Experimenting With A Stateful Class For Stateful User Interface (UI) Widgets
(Ben Nadel) After going back and forth with Dan G. Switzer, II in the comments of my blog post on Finite State Machines and UI widgets, I wanted to try and factor out the “stateful” aspects of my code into some sort of reusable, lightweight framework.
Top Tips for Managing .NET Application Performance
(App Man) There are many technical articles/blogs on the web that jump straight into areas of .NET code you can instantly optimize and tune. Before we get to some of those areas, it’s good to take a step back and ask yourself, “Why am I here?”
WPF: Using Task Library to Load Data
(Mahesh Sabnis) In .NET 4.0, we have a set of new API’s to simplify the process of adding parallelism and concurrency to applications. This set of API’s is called the “Task Parallel Library (TPL)” and is located in the System.Threading and System.Threading.Tasks namespaces.
