Skip to content
David Cumps
Basic C# Examples

Basic C# Examples

Originally published on my old blog at cumps.be on February 24, 2004.

I was thinking last night, all posts on weblogs.asp.net are great, and made by all those smart people. But why is it that my fellow students hardly read them? Or why don’t you hear them talk about them a lot?

Some of my possible conclusions were:

  • It’s too hard, most of the posts on weblogs.asp.net require background or understanding, which we as students don’t have that much yet.
  • No real basic examples. There are snippets, there is a lot of code being posted there, but the target audience isn’t the beginning programmer, we mostly write for people who already know a lot.

And because of that, and because I want to raise interest among the people I know, I decided to ask them for questions they had about C#, and try to answer them by example.

I’m gathering subjects to write on, very basic subjects, appealing to students as well. And I’ll try to create an application that answers their question and provides code they could extend.

Hopefully I can keep this up, because I’m learning a lot from it as well. It helps you to think of subjects you wouldn’t have thought of otherwise. And I have to check out docs and examples as well to write an article about it from scratch.

The first article is about ‘How to get on IRC with C#’. I created a basic Console IRC Bot along with some comments. The example uses TCP connections, streams and events. Source code is provided as well.

Later articles in this series: Non-Rectangular Form, C# Script and Associating your program with every file.

I hope other students like the idea… (not only students by the way, everyone can use samples!)

You May Also Like

A Console IRC Bot

A Console IRC Bot

Getting on IRC with C#: a console bot that connects, logs in, joins a channel and reacts to server and user commands.