Welcome to weblogs.com.pk Sign in | Join | Help

Browse by Tags

All Tags » C#   (RSS)

.NET 4: CountdownEvent

A while ago I was asked to complete a job that polls a data from many devices connected over satellite (slow and congested) links. The requirement was to poll data periodically; and somtimes while previous poll cycle was running the next poll time gets
Posted by khurram | 1 Comments
Filed under: ,

.NET 4: Barrier Class

Barrier class is newly introduced in .NET 4 and it enables the multiple tasks to cooperatively work on an algorithm in parallel through multiple phases. For instance you are polling the data from multiple data source; and this polling is multi step process.
Posted by khurram | 0 Comments
Filed under: ,

Visual Studio 2010 Beta 1

Visual Studio 2010 Beta 1 is available to try. Don't forget to download the Visual Studio 2010 and .NET Framework 4 Training Kit – May Preview Pros Further Improved JavaScript intelli-sence Work side by side with Visual Studio 2008 HTML Snippets Loads
Posted by khurram | 2 Comments
Filed under: , ,

StatSVN

I am stuck in pushing a project to its “end” this month…still few more steps to do..but we are seeing the end! I had a feeling that I am giving the most and doing the kind of work which I am not supposed to do…I wanted to confirm it statistically..so

Delegates and Lambdas

Happy Eid Melad-un-Nabi! In my last post about Delegates and Generics , we had the following delegate to play with… delegate T ComplexDelegate<S, T>(S[] values); .csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas,
Posted by khurram | 1 Comments
Filed under: , ,

Delegates and Generics

Almost all .NET developers know about delegates; its one of the feature which makes .NET distinct from other VMs…Here’s one lame example class Program { delegate double SimpleDelegate( int [] values);   static double average( int [] values) { return
Posted by khurram | 1 Comments
Filed under: , ,

Capturing Webcam Image in C# (and other .NET Langs)

I found this amazing project, name Touchless on CodePlex.com today, using which you can not only capture webcam images, but can also create some cool apps. Writing will not do the justice, so see yourself! Video: Touchless Touchless Demo is an open source
Posted by khurram | 0 Comments
Filed under: ,

Windows Forms' WebBrowser Control and JavaScript

Windows Forms' (Microsoft.NET) Web Browser Control is awesome, it exposes lot of functionality to the managed code, including the ability to call JavaScript function from managed code and to call managed code from the JavaScript...Lets walk through how
Posted by khurram | 1 Comments
Filed under: ,

BackgroundWorker and delegates

If you are developing some Windows Forms application, and doing some synchronous backend calls which is freezing your UI...Bring asynchronization with few lines of code using BackgroundWorker and delegates.. Consider this original code 1: if ( null !=
Posted by khurram | 3 Comments
Filed under: ,

Default(T)

If you are using Generics; chances are that you might be using null checking technique for the undefined value scenario. The glitch is; if <T> is value type; then check of null equality will always fail. One should use a newly added keyword; default(T)
Posted by khurram | 0 Comments
Filed under: ,

AOP :: Logging Using Spring Framework - Part 2

Now that we have our auto-magic logging system configured ; we want that the invoked method/code can log certain things; and that information is only known by the invoked code. Spring Framework setup its context and it can be used to get reference to
Posted by khurram | 0 Comments
Filed under: , ,

AOP :: Logging Using Spring Framework

Few days back I weblogged about how I used Spring Framework for .NET ’s AOP features to implement logging. Here are my notes of it; and it will show you how easy things are using Aspect Oriented Programming . Lets assume we have already implemented the
Posted by khurram | 1 Comments
Filed under: , ,