how-to

.NET Synchronised Dictionary

In .NET 2.0 and above the SyncRoot was removed from the Dictionary and Hastable classes which meant you can't create thread-safe versions of these anymore....

0 replies - 2563 views - 06/24/08 by Schalk Neethling in Tips and Tricks

.NET LINQ to MSI - Part 1 - Interop

Without any physical data access layer, there's no way to build abstractions on top of it. So, in this part of this series we'll take a look at some very...

0 replies - 1796 views - 06/24/08 by bdesmet in News

.NET WeakReference: GC knows the Best

When I first read about weak references in .NET more than 5 years ago, my first thought was to use it for Caching. The concept was already present in Java...

1 replies - 2237 views - 06/23/08 by raasiel in News

Dll Heaven: Multiple Versions One Assembly

Everyone wants their application to be backward compatible and if the application is based on a plug-in based architecture then such a feature can be a nice...

0 replies - 2039 views - 06/21/08 by raasiel in News

Stylize Standard WPF Tabs Into Aqua Gel

I was making this WPF based application on weekends and wanted it to have a gel like look. I did not want to create a new control instead I wanted to make sure...

0 replies - 6853 views - 06/20/08 by raasiel in News

ASP.NET MVC Rocks the iPhone

With much fanfare Apple announced the availability of the iPhone SDK. I downloaded it and someday plan to play around with it, though with the SDK already...

3 replies - 3630 views - 06/19/08 by Aaron Lerch in News

ASP.NET - Preventing SQL Injection Attacks

Consider a simple web application that requires user input in some fields, lets say some search box. Suppose a user types the following string in...

0 replies - 14153 views - 06/18/08 by Schalk Neethling in News

Another Use for C# Using

If you are a C# developer you're familiar with the using directive.  It appears at the top of every one of your class files informing the compiler what...

0 replies - 5726 views - 06/16/08 by Schalk Neethling in News

Object Oriented JavaScript - Understanding Scope

When you think of the keyword this you probably assume it refers to the current instance of the class. This is true for most object oriented languages like C#...

1 replies - 2813 views - 06/11/08 by Justin Bezanson in News

Single WCF Generic Endpoint for One-Way and Request-Reply Call Forwarding

Implementing a WCF forwarding router consists of providing an endpoint with a generic contract which accepts untyped messages.  These messages can then be...

1 replies - 2809 views - 06/11/08 by sashag in News

Linq to SQL with WCF in a Multi Tiered Environment – Part 1

In many places, forums, blogs, or techy talks with some colleagues I hear some ongoing urban legends about Linq to SQL I came across: You can not implement...

4 replies - 2305 views - 06/10/08 by sidarok in News

.NET Memory control : Use GCHandle to pin down the objects

In the .NET framework memory control is mostly autonomous and is controlled by the CLR. Although in managed languages we do not care much about controlling...

0 replies - 4320 views - 06/10/08 by raasiel in News

Traversing XML in .NET

If you ever need to traverse each xml element in an xml document , you may want to implement your own XmlEnumerable. I've had some issues with the .NET XML API...

0 replies - 1438 views - 06/09/08 by Schalk Neethling in News

Propagating the ActivityId to a WCF service

In case you don't already know, the ActivityId is something we use to correlate trace events when logging so we know which 'start' goes with which 'stop'...

0 replies - 798 views - 06/07/08 by Josh Twist in News

Object Oriented Programming with JavaScript

I’ve wanted to move towards programming in C# for a while, and it seems like Silverlight 2 is giving me a great reason to make the time to learn it. In the...

0 replies - 2242 views - 06/07/08 by Schalk Neethling in News