Monthly Archives: February 2005

for and foreach loops – Compiler Optimizations Regarding Bounds Checking

Last night I listened to most of Brad Adams presentation on Rich Type System as part of his series on Designing .NET Libraries.  All the presentations can be downloaded off-line by the way. He briefly mentioned some of the optimizations … Continue reading 

Posted in C# | 1 Comment

Implementing IComparable for Sorting Custom Objects

Update 3/6/2005: Check out Implementing IComparer for Sorting Custom Objects In a couple of other posts Object Identity vs. Object Equality – Overriding System.Object.Equals(Object obj) Overriding System.Object.ToString() and Implementing IFormattable I mentioned the usefulness of overriding Object’s virtual methods of … Continue reading 

Posted in C# | 1 Comment

Boxing – The Conversion of Value Types to Reference Types – A Quick Visit

Raymond will be doing a more thorough examination of boxing and unboxing in the near future, so I am just going to do a quick visit (very quick) per Brendan’s comments in my post: Overriding System.Object.ToString() and Implementing IFormattable.  Check the comments for details. For a … Continue reading 

Posted in C# | 3 Comments

Overriding System.Object.ToString() and Implementing IFormattable

A couple of days ago I discussed overriding System.Object.Equals(Object obj) in a post called Object Identity vs. Object Equality – Overriding System.Object.Equals(Object obj).  The gist of that post is essentially that when you create new classes that inherit from System.Object, you … Continue reading 

Posted in C# | 7 Comments

Effective C# Book Review – 50 Specific Ways to Improve Your C#

Last year I was looking for a development book that I could sneak off to read here and there during the hustle and bustle of the Christmas holidays. I wasn’t looking for a reference book that weighed 10 pounds, and I … Continue reading 

Posted in .NET Book Reviews, C# | Leave a comment

Object Identity vs. Object Equality – Overriding System.Object.Equals(Object obj)

Raymond and Eric have been discussing object-oriented programming ( Object Oriented Programming VB .NET, Encapsulation, Data Abstraction ), which is fantastic because I love to talk about OOP in the hopes that I will learn more myself. To continue the … Continue reading 

Posted in C# | 3 Comments