CodeProject

TwitterFacebook
Get flash to fully experience Pearltrees

Task Parallel Library : 2 of n - CodeProject

http://www.codeproject.com/Articles/159533/Task-Parallel-Library-2-of-n This time we are going to be looking at how to use a TPL concept called Continuations. Which is how we might run something after a Task that does something with a return value from a Task. I am aware that some folk will simply read this article and state that it is similar to what is currently available on MSDN, and I in part agree with that; however, there are several reasons I have chosen to still take on the task of writing up these articles, which are as follows: It will only really be the first couple of articles which show similar ideas to MSDN; after that, I feel the material I will get into will not be on MSDN, and will be the result of some TPL research on my behalf, which I will be outlining in the article(s), so you will benefit from my research which you can just read...aye, nice.
Introduction In this article, I am going to discuss some important facts which might be unknown to most developers. I am going to discuss about three different topics which are related to C# and are more helpful when building your application. There are a number of articles and posts that say that StringBuilder is more efficient because it contains a mutable string buffer. .NET Strings are immutable, which is the reason why a new String object is created every time we alter it (insert, append, remove, etc.). In the following section, I am going to explain this in more detail to give beginners a clear view about this fact. I wrote the following code, and as you can see, I have defined a String variable and a StringBuilder variable. http://www.codeproject.com/Articles/158902/Some-Useful-Features-of-C

Some Useful Features of C# - CodeProject

Introduction We've all used FolderBrowserDialog and its precursor SHBrowseForFolder . While these common controls are very useful in stock form, they never quite seem to do exactly what you want - there's always some UI artifact that you really don't want. And, like many things in .NET, the managed API seems to be a thin wrapper around the unmanaged API, and the managed API therefore inherits all the quirks. Neither of which was the exact solution I sought, but both provided invaluable starting points. http://www.codeproject.com/Articles/159352/FolderBrowserDialogEx-A-C-customization-of-FolderB

FolderBrowserDialogEx: A C# customization of FolderBrowserDialog - CodeProject

A Silverlight Sample Built with Self-Tracking Entities and WCF Services - Part 3 - CodeProject

This article is the third part of a series on developing a Silverlight business application using Self-tracking Entities, WCF Services, WIF, MVVM Light Toolkit, MEF, and T4 Templates. In this third part, we will focus on data validation with self-tracking entities. The purpose of using data validation is to make sure that any data is validated before being stored in the database. It provides users with necessary guidance during their data input tasks and is an important part of any Silverlight LOB application. http://www.codeproject.com/Articles/158552/A-Silverlight-Sample-Built-with-Self-Tracking-Enti

Prism for Silverlight/MEF in Easy Samples. Part 3 - Communication between the Modules - CodeProject

Introduction This is the 3 rd (and last) part of "Prism for Silverlight/MEF in Easy Samples" Trilogy. It describes communications between different modules within the application. http://www.codeproject.com/Articles/159887/Prism-for-Silverlight-MEF-in-Easy-Samples-Part-3-C
http://www.codeproject.com/Articles/154736/Data-and-Command-Bindings-for-Silverlight-MVVM-App Introduction This article summarizes two utility classes used for data and command bindings in Silverlight MVVM applications and demonstrates how to use the two classes with a running example. Background MVVM design pattern is now the default design pattern for building Silverlight applications. Data binding and Command binding are the fundamental building blocks when developing MVVM applications in Silverlight.

Data and Command Bindings for Silverlight MVVM Applications - CodeProject

Resetting a View Model in WPF MVVM applications without code-behind in the view - CodeProject

http://www.codeproject.com/Articles/158591/Resetting-a-View-Model-in-WPF-MVVM-applications-wi Introduction The core idea behind this code and article is to provide an uncomplicated approach to reset a view-model without having to adjust DataContext references in views. It all started with an MSDN forum thread where someone asked if there was an easy way to clear a view model. He felt that clearing every property in the view model would be too cumbersome and that it would be simpler if he could have a Cancel button that would reset the DataContext to a new view model instance.

Task Parallel Library : 1 of n - CodeProject

http://www.codeproject.com/Articles/152765/Task-Parallel-Library-1-of-n Introduction I recall the first time I created a UI in .NET that had to go and get some data from a database, and the amount of data that I fetched was way larger in production that my code assumed it would be in my dumbed down test setup. Guess what happened... my UI froze as soon as it used real data. The reason for this is that the UI thread (i.e., the only thread in my naive UI) was being used to carry out this fetching of data from the backend database. Yikes!
Introduction This article discusses how to apply custom animation to an already existing WPF layout by extending classes such as Grid , StackPanel , DockPanel or WrapPanel . Or indeed any other WPF control that hosts other UIElement s. An important part of this implementation is that is should be able to extend any existing panel and cope with any child controls of that panel. By animate in this context, I'm referring to the process of having all the components of a panel move to their positions and change their size over a time. This is a VB.NET article so all the snippets will be in VB.NET , but for completeness I've included both a C# and a VB.NET solution with roughly equivalent implementations. http://www.codeproject.com/Articles/153554/Animated-WPF-Panels

Animated WPF Panels - CodeProject

Introduction The first question is what is Synchronized Distributed System? I'm not sure of the official term. I named it from my understanding. http://www.codeproject.com/Tips/155435/How-to-implement-subcription-based-on-WCF

How to implement subcription based on WCF - CodeProject

Code Contracts in .NET 4.0 & its Internals - CodeProject

After I have introduced the Internals of Exception handling , I mentioned that I will cover some of the features that are coming as an improvement to it. Code Contract in .NET 4.0 is one among them. In this post, I will cover how you could use code contract in your application and also take the way through to its internals later on. One can argue with me that code contract is a part of unit testing and might be included as a part of .NET test projects, but according to me, it is not restricted only for testing frameworks, you could use it more likely for your own libraries so that you could have better code handling and also some way of separation between the validation logic for which the library is built in and how you would react with the outside world.