November 20th, 2008

Although Mono 2.0.1 has been out for some time now it will take another major upgrade for Ubuntu to actually include it. Currently Ubuntu includes Mono 1.2.6.
If you would like to work with the newer Mono version you need to compile it yourself for now. Thankfully this is easier than it sounds. The following will upgrade your Ubuntu installation but note: this does not cover MonoDevelop, which will stay at the old version.
Read the rest of this entry »
Tags: 2.01, Learn C#, mono
Posted in Beginner, Learn C# | No Comments, yet!
November 19th, 2008

Multi-tasking / multi-threaded applications have always been a bit of a nightmare to create. Different operating systems and sometimes even different compilers and class libraries tends to have their own implementations. Fortunately the .NET / C# implementation of threading is extremely straightforward and makes it simple to create a multi threaded application. In this article we look at building some very simple threaded applications. We go into how to create them, synchronize them and how we can ensure that things such as shared variables are properly protected.
Read the rest of this entry »
Tags: c-sharp, Learn C#, multi threading, Thread
Posted in Intermediate, Learn C# | No Comments, yet!
November 18th, 2008
What is a delegate and why would you want to use them?
Calling methods with parameters comes natural in programming, but what if you would like to pass the methods themselves to another method?
To give an example: You might want to set a timer and have the timer call a particular method when the time comes. To avoid having to hard code each possible action together with its own timer you might want to pass the action method in your call to the timer itself. In C# this is called delegation.
Read the rest of this entry »
Tags: c-sharp, delegate, delegation, Learn C#
Posted in Beginner, Learn C# | 1 Comment already!»
November 17th, 2008

Dozens of protocols have come and gone (does anyone even remember IPX/SPX?) but both TCP & UDP over IP survive. C# offers a good deal of libraries for handling connections both on the server and client side. Here we look at how to build a simple server in increasing steps of complexity.
Read the rest of this entry »
Tags: Learn C#, listener, sockets, tcp
Posted in Beginner, Learn C# | 10 Comments - getting there! »
November 17th, 2008
Several bits of basic system related information on the environment, working directory, memory use etc can be retrieved through the Sytem.Environment class. The class also contains functions that allow you to quickly terminate your program for when don’t want to properly clean up.
Read the rest of this entry »
Tags: environment, getenvironmentvariables, system.environment
Posted in Beginner, Learn C# | No Comments, yet!
November 15th, 2008

C# might look a lot like C++ but that doesn’t mean that everything is as it appears to be. There are some gotcha’s that can trip you up.
Read the rest of this entry »
Tags: Learn C#, refernence, value
Posted in Beginner, Learn C# | 2 Comments - getting there! »
November 15th, 2008

You heard might have heard about generics, but how do they work in C# ? And what is that <T> doing in the class definition? This article shows you the benefits of using generics, and how to implement them yourself.
Read the rest of this entry »
Tags: generics, Learn C#
Posted in Intermediate, Learn C# | No Comments, yet!
November 15th, 2008

When writing new code everything seems so obvious that there is hardly a need to code any comments. But then you get that highly tuned and several times rewritten code library the company has been using for 20+ years. Attached to it is a note asking you to recode it in C# before the weekend.
Read the rest of this entry »
Tags: commenting, Learn C#
Posted in Beginner, Learn C# | No Comments, yet!
November 14th, 2008

A little trip through memory lane and how programming has changed. Starting with the birth of C through to C#. The software world has become that little more complicated since the time share ASCII teletype systems. Chinese input, Arabic display, USB devices and gigabytes of memory are standard these days.
Read the rest of this entry »
Tags: Java, Learn C#
Posted in Beginner, Learn C# | No Comments, yet!
November 14th, 2008

Time to get going on that C#. So which road to take? Should you go the Microsoft way, or gain your stripes as a Linux guru? You can have it both ways and here I go into how to install a free C# development environment on either Windows or Linux.
Read the rest of this entry »
Posted in Beginner, Learn C# | 1 Comment already!»