Archives for the '.NET' Category

Bug in SgmlReader

Update 20 April 2010
SgmlReader 1.8.6 has this problem fixed.
Original post
Chris Lovett of Microsoft wrote SgmlReader 1.7 and has kindly shared it with the world. What does it do? In his own words:

An XmlReader implementation for loading SGML (including HTML) converting it to well formed XML, by adding missing quotes, empty attribute values, ignoring duplicate attributes, […]

26 August 2008 | .NET, C#, ASP.NET | No Comments

C# Hidden Danger #2: GetHashCode()

Suppose you have an address book saved as a CSV text file or an XML file. You would like to create a program that loads the address book into memory, and return the contact details of a person, given the name.
There are a number of data structures from which to choose: array, ArrayList, List<T>, Hashtable, […]

15 August 2008 | .NET, Software engineering, C# | 1 Comment

C# Hidden Danger #1: The const Keyword

Declaring a constant with the const keyword makes it a compile-time constant. In the generated IL, all references to a compile-time constant will be replaced by its actual value. Now suppose that a compile-time constant is declared in one assembly and referenced in other assemblies. If the definition of the constant ever needs to be […]

11 August 2008 | .NET, Software engineering, C# | 4 Comments

My Take on Visual Studio 2008

I just finished five days of Visual Studio 2005 (.NET 2.0) training, with a day of Visual Studio 2008 (.NET 3.5) sprinkled on. My take on VS2008 are as follows:
First, AJAX integration is very tight. I have actually done AJAX the manual way before (with PHP) and I appreciate how much coding VS has […]

26 February 2008 | .NET, Software engineering, C# | No Comments

Difference Between C# and VB

This is a beautiful interview trivia question: What is the major difference between C# and VB?
Answer: In C# you can write “unsafe” code, i.e., code involving pointers, whereas in VB you cannot.
Update 20 February 2008
Also, VB does not have anonymous methods.

19 February 2008 | .NET, Software engineering, C# | No Comments

idea rumah