Tag Archives: class

C# HTTP Request

A few years ago I’ve written an article on how to perform a synchronous HTTP request using Qt 4.2. I I’ve seen this article today and since now I’m mostly working with C# i was wandering how fast can i do the same thing in c#. After very few minutes I’ve managed to came up with this:
using System;
using System.Net;
using System.IO;

class Program
{
static… read full article

A few things from C++ that i miss in C#

The last 6-7 months i’ve been working mostly with C# and to be honest I’ve grown found to it. It has really nice features like lambda expressions,   auto properties, extension methods, LINQ witch can really speed up things in terms development time.

Still … there are some things from C++ that i now miss: Templates ( as in true generics ) , const correctness, deterministic destruction, static initialization and… read full article

C# Extension Methods

After a few months I’ve enjoyed the newly ( or not ) added extension methods in 3.0 yesterday i discovered that one of the assumptions I’ve made about them was false. My assumption was that if the instance on witch you call an extension method is NULL you would get a NullReferenceException. Turns out it’s not the case and you can call the extension method on a null reference… read full article

ASP.NET 2.0 and SQLServer 2000 Transactions

The new ADO.NET 2.0 and it’s typed datasets and table adapters are very useful tools for creating a DAL in you application. Still when working with SQLServer 2000 implementing transactions is a bit tricky. … read full article

Virtual Destructors

When do you need to declare a destructor virtual?

Recently I’ve been involved in a thread on qt-interest mailing list about virtual destructors. A few people there suggested that you should always make the destructor of your class virtual. I strongly disagree. … read full article