What is .NET’s Object.GetHashCode() Used For?


Here is a great question from a visitor.

“What is the exact use of GetHashCode of an object in .net? Does it have any relation with garbage collection?”

Let’s answer the second question first. No, it has nothing to do with garbage collection.… Read the rest

iText IN ACTION – Creating and Manipulating PDF


While this isn’t specifically targeted at iTextSharp, which we’ve been covering in recent posts, this is really the closest book you are going to find on the subject.

The basics are the same.  Keep in mind that the main difference is that setPropertyName and getPropertyName methods have been changed to .NET style properties (versus Java style) where it makes sense.  Method names start with a capital letter in iTextSharp, and event wiring is a little funky (we’ll get to that later).… Read the rest

Watching Trends = Job Security


I’ve been programming for 21 years now.  Most of my career I’ve spent being on the bleeding edge.  This has helped when it came time to find work because I normally am one of the few people companies can find who have the skills they are looking for.… Read the rest

StackOverflowException – What causes this?

ka_vol1_064 Oner Yilmaz Asks:

I am using C# Êxpress developer tool. I Intend to form 3D Mesh object by an array of 60.000 items. When I reach to appr. 19.000 items, I get the error message "An unhandled exception of type ‘System.StackOverflowException’ occurred in Test.exe"
My PC has 2GB RAM.

Read the rest

.Net String Pool – Not Just For The Compiler

B03B0055 On Monday, I was corrected in my assertion that creating multiple empty strings would create multiple objects.  Turns out the compiler automatically puts all of the strings that are exactly the same in a “string pool” so that there is only ever one empty string in the entire application you’ve created.… Read the rest