Welcome to MSDN Blogs Sign in | Join | Help

jaredpar's WebLog

Code, rants and ramblings of a programmer.

Syndication

News

Now Reading

Expert F#

What's a better book to read when learning F#?

Essential WPF

Thus far the best book I've read on WPF. Gets right down to working with WPF and the goals/history.

Purely Functional Data Structures

Reading this book makes me feel like I'm back in college. It will really get your mind going and is best read with a whiteboard handy.


Browse by Tags

All Tags » Patterns » VB   (RSS)
Sorry, but there are no more tags available to filter with.
Making Equality easier
Recently I've done a bit of posting about the difficulties of properly implementing equality in VB (and DotNet in general). While most of the problems can be fixed with a standard snippet the one really hard to implement issue is GetHashCode(). The rules Read More...

Posted Tuesday, June 03, 2008 8:00 AM by Jared Parsons | 2 Comments

Filed under: ,

IEquatable(Of T) and GetHashCode()
This is a bit of a follow up to a previous post we discussed how to properly implement equality in VB. Several users commented/asked that IEquatable(Of T) could be used in place of overriding Equals(). Since IEquatable(Of T) doesn't define a GetHashCode() Read More...

Posted Friday, May 09, 2008 8:00 AM by Jared Parsons | 0 Comments

Filed under: ,

Properly Implementing Equality in VB
Many developers want to implement equality functions for their objects.  DotNet made equality a deep part of the framework and added support all the way up to System.Object with Equals and GetHashCode .   In addition to the strongly enforced Read More...

Posted Monday, April 28, 2008 8:04 AM by Jared Parsons | 6 Comments

Filed under: ,

Have a IComparable(Of T) but need an IComparer(Of T)?
IComparable(Of T) is an interface saying "I can compare myself to other objects of the same type".  And IComparer(Of T) is an interface saying "I can compare two objects of this type.".  Often API's which need to perform Read More...

Posted Wednesday, April 02, 2008 9:33 PM by Jared Parsons | 0 Comments

Filed under: ,

Missing API: List(Of T).BinaryInsert
One API that seems to be missing from List(Of T) is a BinaryInsert method.  Especially since there is already a BinarySearch method. Binary insert is a method for inserting a value into an already sorted list.  Since the list is already sorted Read More...

Posted Monday, March 31, 2008 10:26 AM by Jared Parsons | 3 Comments

Filed under: ,

Page view tracker